Skip to content

Commit

Permalink
Revert "net: xdp: pull ethernet header off packet after computing skb…
Browse files Browse the repository at this point in the history
…->protocol"

This reverts commit f8414a8.

eth_type_trans() does the necessary pull on the skb.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Aug 17, 2020
1 parent 0b76e64 commit 7f9bf6e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4676,7 +4676,6 @@ static u32 netif_receive_generic_xdp(struct sk_buff *skb,
(orig_bcast != is_multicast_ether_addr_64bits(eth->h_dest))) {
__skb_push(skb, ETH_HLEN);
skb->protocol = eth_type_trans(skb, skb->dev);
__skb_pull(skb, ETH_HLEN);
}

switch (act) {
Expand Down

0 comments on commit 7f9bf6e

Please sign in to comment.