Skip to content

Commit 8c8811d

Browse files
ogerlitzSaeed Mahameed
authored andcommitted
Revert "net/mlx5e: Enable reporting checksum unnecessary also for L3 packets"
This reverts commit b820e6f. Prior the commit we are reverting, checksum unnecessary was only set when both the L3 OK and L4 OK bits are set on the CQE. This caused packets of IP protocols such as SCTP which are not dealt by the current HW L4 parser (hence the L4 OK bit is not set, but the L4 header type none bit is set) to go through the checksum none code, where currently we wrongly report checksum unnecessary for them, a regression. Fix this by a revert. Note that on our usual track we report checksum complete, so the revert isn't expected to have any notable performance impact. Also, when we are not on the checksum complete track, the L4 protocols for which we report checksum none are not high performance ones, we will still report checksum unnecessary for UDP/TCP. Fixes: b820e6f ("net/mlx5e: Enable reporting checksum unnecessary also for L3 packets") Signed-off-by: Or Gerlitz <[email protected]> Reported-by: Avi Urman <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 5e0060b commit 8c8811d

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,7 @@ static inline void mlx5e_handle_csum(struct net_device *netdev,
847847

848848
csum_unnecessary:
849849
if (likely((cqe->hds_ip_ext & CQE_L3_OK) &&
850-
((cqe->hds_ip_ext & CQE_L4_OK) ||
851-
(get_cqe_l4_hdr_type(cqe) == CQE_L4_HDR_TYPE_NONE)))) {
850+
(cqe->hds_ip_ext & CQE_L4_OK))) {
852851
skb->ip_summed = CHECKSUM_UNNECESSARY;
853852
if (cqe_is_tunneled(cqe)) {
854853
skb->csum_level = 1;

0 commit comments

Comments
 (0)