Allow the flags to be specified in remove_xdp()
authorGary Lin <glin@suse.com>
Fri, 18 Aug 2017 09:42:08 +0000 (17:42 +0800)
committerBrenden Blanco <bblanco@gmail.com>
Tue, 22 Aug 2017 18:37:30 +0000 (11:37 -0700)
commitf72909f15be3a1e015f0dfa7f953ca8192b07977
tree6de90182b2a9c33cb7a5111e3d2a2d1cb11568f0
parent007d28c534e1a98e6017ac9f4c8cb1c0f5244388
Allow the flags to be specified in remove_xdp()

When detaching a generic XDP program to an interface without native XDP
support, remove_xdp() showed the following message:

   bpf: nlmsg error Operation not supported

Add the flags parameter to notify the kernel that it's a generic XDP
program.
examples/networking/xdp/xdp_drop_count.py
src/python/bcc/__init__.py