netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/10] bpf: xdp: Report bpf_prog ID in IFLA_XDP
@ 2017-06-13  1:00 Martin KaFai Lau
  2017-06-13  1:00 ` [PATCH net-next 01/10] net: Add IFLA_XDP_PROG_ID Martin KaFai Lau
                   ` (10 more replies)
  0 siblings, 11 replies; 19+ messages in thread
From: Martin KaFai Lau @ 2017-06-13  1:00 UTC (permalink / raw)
  To: netdev; +Cc: Alexei Starovoitov, Daniel Borkmann, kernel-team

This is the first usage of the new bpf_prog ID.  It is for
reporting the ID of a xdp_prog through netlink.

It rides on the existing IFLA_XDP.  This patch adds IFLA_XDP_PROG_ID
for the bpf_prog ID reporting.

It starts with changing the generic_xdp first.  After that,
the hardware driver is changed one by one.  The final patch
removes the prog_attached from 'struct netdev_xdp' because
prog_id > 0 implies the presence of xdp_prog.

I have tested with generic_xdp, mlx4 and mlx5.

Martin KaFai Lau (10):
  net: Add IFLA_XDP_PROG_ID
  bpf: mlx4: Report bpf_prog ID during XDP_QUERY_PROG
  bpf: mlx5e: Report bpf_prog ID during XDP_QUERY_PROG
  bpf: virtio_net: Report bpf_prog ID during XDP_QUERY_PROG
  bpf: bnxt: Report bpf_prog ID during XDP_QUERY_PROG
  bpf: thunderx: Report bpf_prog ID during XDP_QUERY_PROG
  bpf: ixgbe: Report bpf_prog ID during XDP_QUERY_PROG
  bpf: nfp: Report bpf_prog ID during XDP_QUERY_PROG
  bpf: qede: Report bpf_prog ID during XDP_QUERY_PROG
  net: Remove prog_attached from struct netdev_xdp

 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c      | 11 ++++++--
 drivers/net/ethernet/cavium/thunder/nicvf_main.c   | 11 ++++++--
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c      | 11 ++++++--
 drivers/net/ethernet/mellanox/mlx4/en_netdev.c     | 20 ++++++++++++--
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c  | 14 ++++++++--
 .../net/ethernet/netronome/nfp/nfp_net_common.c    | 11 ++++++--
 drivers/net/ethernet/qlogic/qede/qede_filter.c     | 11 ++++++--
 drivers/net/virtio_net.c                           | 12 ++++----
 include/linux/netdevice.h                          |  4 +--
 include/uapi/linux/if_link.h                       |  1 +
 net/core/dev.c                                     | 15 +++++-----
 net/core/rtnetlink.c                               | 32 +++++++++++++++++-----
 12 files changed, 116 insertions(+), 37 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-06-13 19:05 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-13  1:00 [PATCH net-next 00/10] bpf: xdp: Report bpf_prog ID in IFLA_XDP Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 01/10] net: Add IFLA_XDP_PROG_ID Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 02/10] bpf: mlx4: Report bpf_prog ID during XDP_QUERY_PROG Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 03/10] bpf: mlx5e: " Martin KaFai Lau
2017-06-13 16:04   ` Saeed Mahameed
2017-06-13 18:49     ` Martin KaFai Lau
2017-06-13 19:04       ` Daniel Borkmann
2017-06-13  1:00 ` [PATCH net-next 04/10] bpf: virtio_net: " Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 05/10] bpf: bnxt: " Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 06/10] bpf: thunderx: " Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 07/10] bpf: ixgbe: " Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 08/10] bpf: nfp: " Martin KaFai Lau
2017-06-13  1:28   ` Jakub Kicinski
2017-06-13  4:54     ` Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 09/10] bpf: qede: " Martin KaFai Lau
2017-06-13  1:00 ` [PATCH net-next 10/10] net: Remove prog_attached from struct netdev_xdp Martin KaFai Lau
2017-06-13  1:26 ` [PATCH net-next 00/10] bpf: xdp: Report bpf_prog ID in IFLA_XDP Jakub Kicinski
2017-06-13  5:35   ` Martin KaFai Lau
2017-06-13  6:07     ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).