Hello Slava, Note that I am using the following dpdk rc. DPDK 19.11 rc-1
BR, HIdeyuki Yamashita NTT TechnoCross > Hello Slava, > > As I reported to you, creating flow was successful with Connect-X5. > However when I sent packets to the NIC from outer side of > the host, I have problem. > > > [Case 1] > Packet distribution on multi-queue based on dst MAC address. > > NIC config: > 04:00.0 Mellanox Connect-X5 > 0.5.00.0 Intel XXV710 > > testpmd startup param: > sudo ./testpmd -c 1ffff -n 4 --socket-mem=1024,1024 --log-level=10 -w > 04:00.0,dv_flow_en=1 -w 05:00.0 -- -i --rxq=16 --txq=16 --disable-rss > --pkt-filter-mode=perfect > > flow command: > testpmd> flow create 0 ingress pattern eth dst is 11:22:33:44:55:66 / end > actions queue index 1 / end > Flow rule #0 created > testpmd> flow create 1 ingress pattern eth dst is 11:22:33:44:55:66 type mask > 0xffff / end actions queue index 1 / end > Flow rule #0 created > > Packet reception:(no VLAN tag) > port 0/queue 0: received 1 packets > src=CC:CC:CC:CC:CC:CC - dst=11:22:33:44:55:66 - type=0x0800 - length=60 - > nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: > L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Receive queue=0x0 > ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_GOOD > PKT_RX_OUTER_L4_CKSUM_UNKNOWN > port 1/queue 0: sent 1 packets > src=CC:CC:CC:CC:CC:CC - dst=11:22:33:44:55:66 - type=0x0800 - length=60 - > nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: > L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Send queue=0x0 > ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_GOOD > PKT_RX_OUTER_L4_CKSUM_UNKNOWN > > port 1/queue 1: received 1 packets > src=CC:CC:CC:CC:CC:CC - dst=11:22:33:44:55:66 - type=0x0800 - length=60 - > nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_ICMP - sw ptype: > L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Receive queue=0x1 > ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD > PKT_RX_OUTER_L4_CKSUM_UNKNOWN > port 0/queue 1: sent 1 packets > src=CC:CC:CC:CC:CC:CC - dst=11:22:33:44:55:66 - type=0x0800 - length=60 - > nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_ICMP - sw ptype: > L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Send queue=0x1 > ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD > PKT_RX_OUTER_L4_CKSUM_UNKNOWN > > Result: > Matched packet queued to queue=0 port=0. Not queue=1, port=0. > > Expectation: > When receiving packet which has dst MAC 11:22:33:44:55:66 should be > received on queue=1 port=0. > > Question: > Why matching packet is NOT enqueued into queue=1 on port=0? > > > [Case 2] > Packet distribution on multi-queue based on VLAN tag > > testpmd startup param: > sudo ./testpmd -c 1ffff -n 4 --socket-mem=1024,1024 --log-level=10 -w > 04:00.0,dv_flow_en=1 -w 05:00.0 -- -i --rxq=16 --txq=16 --disable-rss > --pkt-filter-mode=perfect > > flow command: > flow create 0 ingress group 1 pattern eth / vlan vid is 100 / end actions > queue index 1 / of_pop_vlan / end > flow create 0 ingress group 0 pattern eth / end actions jump group 1 / end > > Packet Reception: (VLAN100) > port 0/queue 1: received 1 packets > src=CC:CC:CC:CC:CC:CC - dst=11:22:33:44:55:66 - type=0x0800 - length=56 - > nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: > L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Receive queue=0x1 > ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_GOOD > PKT_RX_OUTER_L4_CKSUM_UNKNOWN > port 1/queue 1: sent 1 packets > src=CC:CC:CC:CC:CC:CC - dst=11:22:33:44:55:66 - type=0x0800 - length=56 - > nb_segs=1 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: > L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Send queue=0x1 > ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_GOOD > PKT_RX_OUTER_L4_CKSUM_UNKNOWN > > Result: > Matched packetd queued to queue=1, port=0 > Other packet(VLAN101 packet) discarded. > > Expectation: > Matched packet queued to queue =1, port=0 > Non Matched packet queued to queue=0, port=0 > > Question: > Is above behavior collect? > What is the default behavior of unmatchedd packets (queue to queue=0 or > discard packet) > > BR, > Hideyuki Yamashita > NTT TechnoCross > > > > >