Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63a612f9 authored by Gal Pressman's avatar Gal Pressman Committed by Saeed Mahameed
Browse files

net/mlx5e: Add likely to the common RX checksum flow



Most of the packets return true for is_last_ethertype_ip, surround it
with likely compiler hint.

Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 19386177
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -631,7 +631,7 @@ static inline void mlx5e_handle_csum(struct net_device *netdev,
		return;
	}

	if (is_last_ethertype_ip(skb, &network_depth)) {
	if (likely(is_last_ethertype_ip(skb, &network_depth))) {
		skb->ip_summed = CHECKSUM_COMPLETE;
		skb->csum = csum_unfold((__force __sum16)cqe->check_sum);
		if (network_depth > ETH_HLEN)