[OpenWrt-Devel] [PATCH 4/5] lantiq/xrx200-net: add FID (filtering identifier) setting

John Crispin john at phrozen.org
Fri Feb 19 05:27:34 EST 2016



On 19/02/2016 08:29, Martin Schiller wrote:
> On 02/19/2016 at 6:32 AM, John Crispin wrote:
>>
>>
>> On 18/02/2016 14:13, Martin Schiller wrote:
>>> By setting the FID of a VLAN group to a value other then the default (0) it
>>> is possible to switch from Shared VLAN Learning to Independant VLAN
>> Learning.
>>>
>>
>> and what are the pro / cons of doing so ?
> 
> Independant:
> On incoming VLAN traffic the source MAC address is learned but is not made
> available for other VLANs (with other FIDs).
> 
> Shared:
> The learned MAC address information is shared between multiple VLANs
> (with the same FID).
> 
> This feature is used for example to separate the LAN and WAN interfaces.

so if i am not misunderstanding this, we want one fid / vlan. can we
just write the pvid into this field unconditionally




> (like I described here:
> https://lists.openwrt.org/pipermail/openwrt-devel/2016-February/039758.html)
> 
> [...]
> 
>>
>> [...]
>>
>>>  +static int xrx200sw_set_vlan_ports(struct switch_dev *dev, struct
>> switch_val *val)
>>>  +{
>>>  +int i, portmap, tagmap, untagged;
>>> @@ -1022,6 +1051,14 @@ Subject: [PATCH 25/36] NET: MIPS: lantiq: adds
>> xrx200-net
>>>  +},
>>>  +{
>>>  +.type = SWITCH_TYPE_INT,
>>> ++.name = "fid",
>>> ++.description = "Filtering Identifier (0-63)",
>>> ++.set = xrx200sw_set_vlan_fid,
>>> ++.get = xrx200sw_get_vlan_fid,
>>> ++.max = 63,
>>> ++ },
>>
>>
>> i am not sure it is a good idea to export these options to user(land).
>> why do you need them ?
> 
> I'm also not happy with this additional option, but for the use case above
> for example I don't think we can set the fid in an "automatic" way.
> 
>>
>>> ++{
>>> ++.type = SWITCH_TYPE_INT,
>>>  +.name = "enable",
>>>  +.description = "Enable VLAN",
>>>  +.set = xrx200sw_set_vlan_enable,
>>>
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list