History

net: define an enum for the napi threaded state

Instead of using '0' and '1' for napi threaded state use an enum with 'disabled' and 'enabled' states. Tested: ./tools/testing/selftests/net/nl_netdev.py TAP version 13 1..7 ok 1 nl_netdev.empty_check ok 2 nl_netdev.lo_check ok 3 nl_netdev.page_pool_check ok 4 nl_netdev.napi_list_check ok 5 nl_netdev.dev_set_threaded ok 6 nl_netdev.napi_set_threaded ok 7 nl_netdev.nsim_rxq_reset_down # Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0

Samiullah Khawaja committed 1 year ago

Commit 8e7583a1 parent 78afdad11 files · +62 −41Browse files

Showing the changes to include/uapi (1 of 11 files). Show all

Unified · Split

include/uapi/linux/netdev.h+5−0
@@ -77,6 +77,11 @@ enum netdev_qstats_scope { · 76 unmodified lines
7777 NETDEV_QSTATS_SCOPE_QUEUE = 1,
7878 };
7979
80+enum netdev_napi_threaded {
81+ NETDEV_NAPI_THREADED_DISABLED,
82+ NETDEV_NAPI_THREADED_ENABLED,
83+};
84+
8085 enum {
8186 NETDEV_A_DEV_IFINDEX = 1,
8287 NETDEV_A_DEV_PAD,