net: dsa: Fix Marvell Egress Trailer check
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 22 Sep 2015 09:28:14 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 00:37:03 +0000 (17:37 -0700)
commitfbd03513bf36c4e5c2942f436f05c8eb99a3cc9e
treea88bf203884c77423aaada7225424fa4545b58aa
parent7def0f952eccdd0edb3c504f4dab35ee0d3aba1f
net: dsa: Fix Marvell Egress Trailer check

The Marvell Egress rx trailer check must be fixed to
correctly detect bad bits in the third byte of the
Eggress trailer as described in the Table 28 of the
88E6060 datasheet.
The current code incorrectly omits to check the third
byte and checks the fourth byte twice.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_trailer.c