netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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: Mon, 26 Oct 2015 13:44:12 -0700	[thread overview]
Message-ID: <562E909C.2080606@gmail.com> (raw)
In-Reply-To: <20151023224416.GA10185@ketchup.mtl.sfl>

On 23/10/15 15:44, Vivien Didelot wrote:
> On Oct. Friday 23 (43) 01:20 PM, Florian Fainelli wrote:
>> On 23/10/15 12:28, Vivien Didelot wrote:
>>> On Oct. Friday 23 (43) 11:38 AM, Florian Fainelli wrote:
>>>> +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)
> 
> Noted, thanks.
> 
>> 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?
> 
> I meant that, when you issue the following command:
> 
>     bridge fdb add de:ea:be:ef:12:34 dev swp3
> 
> you will get vid == 0 in bcm_sf2_sw_fdb_add(). So I was wondering if
> your code was populating the FDB of the VLAN 0, instead of the choosen
> FDB associated to the given port.

It is populating the FDB for the given port right now, based on the
current switch configuration done by the driver. But thanks for noting
that, as this may need changing in the future.
-- 
Florian

  reply	other threads:[~2015-10-26 20:44 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
2015-10-23 22:44     ` Vivien Didelot
2015-10-26 20:44       ` Florian Fainelli [this message]
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=562E909C.2080606@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).