From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: Re: [RFC PATCH net-next 02/12] selftests: forwarding: Add a test for FDB learning Date: Mon, 15 Jan 2018 22:05:20 +0200 Message-ID: <20180115200520.GA27952@splinter> References: <20180115191853.26129-1-idosch@mellanox.com> <20180115191853.26129-3-idosch@mellanox.com> <20180115194146.GA31030@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ido Schimmel , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, davem@davemloft.net, shuah@kernel.org, dsahern@gmail.com, nikolay@cumulusnetworks.com, roopa@cumulusnetworks.com, andy@greyhouse.net, jiri@mellanox.com, mlxsw@mellanox.com, saeedm@mellanox.com, tariqt@mellanox.com, jhs@mojatatu.com, lucasb@mojatatu.com, f.fainelli@gmail.com, vivien.didelot@savoirfairelinux.com, jakub.kicinski@netronome.com, simon.horman@netronome.com To: Andrew Lunn Return-path: Received: from out1-smtp.messagingengine.com ([66.111.4.25]:56189 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbeAOUFZ (ORCPT ); Mon, 15 Jan 2018 15:05:25 -0500 Content-Disposition: inline In-Reply-To: <20180115194146.GA31030@lunn.ch> Sender: netdev-owner@vger.kernel.org List-ID: Hi Andrew, On Mon, Jan 15, 2018 at 08:41:46PM +0100, Andrew Lunn wrote: > On Mon, Jan 15, 2018 at 09:18:43PM +0200, Ido Schimmel wrote: > > Send a packet with a specific destination MAC, make sure it was learned > > on the ingress port and then aged-out. > > It would be interesting to show the hardware actually uses the FDB, > not just learns it. Send some packets back, and ensure they go out the > intended port. Also, check they don't go out a third port, i.e. make > sure the hardware is not flooding. Once it has aged-out, then test is > is flooding out all ports. Good idea. We can actually do that with only two ports. Disable flooding on port A, check packets with DMAC A don't egress the port. Inject a packet with SMAC A through port A, check packets with DMAC A egress the port.