summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorManish Chopra <manish.chopra@cavium.com>2018-03-28 03:35:52 -0700
committerDavid S. Miller <davem@davemloft.net>2018-03-29 14:32:15 -0400
commit58f101bf87e32753342a6924772c6ebb0fbde24a (patch)
tree2b10c0caac6be96161356df12ada55582bd7fac8 /drivers
parentf03dbb06dc380274e351ca4b1ee1587ed4529e62 (diff)
downloadlinux-stable-58f101bf87e32753342a6924772c6ebb0fbde24a.tar.gz
linux-stable-58f101bf87e32753342a6924772c6ebb0fbde24a.tar.bz2
linux-stable-58f101bf87e32753342a6924772c6ebb0fbde24a.zip
qede: Do not drop rx-checksum invalidated packets.
Today, driver drops received packets which are indicated as invalid checksum by the device. Instead of dropping such packets, pass them to the stack with CHECKSUM_NONE indication in skb. Signed-off-by: Ariel Elior <ariel.elior@cavium.com> Signed-off-by: Manish Chopra <manish.chopra@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/qlogic/qede/qede_fp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_fp.c b/drivers/net/ethernet/qlogic/qede/qede_fp.c
index 2e921cab1792..14941303189d 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_fp.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_fp.c
@@ -1247,16 +1247,10 @@ static int qede_rx_process_cqe(struct qede_dev *edev,
csum_flag = qede_check_csum(parse_flag);
if (unlikely(csum_flag == QEDE_CSUM_ERROR)) {
- if (qede_pkt_is_ip_fragmented(fp_cqe, parse_flag)) {
+ if (qede_pkt_is_ip_fragmented(fp_cqe, parse_flag))
rxq->rx_ip_frags++;
- } else {
- DP_NOTICE(edev,
- "CQE has error, flags = %x, dropping incoming packet\n",
- parse_flag);
+ else
rxq->rx_hw_errors++;
- qede_recycle_rx_bd_ring(rxq, fp_cqe->bd_num);
- return 0;
- }
}
/* Basic validation passed; Need to prepare an SKB. This would also