]> git.baikalelectronics.ru Git - kernel.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)
commita0719cbb0736e2853f9300159dd5e7314416dabb
tree84f2b9557b6d513f6127056949b4477af152c460
parente3151edf0cbf771e24555003423e34dcac5abade
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: 66827dd65136 ("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