]> 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)
commitbae858c51079a3f0fda6bbafa4de00aeb253db26
treea88bf203884c77423aaada7225424fa4545b58aa
parent01b4b83ad67c5af8125d513a0ce58b344eea1e0f
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