Commit 7f9bf6e8 authored by David S. Miller's avatar David S. Miller

Revert "net: xdp: pull ethernet header off packet after computing skb->protocol"

This reverts commit f8414a8d.

eth_type_trans() does the necessary pull on the skb.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b76e642
...@@ -4676,7 +4676,6 @@ static u32 netif_receive_generic_xdp(struct sk_buff *skb, ...@@ -4676,7 +4676,6 @@ static u32 netif_receive_generic_xdp(struct sk_buff *skb,
(orig_bcast != is_multicast_ether_addr_64bits(eth->h_dest))) { (orig_bcast != is_multicast_ether_addr_64bits(eth->h_dest))) {
__skb_push(skb, ETH_HLEN); __skb_push(skb, ETH_HLEN);
skb->protocol = eth_type_trans(skb, skb->dev); skb->protocol = eth_type_trans(skb, skb->dev);
__skb_pull(skb, ETH_HLEN);
} }
switch (act) { switch (act) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment