diff options
author | Michael Chan <mchan@broadcom.com> | 2014-03-01 03:05:10 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-01 02:16:16 +0400 |
commit | d7b95315cc7f441418845a165ee56df723941487 (patch) | |
tree | 8b9fdf437d25d275dc40067ba240142b777477a1 /drivers/net/ethernet/broadcom/tg3.c | |
parent | accfe0e356327da5bd53da8852b93fc22de9b5fc (diff) | |
download | linux-d7b95315cc7f441418845a165ee56df723941487.tar.xz |
tg3: Don't check undefined error bits in RXBD
Redefine the RXD_ERR_MASK to include only relevant error bits. This fixes
a customer reported issue of randomly dropping packets on the 5719.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 3167ed6593b0..3b6d0ba86c71 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -6843,8 +6843,7 @@ static int tg3_rx(struct tg3_napi *tnapi, int budget) work_mask |= opaque_key; - if ((desc->err_vlan & RXD_ERR_MASK) != 0 && - (desc->err_vlan != RXD_ERR_ODD_NIBBLE_RCVD_MII)) { + if (desc->err_vlan & RXD_ERR_MASK) { drop_it: tg3_recycle_rx(tnapi, tpr, opaque_key, desc_idx, *post_ptr); |