mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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 <joe@perches.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
ef57ab791c
commit
c0ad8ef3df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user