]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Allow the DSA driver to indicate the tag protocol
authorAndrew Lunn <andrew@lunn.ch>
Mon, 22 Aug 2016 14:01:01 +0000 (16:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2016 04:08:08 +0000 (21:08 -0700)
commitdce87db45c49337b08966798daac144ca297d337
tree348a762b9bcfb4bb4adc2d0648dcd44e3d04865c
parentfbd84addf39f28df22bd12fdb5283df5c0a2a692
net: dsa: Allow the DSA driver to indicate the tag protocol

DSA drivers may drive different families of switches which need
different tag protocol. Rather than hard code the tag protocol in the
driver structure, have a callback for the DSA core to call.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mv88e6060.c
drivers/net/dsa/mv88e6xxx/chip.c
include/net/dsa.h
net/dsa/dsa.c
net/dsa/dsa2.c