From: Florian Fainelli <f.fainelli@gmail.com>
To: Vivien Didelot <vivien.didelot@savoirfairelinux.com>,
Volodymyr Bendiuga <volodymyr.bendiuga@gmail.com>,
Andrew Lunn <andrew@lunn.ch>
Cc: Volodymyr Bendiuga <valdr.linuxnext@gmail.com>,
netdev@vger.kernel.org,
Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>,
John Crispin <john@phrozen.org>
Subject: Re: [PATCH net-next 1/3] net:dsa:mv88e6xxx: use hashtable to store multicast entries
Date: Thu, 15 Dec 2016 09:32:45 -0800 [thread overview]
Message-ID: <be3b69b7-b6a3-a939-cf77-c62e5a1fe719@gmail.com> (raw)
In-Reply-To: <87eg19hzw1.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me>
On 12/15/2016 09:21 AM, Vivien Didelot wrote:
> Hi Volodymyr,
>
> Volodymyr Bendiuga <volodymyr.bendiuga@gmail.com> writes:
>
>> Hi Andrew,
>>
>> I have tested the approach you wrote in previous mails, the one
>> with setting next.mac to address we are looking for -1. It seems
>> to be as slow as the original implementation, unfortunately.
>
> Hum, that is what I was expecting... The ATU GetNext operation
> (alongside an ether_addr_equal() call) should be quite fast.
>
>> We use 6097 and 6352 chips, and both of them can not do any port
>> filtering in hardware for fdb dump operation. Seems like they would
>> benefit from cache. But I am not sure about other switches.
>>
>> Does anyone know about such feature in other switches?
>
> Marvell switches cannot filter ATU entries for a specific port, they
> contain a port vector.
>
> I guess Florian might answer for Broadcom switches, and John might
> answer for Qualcomm switches.
For Broadcom switches, we use the ARL search and then apply software
filtering to discard entries that are not for the target port bridge fdb
show was called with.
>
> In all cases *if caching is really needed*, I think it won't hurt to do
> it in DSA core even if a switch support FDB dump operations on a
> per-port basis, as Andrew mentioned.
Agreed, and there does not appear to be any need to new dsa_switch_ops
operations to be introduced?
--
Florian
next prev parent reply other threads:[~2016-12-15 17:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-12 13:39 [PATCH net-next 1/3] net:dsa:mv88e6xxx: use hashtable to store multicast entries Volodymyr Bendiuga
2016-12-12 13:54 ` Andrew Lunn
2016-12-12 14:18 ` Andrew Lunn
2016-12-12 15:03 ` Vivien Didelot
[not found] ` <CAMr9Lbp5eCg1oyWGN+uiDEcF0VZuKUi87FH6JYTGj6pL82R+Mw@mail.gmail.com>
2016-12-12 16:07 ` Andrew Lunn
2016-12-12 16:37 ` Florian Fainelli
2016-12-12 17:11 ` Vivien Didelot
2016-12-12 19:09 ` Andrew Lunn
2016-12-12 20:03 ` Vivien Didelot
[not found] ` <CAMr9LbqyvrRYe_m34Ufzxkf2Vef3LbMQiuoiwVX0mK=hW6euyA@mail.gmail.com>
2016-12-13 15:09 ` Andrew Lunn
[not found] ` <CABHmqqB-6-L124hrAjNxd4kO3zYp9R=RM1X6PXyuQW6Hapiv4g@mail.gmail.com>
2016-12-14 10:46 ` Andrew Lunn
[not found] ` <CABHmqqDpiN2kwkTgrM8Qu8EEx3Sjk2yVBy8QQAJppGfJ6-MV5Q@mail.gmail.com>
2016-12-15 17:21 ` Vivien Didelot
2016-12-15 17:32 ` Florian Fainelli [this message]
2016-12-15 17:50 ` Vivien Didelot
[not found] ` <CABHmqqCOYMPA-Py7Uu4gsQ=s8CrQd-tT4-Db+j8eJH9=2s4L2g@mail.gmail.com>
2016-12-16 9:31 ` John Crispin
2016-12-16 10:08 ` Andrew Lunn
[not found] ` <CABHmqqAQddcQZqVBi7gTjR40cHx6+aQebmsY3BwJgeEbLsX5Yw@mail.gmail.com>
2016-12-16 11:01 ` Andrew Lunn
2016-12-23 9:30 ` Volodymyr Bendiuga
2016-12-23 10:17 ` Andrew Lunn
2016-12-15 17:47 ` John Crispin
2016-12-12 16:22 ` Vivien Didelot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be3b69b7-b6a3-a939-cf77-c62e5a1fe719@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=john@phrozen.org \
--cc=netdev@vger.kernel.org \
--cc=valdr.linuxnext@gmail.com \
--cc=vivien.didelot@savoirfairelinux.com \
--cc=volodymyr.bendiuga@gmail.com \
--cc=volodymyr.bendiuga@westermo.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).