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

Commit c0ad8ef3 authored by Joe Perches's avatar Joe Perches Committed by Jeff Kirsher
Browse files

fm10k: Fix misuse of net_ratelimit()



Correct the backward logic using !net_ratelimit()

Miscellanea:

o Add a blank line before the error return label

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Tested-by: default avatarKrishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent ef57ab79
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -806,9 +806,10 @@ static int fm10k_tso(struct fm10k_ring *tx_ring,
	tx_desc->mss = cpu_to_le16(skb_shinfo(skb)->gso_size);

	return 1;

err_vxlan:
	tx_ring->netdev->features &= ~NETIF_F_GSO_UDP_TUNNEL;
	if (!net_ratelimit())
	if (net_ratelimit())
		netdev_err(tx_ring->netdev,
			   "TSO requested for unsupported tunnel, disabling offload\n");
	return -1;