Skip to content

Commit c0ad8ef

Browse files
JoePerchesJeff Kirsher
authored andcommitted
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: Joe Perches <[email protected]> Tested-by: Krishneil Singh <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent ef57ab7 commit c0ad8ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/intel/fm10k/fm10k_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,10 @@ static int fm10k_tso(struct fm10k_ring *tx_ring,
806806
tx_desc->mss = cpu_to_le16(skb_shinfo(skb)->gso_size);
807807

808808
return 1;
809+
809810
err_vxlan:
810811
tx_ring->netdev->features &= ~NETIF_F_GSO_UDP_TUNNEL;
811-
if (!net_ratelimit())
812+
if (net_ratelimit())
812813
netdev_err(tx_ring->netdev,
813814
"TSO requested for unsupported tunnel, disabling offload\n");
814815
return -1;

0 commit comments

Comments
 (0)