mbox series

[net-next,0/4] DSA: promisc on master, generic flow dissector code

Message ID 20200511202046.20515-1-olteanv@gmail.com
Headers show
Series DSA: promisc on master, generic flow dissector code | expand

Message

Vladimir Oltean May 11, 2020, 8:20 p.m. UTC
From: Vladimir Oltean <vladimir.oltean@nxp.com>

The initial purpose of this series was to implement the .flow_dissect
method for sja1105 and for ocelot/felix. But on Felix this posed a
problem, as the DSA headers were of different lengths on RX and on TX.
A better solution than to just increase the smaller one was to also try
to shrink the larger one, but in turn that required the DSA master to be
put in promiscuous mode (which sja1105 also needed, for other reasons).

Finally, we can add the missing .flow_dissect methods to ocelot and
sja1105 (as well as generalize the formula to other taggers as well).

Vladimir Oltean (4):
  net: dsa: allow drivers to request promiscuous mode on master
  net: dsa: sja1105: request promiscuous mode for master
  net: dsa: tag_ocelot: use a short prefix on both ingress and egress
  net: dsa: implement and use a generic procedure for the flow dissector

 drivers/net/dsa/ocelot/felix.c         |  5 ++--
 drivers/net/dsa/sja1105/sja1105_main.c |  3 ++
 include/net/dsa.h                      | 13 +++++++++
 net/dsa/dsa_priv.h                     | 22 +++++++++++++++
 net/dsa/master.c                       | 39 +++++++++++++++++++++++++-
 net/dsa/tag_ar9331.c                   |  9 ++++++
 net/dsa/tag_brcm.c                     |  5 ++--
 net/dsa/tag_dsa.c                      |  4 +--
 net/dsa/tag_edsa.c                     |  4 +--
 net/dsa/tag_lan9303.c                  |  9 ++++++
 net/dsa/tag_mtk.c                      |  3 +-
 net/dsa/tag_ocelot.c                   | 29 +++++++++++++++----
 net/dsa/tag_qca.c                      |  3 +-
 net/dsa/tag_sja1105.c                  | 13 +++++++++
 14 files changed, 143 insertions(+), 18 deletions(-)