]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: report BPF prog id during XDP_QUERY_PROG
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 24 Jun 2017 19:13:52 +0000 (21:13 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 26 Jul 2017 10:25:21 +0000 (03:25 -0700)
commitec07b0cf3f8752a55ec3c1f9e8c10133f4d7bbc2
treeca7ee2b20e1e7cb7fccfe973b1af8c74333a31ae
parent0d7604d0402468aa0272cf81d30f863714cd6dad
i40e: report BPF prog id during XDP_QUERY_PROG

Fill the XDP prog_id with the id just like we do in other XDP enabled
drivers such as ixgbe. This is needed so that on dump we can retrieve
the attached program based on the id, and dump BPF insns, opcodes, etc
back to user space. Only XDP driver missing this is currently i40e.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c