gre: add collect_md mode for ERSPAN tunnel
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | gre: refactor the gre_fb_xmitnet/ | +40 | 0 replies | |
| 2/3 | gre: add collect_md mode to ERSPAN tunnelinclude/ net/ | +101 | 0 replies | |
| 3/3 | samples/bpf: extend test_tunnel_bpf.sh with ERSPANsamples/ samples/ | +91 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Alexei Starovoitov |
|---|---|
| 1/3 | |
| 2/3 | |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/3] gre: add collect_md mode for ERSPAN tunnel
This patch series provide collect_md mode for ERSPAN tunnel. The fist patch refactors the existing gre_fb_xmit function by exacting the route cache portion into a new function called prepare_fb_xmit. The second patch introduces the collect_md mode for ERSPAN tunnel, by calling the prepare_fb_xmit function and adding ERSPAN specific logic. The final patch adds the test case using bpf_skb_{set,get}_tunnel_{key,opt}.
Thank you
William Tu (3):
gre: refactor the gre_fb_xmit
gre: add collect_md mode to ERSPAN tunnel samples/bpf: extend test_tunnel_bpf.sh with ERSPAN
include/net/ip_tunnels.h | 4 +- net/ipv4/ip_gre.c | 157 ++++++++++++++++++++++++++++++++++++----- samples/bpf/tcbpf2_kern.c | 63 ++++++++++++++++- samples/bpf/test_tunnel_bpf.sh | 29 ++++++++ 4 files changed, 232 insertions(+), 21 deletions(-)
Signature · 1 line
2.7.4