summaryrefslogtreecommitdiff
path: root/net/mpls/mpls_iptunnel.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2018-08-15 17:57:14 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-08-16 22:55:32 +0300
commit817b89beb9d8876450fcde9155e17425c329569d (patch)
tree8bce921ed07fac52944dbb6d156cc16f62f864b3 /net/mpls/mpls_iptunnel.c
parent21b172ee11b6ec260bd7e6a27b11a8a8d392fce5 (diff)
downloadlinux-817b89beb9d8876450fcde9155e17425c329569d.tar.xz
samples/bpf: all XDP samples should unload xdp/bpf prog on SIGTERM
It is common XDP practice to unload/deattach the XDP bpf program, when the XDP sample program is Ctrl-C interrupted (SIGINT) or killed (SIGTERM). The samples/bpf programs xdp_redirect_cpu and xdp_rxq_info, forgot to trap signal SIGTERM (which is the default signal used by the kill command). This was discovered by Red Hat QA, which automated scripts depend on killing the XDP sample program after a timeout period. Fixes: fad3917e361b ("samples/bpf: add cpumap sample program xdp_redirect_cpu") Fixes: 0fca931a6f21 ("samples/bpf: program demonstrating access to xdp_rxq_info") Reported-by: Jean-Tsung Hsiao <jhsiao@redhat.com> Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/mpls/mpls_iptunnel.c')
0 files changed, 0 insertions, 0 deletions