From owner-freebsd-hackers@freebsd.org Mon Oct 30 10:11:56 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97FEAE593FC for ; Mon, 30 Oct 2017 10:11:56 +0000 (UTC) (envelope-from arybchik@freebsd.org) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [84.52.114.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45FBB8122B; Mon, 30 Oct 2017 10:11:55 +0000 (UTC) (envelope-from arybchik@freebsd.org) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 3F8007F4CE; Mon, 30 Oct 2017 13:11:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.9.2 shelob.oktetlabs.ru 3F8007F4CE Authentication-Results: shelob.oktetlabs.ru/3F8007F4CE; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral Subject: Re: Anyone using Solarflare on FreeBSD 10-STABLE ? To: Mark Saad Cc: Philip Paeps , Allan Jude , "freebsd-hackers@freebsd.org" References: <333473BB-43C3-4E3E-B62F-03DE5650E403@freebsd.org> <7951e7d5-b5e6-033d-0b51-1d4a10946937@oktetlabs.ru> <0d126774-3736-4a4c-c01f-07bc9caf82a6@freebsd.org> From: Andrew Rybchenko Message-ID: Date: Mon, 30 Oct 2017 13:11:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 10:11:56 -0000 On 10/27/2017 09:02 PM, Mark Saad wrote: > On Fri, Oct 27, 2017 at 2:55 AM, Andrew Rybchenko wrote: >> On 10/25/2017 12:04 AM, Mark Saad wrote: >> >> On Tue, Oct 17, 2017 at 3:44 PM, Andrew Rybchenko >> wrote: >> >> Basically the counter means that ingress packet does not match any installed >> filter. E.g. promiscuous mode is disabled and: >> - destination MAC is unicast and not the interface MAC address, OR >> - destination MAC is multicast and there is no matching multicast address >> added. >> >> There is a race condition as well on interface bring up when packet is >> received but default filters are not installed yet. >> >> SFN8522 and SFN8542 have other cases for encapsulated traffic depending on >> driver version (right now I don't remember the state in 10-STABLE). >> >> Mark, let me know if I can help more. >> >> Andrew. >> >> Could you clarify what was meant by Virtual Functions ? Vlans , laggs >> etc or srv-io ? >> Also I do have IGMP snoop enabled and routing is done locally on each >> router -, the freebsd box with the sfxge cards. >> >> >> I meant SR-IOV. Which SF NIC do you use? >> >> Andrew. > Andrew > I am using IIRC 7140's This is what I get from the various utils > > Solarflare Flareon Ultra 7000 Series 10G Adapter > Firmware version: v6.4.3 > Controller type: Solarflare SFC9140 > Boot ROM version: v5.0.4.1000 Do I understand correctly that rxdp_di_dropped_pktsgrows when interface is running? I.e. it is not just few packets at start up. If it is possible, I'd try to enable promisc mode and check if stops the counter grow. If so and traffic is not huge, I'd try to sniff on the interface and filter out traffic to local MAC, broadcast and locally added multicast addresses to check if unexpected traffic comes to the interface. Andrew.