netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net 0/2] Fixes for DSA tagging using 802.1Q
@ 2019-05-29 21:42 Vladimir Oltean
  2019-05-29 21:42 ` [PATCH v2 net 1/2] net: dsa: tag_8021q: Change order of rx_vid setup Vladimir Oltean
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vladimir Oltean @ 2019-05-29 21:42 UTC (permalink / raw)
  To: f.fainelli, vivien.didelot, andrew, davem
  Cc: ioana.ciornei, netdev, Vladimir Oltean

During the prototyping for the "Decoupling PHYLINK from struct
net_device" patchset, the CPU port of the sja1105 driver was moved to a
different spot.  This uncovered an issue in the tag_8021q DSA code,
which used to work by mistake - the CPU port was the last hardware port
numerically, and this was masking an ordering issue which is very likely
to be seen in other drivers that make use of 802.1Q tags.

A question was also raised whether the VID numbers bear any meaning, and
the conclusion was that they don't, at least not in an absolute sense.
The second patch defines bit fields inside the DSA 802.1Q VID so that
tcpdump can decode it unambiguously (although the meaning is now clear
even by visual inspection).

Ioana Ciornei (1):
  net: dsa: tag_8021q: Change order of rx_vid setup

Vladimir Oltean (1):
  net: dsa: tag_8021q: Create a stable binary format

 net/dsa/tag_8021q.c | 79 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 65 insertions(+), 14 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-30 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-29 21:42 [PATCH v2 net 0/2] Fixes for DSA tagging using 802.1Q Vladimir Oltean
2019-05-29 21:42 ` [PATCH v2 net 1/2] net: dsa: tag_8021q: Change order of rx_vid setup Vladimir Oltean
2019-05-29 21:42 ` [PATCH v2 net 2/2] net: dsa: tag_8021q: Create a stable binary format Vladimir Oltean
2019-05-30 21:47 ` [PATCH v2 net 0/2] Fixes for DSA tagging using 802.1Q David Miller

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).