python - set attach_xdp's default flag value to 0
authorGabriel Ganne <gabriel.ganne@enea.com>
Wed, 16 Aug 2017 07:23:09 +0000 (09:23 +0200)
committerBrenden Blanco <bblanco@gmail.com>
Wed, 16 Aug 2017 19:03:56 +0000 (12:03 -0700)
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
src/python/bcc/__init__.py

index 7127f51..5488f52 100644 (file)
@@ -572,7 +572,7 @@ class BPF(object):
         self._del_kprobe(ev_name)
 
     @staticmethod
-    def attach_xdp(dev, fn, flags):
+    def attach_xdp(dev, fn, flags=0):
         '''
             This function attaches a BPF function to a device on the device
             driver level (XDP)