]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit875138f81d71af3cfa80df57e32fe9efbc4f95bc
treea775c237567db87334b12f434323f484c3185a89
parentdfedd3b62441f4dfc56d191ac0ab63ec55a675e2
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