diff options
author | Jesper Dangaard Brouer <[email protected]> | 2017-05-01 11:26:20 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-05-01 10:42:37 -0400 |
commit | f76254a845a661ccdb9fa246ee72197f90a8d3dd (patch) | |
tree | b101f0cb75d4d3d75880286c36d95951ad94edd6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 6387d0111ca4740b69a082a92fc373185af11133 (diff) |
samples/bpf: fix XDP_FLAGS_SKB_MODE detach for xdp_tx_iptunnel
The xdp_tx_iptunnel program can be terminated in two ways, after
N-seconds or via Ctrl-C SIGINT. The SIGINT code path does not
handle detatching the correct XDP program, in-case the program
was attached with XDP_FLAGS_SKB_MODE.
Fix this by storing the XDP flags as a global variable, which is
available for the SIGINT handler function.
Fixes: 3993f2cb983b ("samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel")
Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Reviewed-by: Andy Gospodarek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions