Revert "ipv4: ip_gre: Fix drops of small packets in ipgre_xmit"

This reverts commit ae49cd62cc.
This commit is contained in:
Ksawlii 2024-11-24 00:23:12 +01:00
parent 5bdee7aa98
commit 31a84aa710

View file

@ -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);