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

This reverts commit f8414a8d88.

eth_type_trans() does the necessary pull on the skb.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2020-08-17 11:48:05 -07:00
parent 0b76e642f9
commit 7f9bf6e824

View File

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