Skip to content

Commit 58f101b

Browse files
Manish Chopradavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Manish Chopra <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f03dbb0 commit 58f101b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

drivers/net/ethernet/qlogic/qede/qede_fp.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,16 +1247,10 @@ static int qede_rx_process_cqe(struct qede_dev *edev,
12471247

12481248
csum_flag = qede_check_csum(parse_flag);
12491249
if (unlikely(csum_flag == QEDE_CSUM_ERROR)) {
1250-
if (qede_pkt_is_ip_fragmented(fp_cqe, parse_flag)) {
1250+
if (qede_pkt_is_ip_fragmented(fp_cqe, parse_flag))
12511251
rxq->rx_ip_frags++;
1252-
} else {
1253-
DP_NOTICE(edev,
1254-
"CQE has error, flags = %x, dropping incoming packet\n",
1255-
parse_flag);
1252+
else
12561253
rxq->rx_hw_errors++;
1257-
qede_recycle_rx_bd_ring(rxq, fp_cqe->bd_num);
1258-
return 0;
1259-
}
12601254
}
12611255

12621256
/* Basic validation passed; Need to prepare an SKB. This would also

0 commit comments

Comments
 (0)