projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b76e64
)
Revert "net: xdp: pull ethernet header off packet after computing skb->protocol"
author
David S. Miller
<davem@davemloft.net>
Mon, 17 Aug 2020 18:48:05 +0000
(11:48 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 17 Aug 2020 18:48:05 +0000
(11:48 -0700)
This reverts commit
f8414a8d886b613b90d9fdf7cda6feea313b1069
.
eth_type_trans() does the necessary pull on the skb.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 7592d7dd610975193e7b5ebd1cd2fe15700786eb..b5d1129d83103bf15bc6976d628320576c985ebf 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-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) {