Skip to content

net: erspan fixes

William Tu netdev 1 version Applied

Status from this message: Applied, thanks William.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3net: erspan: fix metadata extractioninclude/net/erspan.h net/ipv4/ip_gre.c net/ipv6/ip6_gre.c+21 -160 replies
2/3net: erspan: fix erspan config overwritenet/ipv4/ip_gre.c net/ipv6/ip6_gre.c+0 -180 replies
3/3sample/bpf: fix erspan metadatasamples/bpf/tcbpf2_kern.c samples/bpf/test_tunnel_bpf.sh+18 -270 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] net: erspan fixes

The first patch fixes erspan metadata extraction issue from packet header due to commit d350a823020e ("net: erspan: create erspan metadata uapi header"). The commit moves the erspan 'version' in 'struct erspan_metadata' in front of 'struct erspan_md2' for later extensibility, but breaks the existing metadata extraction code due to extra 4-byte size 'version'. The second patch fixes the case where tunnel device receives an erspan packet with different tunnel metadata (ex: version, index, hwid, direction), existing code overwrites the tunnel device's erspan configuration. The third patch fixes the bpf tests due to the above patches.

William Tu (3):
net: erspan: fix metadata extraction
net: erspan: fix erspan config overwrite
sample/bpf: fix erspan metadata

 include/net/erspan.h           | 26 +++++++++++++-------------
 net/ipv4/ip_gre.c              | 14 ++++----------
 net/ipv6/ip6_gre.c             | 15 ++++-----------
 samples/bpf/tcbpf2_kern.c      | 41 ++++++++++++++++-------------------------
 samples/bpf/test_tunnel_bpf.sh |  4 ++--
 5 files changed, 39 insertions(+), 61 deletions(-)
Signature · 1 line
2.7.4