summaryrefslogtreecommitdiff
path: root/drivers/net/gtp.c
diff options
context:
space:
mode:
authorGuillaume Nault <gnault@redhat.com>2021-06-25 16:33:23 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-28 22:44:17 +0300
commitb2d898c8a523f44ee7b3eea608e81a6e2264579f (patch)
tree5cd046d55428c9202b1a0cd4eb57d4012b6112ae /drivers/net/gtp.c
parentda5a2e49f064a86a3b102b20c545f855a7298394 (diff)
downloadlinux-b2d898c8a523f44ee7b3eea608e81a6e2264579f.tar.xz
gtp: reset mac_header after decap
For consistency with other L3 tunnel devices, reset the mac_header pointer after decapsulation. This makes the mac_header 0 bytes long, thus making it clear that this skb has no mac_header. Compile tested only. Signed-off-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gtp.c')
-rw-r--r--drivers/net/gtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c
index 1c9023d47e00..30e0a10595a1 100644
--- a/drivers/net/gtp.c
+++ b/drivers/net/gtp.c
@@ -201,6 +201,7 @@ static int gtp_rx(struct pdp_ctx *pctx, struct sk_buff *skb,
* calculate the transport header.
*/
skb_reset_network_header(skb);
+ skb_reset_mac_header(skb);
skb->dev = pctx->dev;