Blame SOURCES/0001-tests-flowtable-Don-t-check-NFTNL_FLOWTABLE_SIZE.patch

763a55
From 3f0616b15e32def6d01b4535ac0efb51caa07662 Mon Sep 17 00:00:00 2001
763a55
From: Phil Sutter <psutter@redhat.com>
763a55
Date: Mon, 2 Dec 2019 18:55:39 +0100
763a55
Subject: [PATCH] tests: flowtable: Don't check NFTNL_FLOWTABLE_SIZE
763a55
763a55
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1717129
763a55
Upstream Status: libnftnl commit b2388765e0c44
763a55
763a55
commit b2388765e0c4405442faa13845419f6a35d0134c
763a55
Author: Phil Sutter <phil@nwl.cc>
763a55
Date:   Mon Dec 2 18:29:56 2019 +0100
763a55
763a55
    tests: flowtable: Don't check NFTNL_FLOWTABLE_SIZE
763a55
763a55
    Marshalling code around that attribute has been dropped by commit
763a55
    d1c4b98c733a5 ("flowtable: remove NFTA_FLOWTABLE_SIZE") so it's value is
763a55
    lost during the test.
763a55
763a55
    Assuming that NFTNL_FLOWTABLE_SIZE will receive kernel support at a
763a55
    later point, leave the test code in place but just comment it out.
763a55
763a55
    Fixes: d1c4b98c733a5 ("flowtable: remove NFTA_FLOWTABLE_SIZE")
763a55
    Signed-off-by: Phil Sutter <phil@nwl.cc>
763a55
    Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
763a55
---
763a55
 tests/nft-flowtable-test.c | 2 ++
763a55
 1 file changed, 2 insertions(+)
763a55
763a55
diff --git a/tests/nft-flowtable-test.c b/tests/nft-flowtable-test.c
763a55
index 3edb00d..8ab8d4c 100644
763a55
--- a/tests/nft-flowtable-test.c
763a55
+++ b/tests/nft-flowtable-test.c
763a55
@@ -33,9 +33,11 @@ static void cmp_nftnl_flowtable(struct nftnl_flowtable *a, struct nftnl_flowtabl
763a55
 	if (nftnl_flowtable_get_u32(a, NFTNL_FLOWTABLE_USE) !=
763a55
 	    nftnl_flowtable_get_u32(b, NFTNL_FLOWTABLE_USE))
763a55
 		print_err("Flowtable use mismatches");
763a55
+#if 0
763a55
 	if (nftnl_flowtable_get_u32(a, NFTNL_FLOWTABLE_SIZE) !=
763a55
 	    nftnl_flowtable_get_u32(b, NFTNL_FLOWTABLE_SIZE))
763a55
 		print_err("Flowtable size mismatches");
763a55
+#endif
763a55
 	if (nftnl_flowtable_get_u32(a, NFTNL_FLOWTABLE_FLAGS) !=
763a55
 	    nftnl_flowtable_get_u32(b, NFTNL_FLOWTABLE_FLAGS))
763a55
 		print_err("Flowtable flags mismatches");
763a55
-- 
763a55
1.8.3.1
763a55