xsk: add new netlink attribute dedicated for ZC max frags
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Wed, 19 Jul 2023 13:24:07 +0000 (15:24 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Jul 2023 16:56:49 +0000 (09:56 -0700)
commit13ce2daa259a3bfbc9a5aeeee8b9a87058703731
treeef12d37cd6fa2b51aa36f2368197a77c6872fe4a
parent07428da9e25a5dfae7252cd554c90557f9086a73
xsk: add new netlink attribute dedicated for ZC max frags

Introduce new netlink attribute NETDEV_A_DEV_XDP_ZC_MAX_SEGS that will
carry maximum fragments that underlying ZC driver is able to handle on
TX side. It is going to be included in netlink response only when driver
supports ZC. Any value higher than 1 implies multi-buffer ZC support on
underlying device.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/r/20230719132421.584801-11-maciej.fijalkowski@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/netlink/specs/netdev.yaml
include/linux/netdevice.h
include/uapi/linux/netdev.h
net/core/dev.c
net/core/netdev-genl.c
tools/include/uapi/linux/netdev.h
tools/lib/bpf/libbpf.h
tools/lib/bpf/netlink.c