Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1157028
| From | Guenter Roeck <linux@roeck-us.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC 3/9] net: dsa: mv88e6xxx: add support for VTU ops |
| Date | 2015-06-03 04:20 +0200 |
| Message-ID | <px6rD-3t8-3@gated-at.bofh.it> (permalink) |
| References | <pwJbH-2A5-3@gated-at.bofh.it> <pwJbH-2A5-7@gated-at.bofh.it> <pwOl3-1IU-15@gated-at.bofh.it> <px5YC-2yq-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jun 02, 2015 at 09:39:50PM -0400, Vivien Didelot wrote: > Guenter, > > On Jun 2, 2015, at 2:50 AM, Guenter Roeck linux@roeck-us.net wrote: > > On 06/01/2015 06:27 PM, Vivien Didelot wrote: > >> + /* Bringing an interface up adds it to the VLAN 0. Ignore this. */ > >> + if (!vid) > >> + return 0; > >> + > > > > Me puzzled ;-). I brought this and the fid question up before. > > No idea if my e-mail got lost or what happened. > > > > Can you explain why we don't need a configuration for vlan 0 ? > > Sorry for late reply. Initially, when issuing "ip link set up dev swp0", > ndo_vlan_rx_add_vid was called to add the interface in the VLAN 0. > Loading the 802.1q module has the same effect. I think this may be on purpose; it is telling the switch to accept packets with vid==0 (and untagged packets). > 2 things happen here: > > * this is inconsistent with the "bridge vlan" output which doesn't seem to > know about a VID 0; > * VID 0 seems special for this switch: if an ingressing frame has VID 0, the > tagged port will override the VID bits with the port default VID at egress. > As far as I can see, the switch treats packets with vid==0 and untaged packets as unknown if VLAN support is enabled. Anyway, sounds odd. Sure this isn't a configuration problem somethere ? Thanks, Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [RFC 3/9] net: dsa: mv88e6xxx: add support for VTU ops Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2015-06-03 03:50 +0200
Re: [RFC 3/9] net: dsa: mv88e6xxx: add support for VTU ops Guenter Roeck <linux@roeck-us.net> - 2015-06-03 04:20 +0200
Re: [RFC 3/9] net: dsa: mv88e6xxx: add support for VTU ops Guenter Roeck <linux@roeck-us.net> - 2015-06-03 17:50 +0200
csiph-web