From: Daniel Borkmann Date: Sun, 31 Dec 2017 15:12:24 +0000 (+0100) Subject: Merge branch 'bpf-offload-report-dev' X-Git-Tag: v4.16-rc1~123^2~227^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5620e1a8e2e6f96bdb72abfd68a56ce8cb94dd4d;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'bpf-offload-report-dev' Jakub Kicinski says: ==================== This series is a redo of reporting offload device information to user space after the first attempt did not take into account name spaces. As requested by Kirill offloads are now protected by an r/w sem. This allows us to remove the workqueue and free the offload state fully when device is removed (suggested by Alexei). Net namespace is reported with a device/inode pair. The accompanying bpftool support is placed in common code because maps will have very similar info. Note that the UAPI information can't be nicely encapsulated into a struct, because in case we need to grow the device information the new fields will have to be added at the end of struct bpf_prog_info, we can't grow structures in the middle of bpf_prog_info. v3: - use dev_get_by_index(); - redo ns code (new patch 6). v2: - rework the locking in patch 1 (use RCU instead of locking dependencies); - grab RTNL for a short time in patch 6; - minor update to the test in patch 8. ==================== Signed-off-by: Daniel Borkmann --- 5620e1a8e2e6f96bdb72abfd68a56ce8cb94dd4d