diff options
author | Paul Blakey <paulb@nvidia.com> | 2021-11-07 14:12:34 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-03-04 16:02:45 +0100 |
commit | de634e42296e333f71a29a5668e6c71a9e827da9 (patch) | |
tree | c6b91f2b3aef18d455bef6a029599c139910e7c0 /acinclude.m4 | |
parent | 015994d37fa441844f9c0890109074b06e64e7d0 (diff) | |
download | openvswitch-de634e42296e333f71a29a5668e6c71a9e827da9.tar.gz |
compat: Add gen_stats include to define tc hw stats.
Update kernel UAPI to support dumping hardware stats
of tc filters.
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 0c360fd1e..52474c00d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -305,6 +305,13 @@ AC_DEFUN([OVS_CHECK_LINUX_TC], [ ])], [AC_DEFINE([HAVE_TCA_SKBEDIT_FLAGS], [1], [Define to 1 if TCA_SKBEDIT_FLAGS is available.])]) + + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([#include <linux/gen_stats.h>], [ + int x = TCA_STATS_PKT64; + ])], + [AC_DEFINE([HAVE_TCA_STATS_PKT64], [1], + [Define to 1 if TCA_STATS_PKT64 is available.])]) ]) dnl OVS_CHECK_LINUX_SCTP_CT |