From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roopa Prabhu Subject: Re: [PATCH net-next RESEND] net: Do not call ndo_dflt_fdb_dump if ndo_fdb_dump is defined. Date: Tue, 16 Dec 2014 11:30:30 -0800 Message-ID: <54908856.1070708@cumulusnetworks.com> References: <54894850.5000603@cumulusnetworks.com> <7968540cd0768a770b0c8b29ce41a162.squirrel@poczta.wsisiz.edu.pl> <5489D53E.5010603@cumulusnetworks.com> <8d4ec5c1ae73c77866a0a154fb528f23.squirrel@poczta.wsisiz.edu.pl> <548AD781.5020004@mojatatu.com> <4c22a6c452a73b3b77a9a9c8e7f76bcc.squirrel@poczta.wsisiz.edu.pl> <548AFD41.3010801@mojatatu.com> <548B4AA4.1020804@gmail.com> <548EF05E.6050401@mojatatu.com> <548F80B2.80408@gmail.com> <54902E5E.2070405@mojatatu.com> <54905F67.2090509@gmail.com> <54906A11.6030701@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: John Fastabend , Jamal Hadi Salim , Hubert Sokolowski , "netdev@vger.kernel.org" , Vlad Yasevich To: "Samudrala, Sridhar" Return-path: Received: from ext3.cumulusnetworks.com ([198.211.106.187]:48052 "EHLO ext3.cumulusnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751012AbaLPTau (ORCPT ); Tue, 16 Dec 2014 14:30:50 -0500 In-Reply-To: <54906A11.6030701@intel.com> Sender: netdev-owner@vger.kernel.org List-ID: On 12/16/14, 9:21 AM, Samudrala, Sridhar wrote: > > On 12/16/2014 8:35 AM, John Fastabend wrote: >> >>> Is there no way to get the unicast/multicast mac addresses for such >>> a driver? >> >> You can almost infer it from ip link by looking at all the stacked >> drivers and figuring out how the address are propagated down. Then >> look at the routes and figure out multicast address. But other than >> the fdb dump mechanism I don't think there is anything. > > It looks like we can get the device specific unicast/multicast mac > addresses via 'ip maddr' too. if i remember correctly, 'ip maddr' was only for multicast list. And there was no way to dump the unicast list until bridge self was introduced. the only way to dump unicast addresses today is by using the `bridge fdb show self`