d029a5efd1
* xlat/rtnl_ifla_xdp_attached_mode.in: New file. * rtnl_link.c: Include "xlat/rtnl_ifla_xdp_attached_mode.h". (decode_ifla_xdp_attached): New function. (ifla_xdp_nla_decoders) <[IFLA_XDP_ATTACHED]>: Use decode_ifla_xdp_attached instead of decode_nla_u8. * tests/nlattr_ifla_xdp.c: Add checks for IFLA_XDP_ATTACHED decoding.
7 lines
113 B
Plaintext
7 lines
113 B
Plaintext
#value_indexed
|
|
XDP_ATTACHED_NONE 0
|
|
XDP_ATTACHED_DRV 1
|
|
XDP_ATTACHED_SKB 2
|
|
XDP_ATTACHED_HW 3
|
|
XDP_ATTACHED_MULTI 4
|