aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorWillem de Bruijn <[email protected]>2018-07-11 12:00:44 -0400
committerDavid S. Miller <[email protected]>2018-07-12 16:55:29 -0700
commitbab2c80e5a6c855657482eac9e97f5f3eedb509a (patch)
tree737e565888fea5804ed4723789e1b604259ad5d6 /tools/perf/scripts/python/mem-phys-addr.py
parent8b7008620b8452728cadead460a36f64ed78c460 (diff)
nsh: set mac len based on inner packet
When pulling the NSH header in nsh_gso_segment, set the mac length based on the encapsulated packet type. skb_reset_mac_len computes an offset to the network header, which here still points to the outer packet: > skb_reset_network_header(skb); > [...] > __skb_pull(skb, nsh_len); > skb_reset_mac_header(skb); // now mac hdr starts nsh_len == 8B after net hdr > skb_reset_mac_len(skb); // mac len = net hdr - mac hdr == (u16) -8 == 65528 > [..] > skb_mac_gso_segment(skb, ..) Link: http://lkml.kernel.org/r/CAF=yD-KeAcTSOn4AxirAxL8m7QAS8GBBe1w09eziYwvPbbUeYA@mail.gmail.com Reported-by: [email protected] Fixes: c411ed854584 ("nsh: add GSO support") Signed-off-by: Willem de Bruijn <[email protected]> Acked-by: Jiri Benc <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions