aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dpdk/dpdk_scripts/patch_l3fwd_flip_routes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dpdk/dpdk_scripts/patch_l3fwd_flip_routes')
-rwxr-xr-xtests/dpdk/dpdk_scripts/patch_l3fwd_flip_routes10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/dpdk/dpdk_scripts/patch_l3fwd_flip_routes b/tests/dpdk/dpdk_scripts/patch_l3fwd_flip_routes
new file mode 100755
index 0000000000..e0b204eb9c
--- /dev/null
+++ b/tests/dpdk/dpdk_scripts/patch_l3fwd_flip_routes
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+patch --ignore-whitespace l3fwd_lpm.c <<"_EOF"
+44,45c44,45
+< {IPv4(1, 1, 1, 0), 24, 0},
+< {IPv4(2, 1, 1, 0), 24, 1},
+---
+> {IPv4(1, 1, 1, 0), 24, 1},
+> {IPv4(2, 1, 1, 0), 24, 0},
+_EOF