diff mbox series

[iproute2] testsuite: link xfrm delete no if_id test

Message ID ae4f7181d7ff016c262b638e3dd42d708833d5b1.1646858967.git.antony.antony@secunet.com (mailing list archive)
State Accepted
Delegated to: Stephen Hemminger
Headers show
Series [iproute2] testsuite: link xfrm delete no if_id test | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Antony Antony March 9, 2022, 8:52 p.m. UTC
Since kernel commit 8dce43919566 ("xfrm: interface with if_id 0 should return error")
if_id should be non zero.
Delete the test without if_id, which defaulted if_id to zero.

Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Antony Antony <antony.antony@secunet.com>
---
 testsuite/tests/ip/link/add_type_xfrm.t | 15 ---------------
 1 file changed, 15 deletions(-)

--
2.30.2
diff mbox series

Patch

diff --git a/testsuite/tests/ip/link/add_type_xfrm.t b/testsuite/tests/ip/link/add_type_xfrm.t
index 78ce28e0..caba0e46 100755
--- a/testsuite/tests/ip/link/add_type_xfrm.t
+++ b/testsuite/tests/ip/link/add_type_xfrm.t
@@ -15,18 +15,3 @@  test_on "$NEW_DEV"
 test_on "if_id $IF_ID"

 ts_ip "$0" "Del $NEW_DEV xfrm interface"   link del dev $NEW_DEV
-
-
-ts_log "[Testing Add XFRM Interface, No IF-ID]"
-
-PHYS_DEV="lo"
-NEW_DEV="$(rand_dev)"
-IF_ID="0xf"
-
-ts_ip "$0" "Add $NEW_DEV xfrm interface"    link add dev $NEW_DEV type xfrm dev $PHYS_DEV
-
-ts_ip "$0" "Show $NEW_DEV xfrm interface"   -d link show dev $NEW_DEV
-test_on "$NEW_DEV"
-test_on_not "if_id $IF_ID"
-
-ts_ip "$0" "Del $NEW_DEV xfrm interface"   link del dev $NEW_DEV