From: Gabriel Ganne Date: Wed, 16 Aug 2017 07:23:09 +0000 (+0200) Subject: python - set attach_xdp's default flag value to 0 X-Git-Tag: submit/tizen_4.0/20171018.110122~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e84698e0c758a0c8b30371aa810908a3f013e36;p=platform%2Fupstream%2Fbcc.git python - set attach_xdp's default flag value to 0 Signed-off-by: Gabriel Ganne --- 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)