]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea3efa7a2973d04cf5cbda2563addebc751bfb44
treea88bf203884c77423aaada7225424fa4545b58aa
parent4a5e596be71c24aefca4b1762e43efcc6521e057
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