]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Fix CRC forwarding check for SYSTEMPORT Lite
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 11 Jul 2018 09:47:58 +0000 (02:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 21:47:47 +0000 (14:47 -0700)
commit663435013079d5f4e76bcdcead1ea76f8e257a22
treebd61f6707025750d1944fb1eae95974d56fac56c
parentdf5040653194c25b1af8b5355411a9253caa2ade
net: systemport: Fix CRC forwarding check for SYSTEMPORT Lite

SYSTEMPORT Lite reversed the logic compared to SYSTEMPORT, the
GIB_FCS_STRIP bit is set when the Ethernet FCS is stripped, and that bit
is not set by default. Fix the logic such that we properly check whether
that bit is set or not and we don't forward an extra 4 bytes to the
network stack.

Fixes: d88d62a31a46 ("net: systemport: Add support for SYSTEMPORT Lite")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h