From 5e84698e0c758a0c8b30371aa810908a3f013e36 Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Wed, 16 Aug 2017 09:23:09 +0200 Subject: [PATCH] python - set attach_xdp's default flag value to 0 Signed-off-by: Gabriel Ganne --- src/python/bcc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/bcc/__init__.py b/src/python/bcc/__init__.py index 7127f518..5488f529 100644 --- a/src/python/bcc/__init__.py +++ b/src/python/bcc/__init__.py @@ -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) -- 2.34.1