From: Florian Fainelli <f.fainelli@gmail.com>
To: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, jiri@resnulli.us,
andrew@lunn.ch, linux@roeck-us.net
Subject: Re: [PATCH net-next] net: dsa: bcm_sf2: Implement FDB operations
Date: Fri, 23 Oct 2015 13:20:30 -0700 [thread overview]
Message-ID: <562A968E.9020303@gmail.com> (raw)
In-Reply-To: <20151023192824.GA21943@ketchup.mtl.sfl>
On 23/10/15 12:28, Vivien Didelot wrote:
> On Oct. Friday 23 (43) 11:38 AM, Florian Fainelli wrote:
>> Add support for the FDB add, delete, and dump operations. The add and
>> delete operations are implemented using directed ARL operations using
>> the specified MAC address and consist in a read operation, write and
>> readback operation.
>>
>> The dump operation consists in using the ARL search and software
>> filtering entries which are not for the desired port.
>>
>> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
>> ---
[snip]
>> + return -ENOENT;
>> +}
>
> What is the purpose of the "vid" parameter in bcm_sf2_arl_read?
To support an optional VID the day we have proper VLAN support in this
driver.
>> +static int bcm_sf2_sw_fdb_del(struct dsa_switch *ds, int port,
>> + const struct switchdev_obj_port_fdb *fdb)
>> +{
>> + struct bcm_sf2_priv *priv = ds_to_priv(ds);
>> +
>> + return bcm_sf2_arl_op(priv, 0, port, fdb->addr, fdb->vid, false);
>> +}
>
> I'm wondering if you are populating the FDB of the invalid VLAN 0 here.
>
> Does your ARL consider that fdb->vid == 0 means "this port's FDB" and
> not "FDB of VLAN 0"?
(please trim your replies)
I do not think this matters right now, since 802.1q is not currently
enabled/supported in the driver, but maybe I am trivializing this?
--
Florian
next prev parent reply other threads:[~2015-10-23 20:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 18:38 [PATCH net-next] net: dsa: bcm_sf2: Implement FDB operations Florian Fainelli
2015-10-23 19:28 ` Vivien Didelot
2015-10-23 20:20 ` Florian Fainelli [this message]
2015-10-23 22:44 ` Vivien Didelot
2015-10-26 20:44 ` Florian Fainelli
2015-10-26 20:51 ` Vivien Didelot
2015-10-27 1:14 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2016-06-04 0:05 [PATCH net-next 0/9] net: dsa: misc improvements Florian Fainelli
2016-06-04 0:05 ` [PATCH net-next] net: dsa: bcm_sf2: Implement FDB operations Florian Fainelli
2016-06-04 0:06 ` Florian Fainelli
2016-06-06 13:30 ` 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=562A968E.9020303@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=jiri@resnulli.us \
--cc=linux@roeck-us.net \
--cc=netdev@vger.kernel.org \
--cc=vivien.didelot@savoirfairelinux.com \
/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).