mlx5en: Properly account for no-checksum on tunneled packets.
MFC after: 1 week Sponsored by: NVIDIA Networking
This commit is contained in:
parent
06c2bd1872
commit
aabca1034c
@ -333,11 +333,13 @@ mlx5e_build_rx_mbuf(struct mlx5_cqe64 *cqe,
|
||||
CSUM_IP_CHECKED | CSUM_IP_VALID |
|
||||
CSUM_DATA_VALID | CSUM_PSEUDO_HDR;
|
||||
mb->m_pkthdr.csum_data = htons(0xffff);
|
||||
}
|
||||
if (((cqe->hds_ip_ext & (CQE_L2_OK | CQE_L3_OK | CQE_L4_OK)) ==
|
||||
(CQE_L2_OK | CQE_L3_OK | CQE_L4_OK))) {
|
||||
mb->m_pkthdr.csum_flags |=
|
||||
CSUM_INNER_L4_CALC | CSUM_INNER_L4_VALID;
|
||||
|
||||
if (likely((cqe->hds_ip_ext & CQE_L4_OK) == CQE_L4_OK)) {
|
||||
mb->m_pkthdr.csum_flags |=
|
||||
CSUM_INNER_L4_CALC | CSUM_INNER_L4_VALID;
|
||||
}
|
||||
} else {
|
||||
rq->stats.csum_none++;
|
||||
}
|
||||
} else if (likely((ifp->if_capenable & (IFCAP_RXCSUM |
|
||||
IFCAP_RXCSUM_IPV6)) != 0) &&
|
||||
|
Loading…
Reference in New Issue
Block a user