[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200211150028.688073-9-Jason@zx2c4.com>
Date: Tue, 11 Feb 2020 16:00:27 +0100
From: "Jason A. Donenfeld" <Jason@...c4.com>
To: netdev@...r.kernel.org, davem@...emloft.net
Cc: "Jason A. Donenfeld" <Jason@...c4.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Subject: [PATCH v3 net 8/9] fm10k: remove skb_share_check from xmit path
This is an impossible condition to reach; an skb in ndo_start_xmit won't
be shared by definition.
Signed-off-by: Jason A. Donenfeld <Jason@...c4.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Link: https://lore.kernel.org/netdev/CAHmME9pk8HEFRq_mBeatNbwXTx7UEfiQ_HG_+Lyz7E+80GmbSA@mail.gmail.com/
---
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
index 0637ccadee79..b6cd7ab6efbe 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
@@ -641,11 +641,6 @@ static netdev_tx_t fm10k_xmit_frame(struct sk_buff *skb, struct net_device *dev)
struct vlan_hdr *vhdr;
__be16 proto;
- /* make sure skb is not shared */
- skb = skb_share_check(skb, GFP_ATOMIC);
- if (!skb)
- return NETDEV_TX_OK;
-
/* make sure there is enough room to move the ethernet header */
if (unlikely(!pskb_may_pull(skb, VLAN_ETH_HLEN)))
return NETDEV_TX_OK;
--
2.25.0
Powered by blists - more mailing lists