mbox series

[bpf-next,v2,0/3] bpf: expose information about netdev xdp-metadata kfunc support

Message ID 20230913171350.369987-1-sdf@google.com (mailing list archive)
Headers show
Series bpf: expose information about netdev xdp-metadata kfunc support | expand

Message

Stanislav Fomichev Sept. 13, 2023, 5:13 p.m. UTC
Extend netdev netlink family to expose the bitmask with the
kfuncs that the device implements. The source of truth is the
device's xdp_metadata_ops. There is some amount of auto-generated
netlink boilerplate; the change itself is super minimal.

v2:
- add netdev->xdp_metadata_ops NULL check when dumping to netlink (Martin)

Cc: netdev@vger.kernel.org
Cc: Willem de Bruijn <willemb@google.com>

Stanislav Fomichev (3):
  bpf: make it easier to add new metadata kfunc
  bpf: expose information about supported xdp metadata kfunc
  tools: ynl: extend netdev sample to dump xdp-rx-metadata-features

 Documentation/netlink/specs/netdev.yaml      | 21 ++++++++++++++++++++
 Documentation/networking/xdp-rx-metadata.rst |  7 +++++++
 include/net/xdp.h                            | 19 ++++++++++++++----
 include/uapi/linux/netdev.h                  | 16 +++++++++++++++
 kernel/bpf/offload.c                         |  9 +++++----
 net/core/netdev-genl.c                       | 12 ++++++++++-
 net/core/xdp.c                               |  4 ++--
 tools/include/uapi/linux/netdev.h            | 16 +++++++++++++++
 tools/net/ynl/generated/netdev-user.c        | 19 ++++++++++++++++++
 tools/net/ynl/generated/netdev-user.h        |  3 +++
 tools/net/ynl/samples/Makefile               |  2 +-
 tools/net/ynl/samples/netdev.c               |  8 +++++++-
 12 files changed, 123 insertions(+), 13 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Sept. 15, 2023, 6:30 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Martin KaFai Lau <martin.lau@kernel.org>:

On Wed, 13 Sep 2023 10:13:47 -0700 you wrote:
> Extend netdev netlink family to expose the bitmask with the
> kfuncs that the device implements. The source of truth is the
> device's xdp_metadata_ops. There is some amount of auto-generated
> netlink boilerplate; the change itself is super minimal.
> 
> v2:
> - add netdev->xdp_metadata_ops NULL check when dumping to netlink (Martin)
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2,1/3] bpf: make it easier to add new metadata kfunc
    https://git.kernel.org/bpf/bpf-next/c/fc45c5b642db
  - [bpf-next,v2,2/3] bpf: expose information about supported xdp metadata kfunc
    https://git.kernel.org/bpf/bpf-next/c/a9c2a608549b
  - [bpf-next,v2,3/3] tools: ynl: extend netdev sample to dump xdp-rx-metadata-features
    https://git.kernel.org/bpf/bpf-next/c/0c6c9b105ee9

You are awesome, thank you!