]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: Move tagger name into its ops structure
authorAndrew Lunn <andrew@lunn.ch>
Sun, 28 Apr 2019 17:37:11 +0000 (19:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 23:41:00 +0000 (19:41 -0400)
commite652cc657810080805075674b47a61c98b5480a3
treea775c237567db87334b12f434323f484c3185a89
parent211d434905e3620667f4c8461ca04c24f80fc5ea
dsa: Move tagger name into its ops structure

Rather than keep a list to map a tagger ops to a name, place the name
into the ops structure. This removes the hard coded list, a step
towards making the taggers more dynamic.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
v2:
Move name to end of structure, keeping the hot entries at the beginning.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/dsa.c
net/dsa/tag_brcm.c
net/dsa/tag_dsa.c
net/dsa/tag_edsa.c
net/dsa/tag_gswip.c
net/dsa/tag_ksz.c
net/dsa/tag_lan9303.c
net/dsa/tag_mtk.c
net/dsa/tag_qca.c
net/dsa/tag_trailer.c