]> git.openfabrics.org - ~emulex/infiniband.git/commit
dsa: mv88e6171: Fix tagging protocol/Kconfig
authorAndrew Lunn <andrew@lunn.ch>
Fri, 24 Oct 2014 21:44:05 +0000 (23:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2014 19:27:54 +0000 (15:27 -0400)
commitc146b7788e5721ec15bc0197bedf75849508e7ea
tree84f2b9557b6d513f6127056949b4477af152c460
parentae439286a0dec99cc8029868243689b5b5f3ff75
dsa: mv88e6171: Fix tagging protocol/Kconfig

The mv88e6171 can support two different tagging protocols, DSA and
EDSA. The switch driver structure only allows one protocol to be
enumerated, and DSA was chosen. However the Kconfig entry ensures the
EDSA tagging code is built. With a minimal configuration, we then end
up with a mismatch. The probe is successful, EDSA tagging is used, but
the switch is configured for DSA, resulting in mangled packets.

Change the switch driver structure to enumerate EDSA, fixing the
mismatch.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Fixes: 42f272539487 ("net: DSA: Marvell mv88e6171 switch driver")
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6171.c