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>
Showing
- Documentation/netlink/specs/netdev.yaml 1 addition, 0 deletionsDocumentation/netlink/specs/netdev.yaml
- include/net/xdp.h 11 additions, 0 deletionsinclude/net/xdp.h
- include/uapi/linux/netdev.h 2 additions, 0 deletionsinclude/uapi/linux/netdev.h
- net/core/xdp.c 19 additions, 7 deletionsnet/core/xdp.c
- tools/include/uapi/linux/netdev.h 2 additions, 0 deletionstools/include/uapi/linux/netdev.h
Loading
Please register or sign in to comment