* [dts] [PATCH V1] fix Niantic ipv6 fwd failed case
@ 2016-12-19 7:08 xu,huilong
2016-12-19 7:11 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2016-12-19 7:08 UTC (permalink / raw)
To: dts; +Cc: xu,huilong
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_fdir.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py
index 40c9783..aa0ec52 100644
--- a/tests/TestSuite_fdir.py
+++ b/tests/TestSuite_fdir.py
@@ -343,7 +343,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)], iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
if (self.nic in ["niantic"]):
self.dut.send_expect("flow_director_filter %s mode IP add flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 1, 1), "testpmd>")
- self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
+ self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
self.send_and_verify(True, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)], iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
self.dut.send_expect("flow_director_filter %s mode IP del flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
@@ -354,7 +354,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)], iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
if (self.nic in ["niantic"]):
self.dut.send_expect("flow_director_filter %s mode IP add flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 1, 1), "testpmd>")
- self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
+ self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
self.send_and_verify(True, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)], iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
self.dut.send_expect("flow_director_filter %s mode IP del flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
@@ -366,7 +366,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32, dport=32, tag=1)/SCTPChunkData(data="X"*46)], iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
if (self.nic in ["niantic"]):
self.dut.send_expect("flow_director_filter 0 mode IP add flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(1,1), "testpmd>")
- self.dut.send_expect("flow_director_filter 0 mode IP update flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(2,1), "testpmd>")
+ self.dut.send_expect("flow_director_filter 0 mode IP update flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(2,1), "testpmd>")
self.send_and_verify(True, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32, dport=32, tag=1)/SCTPChunkData(data="X"*46)], iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
self.dut.send_expect("flow_director_filter 0 mode IP del flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20 ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(2,1), "testpmd>")
self.fdir_get_flexbytes()
@@ -628,7 +628,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)/Raw(load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload, self.dut_rx_interface))
if (self.nic in ["niantic"]):
self.dut.send_expect("flow_director_filter %s mode IP add flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 1, 1), "testpmd>")
- self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 2, 1), "testpmd>")
+ self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 2, 1), "testpmd>")
self.send_and_verify(True, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)/Raw(load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload, self.dut_rx_interface))
self.dut.send_expect("flow_director_filter %s mode IP del flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 2, 1), "testpmd>")
@@ -639,7 +639,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)/Raw(load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload, self.dut_rx_interface))
if (self.nic in ["niantic"]):
self.dut.send_expect("flow_director_filter %s mode IP add flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 1, 1), "testpmd>")
- self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 2, 1), "testpmd>")
+ self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 2, 1), "testpmd>")
self.send_and_verify(True, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)/Raw(load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload, self.dut_rx_interface))
self.dut.send_expect("flow_director_filter %s mode IP del flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 2, 1), "testpmd>")
#ipv6 sctp
@@ -650,7 +650,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32, dport=32, tag=1)/SCTPChunkData(data="%s")], iface="%s")' % (self.dut_rx_interface, self.payload, self.dut_rx_interface))
if (self.nic in ["niantic"]):
self.dut.send_expect("flow_director_filter %s mode IP add flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d "%(self.dut_ports[0],self.flexbytes,1,1), "testpmd>")
- self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d "%(self.dut_ports[0],self.flexbytes,2,1), "testpmd>")
+ self.dut.send_expect("flow_director_filter %s mode IP update flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d "%(self.dut_ports[0],self.flexbytes,2,1), "testpmd>")
self.send_and_verify(True, 'sendp([Ether(src=get_if_hwaddr("%s"), dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32, dport=32, tag=1)/SCTPChunkData(data="%s")], iface="%s")' % (self.dut_rx_interface, self.payload, self.dut_rx_interface))
self.dut.send_expect("flow_director_filter %s mode IP del flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20 ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d "%(self.dut_ports[0],self.flexbytes,2,1), "testpmd>")
self.fdir_get_flexbytes()
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] fix Niantic ipv6 fwd failed case
2016-12-19 7:08 [dts] [PATCH V1] fix Niantic ipv6 fwd failed case xu,huilong
@ 2016-12-19 7:11 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-12-19 7:11 UTC (permalink / raw)
To: Xu, HuilongX, dts; +Cc: Xu, HuilongX
Huilong, look like command line changed. Please add some description about the fix in commit log.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
> Sent: Monday, December 19, 2016 3:09 PM
> To: dts@dpdk.org
> Cc: Xu, HuilongX
> Subject: [dts] [PATCH V1] fix Niantic ipv6 fwd failed case
>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_fdir.py | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py
> index 40c9783..aa0ec52 100644
> --- a/tests/TestSuite_fdir.py
> +++ b/tests/TestSuite_fdir.py
> @@ -343,7 +343,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)],
> iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
> if (self.nic in ["niantic"]):
> self.dut.send_expect("flow_director_filter %s mode IP add
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan
> 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 1, 1),
> "testpmd>")
> - self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan
> 0 flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1),
> "testpmd>")
> + self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 ttl 40 vlan 0
> flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1),
> "testpmd>")
> self.send_and_verify(True,
> 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)],
> iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
> self.dut.send_expect("flow_director_filter %s mode IP del
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 flexbytes () fwd pf queue %d
> fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
>
> @@ -354,7 +354,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)],
> iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
> if (self.nic in ["niantic"]):
> self.dut.send_expect("flow_director_filter %s mode IP add
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0
> flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 1, 1),
> "testpmd>")
> - self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0
> flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1),
> "testpmd>")
> + self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 ttl 40 vlan 0 flexbytes
> () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1), "testpmd>")
> self.send_and_verify(True,
> 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)],
> iface="%s")' % (self.dut_rx_interface, self.dut_rx_interface))
> self.dut.send_expect("flow_director_filter %s mode IP del
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0
> flexbytes () fwd pf queue %d fd_id %d " % (self.dut_ports[0], 2, 1),
> "testpmd>")
>
> @@ -366,7 +366,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32,
> dport=32, tag=1)/SCTPChunkData(data="X"*46)], iface="%s")' %
> (self.dut_rx_interface, self.dut_rx_interface))
> if (self.nic in ["niantic"]):
> self.dut.send_expect("flow_director_filter 0 mode IP add
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20
> ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(1,1), "testpmd>")
> - self.dut.send_expect("flow_director_filter 0 mode IP update
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20
> ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(2,1), "testpmd>")
> + self.dut.send_expect("flow_director_filter 0 mode IP update
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 ttl 40
> vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(2,1), "testpmd>")
> self.send_and_verify(True,
> 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32,
> dport=32, tag=1)/SCTPChunkData(data="X"*46)], iface="%s")' %
> (self.dut_rx_interface, self.dut_rx_interface))
> self.dut.send_expect("flow_director_filter 0 mode IP del
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20
> ttl 40 vlan 0 flexbytes () fwd pf queue %d fd_id %d "%(2,1), "testpmd>")
> self.fdir_get_flexbytes()
> @@ -628,7 +628,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)/
> Raw(load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload,
> self.dut_rx_interface))
> if (self.nic in ["niantic"]):
> self.dut.send_expect("flow_director_filter %s mode IP add
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 ttl 40 vlan 0
> flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0],
> self.flexbytes, 1, 1), "testpmd>")
> - self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan
> 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0],
> self.flexbytes, 2, 1), "testpmd>")
> + self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 ttl 40 vlan 0
> flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0],
> self.flexbytes, 2, 1), "testpmd>")
> self.send_and_verify(True,
> 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/UDP(sport=1024,dport=1024)/
> Raw(load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload,
> self.dut_rx_interface))
> self.dut.send_expect("flow_director_filter %s mode IP del
> flow ipv6-udp src FE80:0:0:0:200:1FF:FE00:200 1024 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 1024 tos 2 proto 20 ttl 40 vlan
> 0 flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0],
> self.flexbytes, 2, 1), "testpmd>")
>
> @@ -639,7 +639,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)/Raw(
> load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload,
> self.dut_rx_interface))
> if (self.nic in ["niantic"]):
> self.dut.send_expect("flow_director_filter %s mode IP add
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0
> flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0],
> self.flexbytes, 1, 1), "testpmd>")
> - self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0
> flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0],
> self.flexbytes, 2, 1), "testpmd>")
> + self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 ttl 40 vlan 0 flexbytes
> (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0], self.flexbytes, 2,
> 1), "testpmd>")
> self.send_and_verify(True,
> 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=32,dport=32)/Raw(
> load="%s")], iface="%s")' % (self.dut_rx_interface, self.payload,
> self.dut_rx_interface))
> self.dut.send_expect("flow_director_filter %s mode IP del
> flow ipv6-tcp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 tos 2 proto 20 ttl 40 vlan 0
> flexbytes (%s) fwd pf queue %d fd_id %d " % (self.dut_ports[0],
> self.flexbytes, 2, 1), "testpmd>")
> #ipv6 sctp
> @@ -650,7 +650,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.send_and_verify(False, 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32,
> dport=32, tag=1)/SCTPChunkData(data="%s")], iface="%s")' %
> (self.dut_rx_interface, self.payload, self.dut_rx_interface))
> if (self.nic in ["niantic"]):
> self.dut.send_expect("flow_director_filter %s mode IP add
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20
> ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d
> "%(self.dut_ports[0],self.flexbytes,1,1), "testpmd>")
> - self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20
> ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d
> "%(self.dut_ports[0],self.flexbytes,2,1), "testpmd>")
> + self.dut.send_expect("flow_director_filter %s mode IP update
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 ttl 40
> vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d
> "%(self.dut_ports[0],self.flexbytes,2,1), "testpmd>")
> self.send_and_verify(True,
> 'sendp([Ether(src=get_if_hwaddr("%s"),
> dst="00:1B:21:8E:B2:30")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200",
> dst="3555:5555:6666:6666:7777:7777:8888:8888", nh=132)/SCTP(sport=32,
> dport=32, tag=1)/SCTPChunkData(data="%s")], iface="%s")' %
> (self.dut_rx_interface, self.payload, self.dut_rx_interface))
> self.dut.send_expect("flow_director_filter %s mode IP del
> flow ipv6-sctp src FE80:0:0:0:200:1FF:FE00:200 32 dst
> 3555:5555:6666:6666:7777:7777:8888:8888 32 verify_tag 1 tos 2 proto 20
> ttl 40 vlan 0 flexbytes (%s) fwd pf queue %d fd_id %d
> "%(self.dut_ports[0],self.flexbytes,2,1), "testpmd>")
> self.fdir_get_flexbytes()
> --
> 1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-19 7:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-19 7:08 [dts] [PATCH V1] fix Niantic ipv6 fwd failed case xu,huilong
2016-12-19 7:11 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).