Skip to content

Commit

Permalink
fix NETDEV_OFFLOAD_XSTATS_* on luanotifier
Browse files Browse the repository at this point in the history
* only supported for kernel version >= 5.18
  • Loading branch information
lneto committed Nov 7, 2023
1 parent 4eb59aa commit 46d6a8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/luanotifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,12 @@ static const lunatik_reg_t luanotifier_netdev[] = {
{"CVLAN_FILTER_DROP_INFO", NETDEV_CVLAN_FILTER_DROP_INFO},
{"SVLAN_FILTER_PUSH_INFO", NETDEV_SVLAN_FILTER_PUSH_INFO},
{"SVLAN_FILTER_DROP_INFO", NETDEV_SVLAN_FILTER_DROP_INFO},
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
{"OFFLOAD_XSTATS_ENABLE", NETDEV_OFFLOAD_XSTATS_ENABLE},
{"OFFLOAD_XSTATS_DISABLE", NETDEV_OFFLOAD_XSTATS_DISABLE},
{"OFFLOAD_XSTATS_REPORT_USED", NETDEV_OFFLOAD_XSTATS_REPORT_USED},
{"OFFLOAD_XSTATS_REPORT_DELTA", NETDEV_OFFLOAD_XSTATS_REPORT_DELTA},
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0))
{"XDP_FEAT_CHANGE", NETDEV_XDP_FEAT_CHANGE}
#endif
Expand Down

0 comments on commit 46d6a8d

Please sign in to comment.