]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: change tag_protocol to an enum
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 12 Sep 2014 04:18:09 +0000 (21:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 21:04:35 +0000 (17:04 -0400)
commitf3a6f7526ee22f550bd21047e87ce108df77510a
tree5b1e76c258c08ef39fdcf5e469a05e0322ffb228
parentaaedd1bf786cd435bba4a70d68a6566025ea69db
net: dsa: change tag_protocol to an enum

Now that we introduced an additional multiplexing/demultiplexing layer
with commit 42054b285d6c4 ("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>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mv88e6060.c
drivers/net/dsa/mv88e6123_61_65.c
drivers/net/dsa/mv88e6131.c
include/net/dsa.h
net/dsa/slave.c
net/dsa/tag_brcm.c