Revert "ipv4: ip_gre: Fix drops of small packets in ipgre_xmit"
This reverts commit ae49cd62cc
.
This commit is contained in:
parent
5bdee7aa98
commit
31a84aa710
1 changed files with 3 additions and 3 deletions
|
@ -639,11 +639,11 @@ static netdev_tx_t ipgre_xmit(struct sk_buff *skb,
|
|||
if (skb_cow_head(skb, 0))
|
||||
goto free_skb;
|
||||
|
||||
if (!pskb_may_pull(skb, pull_len))
|
||||
goto free_skb;
|
||||
|
||||
tnl_params = (const struct iphdr *)skb->data;
|
||||
|
||||
if (!pskb_network_may_pull(skb, pull_len))
|
||||
goto free_skb;
|
||||
|
||||
/* ip_tunnel_xmit() needs skb->data pointing to gre header. */
|
||||
skb_pull(skb, pull_len);
|
||||
skb_reset_mac_header(skb);
|
||||
|
|
Loading…
Add table
Reference in a new issue