xdp: add xdp_set_features_flag utility routine
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 9 Mar 2023 12:25:27 +0000 (13:25 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Mar 2023 05:33:47 +0000 (21:33 -0800)
commitf85949f98206b3b11d92d695cea4efda6a81f00e
tree61ab92384f1b1b08ae2e55447c11d05e2301450d
parentbf51d27704c963ea52c0843096e23c9f404b13af
xdp: add xdp_set_features_flag utility routine

Introduce xdp_set_features_flag utility routine in order to update
dynamically xdp_features according to the dynamic hw configuration via
ethtool (e.g. changing number of hw rx/tx queues).
Add xdp_clear_features_flag() in order to clear all xdp_feature flag.

Reviewed-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/netdev.yaml
include/net/xdp.h
include/uapi/linux/netdev.h
net/core/xdp.c
tools/include/uapi/linux/netdev.h