2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/net/dsa
Florian Fainelli ac7a04c33d net: dsa: change tag_protocol to an enum
Now that we introduced an additional multiplexing/demultiplexing layer
with commit 3e8a72d1da ("net: dsa: reduce number of protocol hooks")
that lives within the DSA code, we no longer need to have a given switch
driver tag_protocol be an actual ethertype value, instead, we can
replace it with an enum: dsa_tag_protocol.

Do this replacement in the drivers, which allows us to get rid of the
cpu_to_be16()/htons() dance, and remove ETH_P_BRCMTAG since we do not
need it anymore.

Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-13 17:04:35 -04:00
..
dsa_priv.h net: dsa: add Broadcom tag RX/TX handler 2014-08-27 22:59:40 -07:00
dsa.c net: dsa: make dsa_pack_type static 2014-09-01 20:41:45 -07:00
Kconfig net: dsa: add Broadcom tag RX/TX handler 2014-08-27 22:59:40 -07:00
Makefile net: dsa: add Broadcom tag RX/TX handler 2014-08-27 22:59:40 -07:00
slave.c net: dsa: change tag_protocol to an enum 2014-09-13 17:04:35 -04:00
tag_brcm.c net: dsa: change tag_protocol to an enum 2014-09-13 17:04:35 -04:00
tag_dsa.c net: dsa: reduce number of protocol hooks 2014-08-27 22:59:39 -07:00
tag_edsa.c net: dsa: reduce number of protocol hooks 2014-08-27 22:59:39 -07:00
tag_trailer.c net: dsa: reduce number of protocol hooks 2014-08-27 22:59:39 -07:00