lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <562A968E.9020303@gmail.com>
Date:	Fri, 23 Oct 2015 13:20:30 -0700
From:	Florian Fainelli <f.fainelli@...il.com>
To:	Vivien Didelot <vivien.didelot@...oirfairelinux.com>
CC:	netdev@...r.kernel.org, davem@...emloft.net, jiri@...nulli.us,
	andrew@...n.ch, linux@...ck-us.net
Subject: Re: [PATCH net-next] net: dsa: bcm_sf2: Implement FDB operations

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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ