Skip to content

Commit 7f9bf6e

Browse files
committed
Revert "net: xdp: pull ethernet header off packet after computing skb->protocol"
This reverts commit f8414a8. eth_type_trans() does the necessary pull on the skb. Signed-off-by: David S. Miller <[email protected]>
1 parent 0b76e64 commit 7f9bf6e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/core/dev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4676,7 +4676,6 @@ static u32 netif_receive_generic_xdp(struct sk_buff *skb,
46764676
(orig_bcast != is_multicast_ether_addr_64bits(eth->h_dest))) {
46774677
__skb_push(skb, ETH_HLEN);
46784678
skb->protocol = eth_type_trans(skb, skb->dev);
4679-
__skb_pull(skb, ETH_HLEN);
46804679
}
46814680

46824681
switch (act) {

0 commit comments

Comments
 (0)