net: Validate xmit SKBs right when we pull them out of the qdisc.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eae3f88ee4
commit
50cbe9ab5f
3 changed files with 6 additions and 6 deletions
|
@ -2656,7 +2656,7 @@ struct sk_buff *validate_xmit_vlan(struct sk_buff *skb, netdev_features_t featur
|
|||
return skb;
|
||||
}
|
||||
|
||||
static struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device *dev)
|
||||
struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
netdev_features_t features;
|
||||
|
||||
|
@ -2719,10 +2719,6 @@ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
|
|||
{
|
||||
int rc = NETDEV_TX_OK;
|
||||
|
||||
skb = validate_xmit_skb(skb, dev);
|
||||
if (!skb)
|
||||
return rc;
|
||||
|
||||
if (likely(!skb->next))
|
||||
return xmit_one(skb, dev, txq, false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue