From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3C4E428D4; Wed, 5 Apr 2023 16:23:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9DC6341153; Wed, 5 Apr 2023 16:23:55 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id B0C5741133 for ; Wed, 5 Apr 2023 16:23:53 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id A0F43428D5; Wed, 5 Apr 2023 16:23:53 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1210] ice: 'eth / ipv4 / udp dst is 4500 / mark' rte_flow not marking any packet Date: Wed, 05 Apr 2023 14:23:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 22.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: maxime.leroy@6wind.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: multipart/alternative; boundary=16807046330.DdeD5CF3.294876 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --16807046330.DdeD5CF3.294876 Date: Wed, 5 Apr 2023 16:23:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1210 Bug ID: 1210 Summary: ice: 'eth / ipv4 / udp dst is 4500 / mark' rte_flow not marking any packet Product: DPDK Version: 22.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: maxime.leroy@6wind.com Target Milestone: --- Environnement ------------- distribution for host/vm: Ubuntu 22.04.2 LTS, kernel 5.15.0-67-generic kernel driver: 1.10.1.2.2 firmware-version: 4.20 0x8001778a 1.3346.0 COMMS DDP: 1.3.37 ICE OS Default Package version 1.3.30.0 testpmd cmdline: ./build/app/dpdk-testpmd --log-level=3D.*ice.*,debug --legacy-mem -c 0x1110001110 -a 0000:17:00.0 -a 0000:17:00.1 -- -i --nb-cores=3D5 --nb-ports=3D2 --total-num-mbufs=3D16384 --rxq=3D4 --txq=3D4 dpdk version: 22.11.1 NIC: Intel Corporation Ethernet Controller E810-C for QSFP=20 Reproduction ------------ Configuration ............. On dut device, test-pmd configuration: testpmd> set fwd rxonly=20 Set rxonly packet forwarding mode testpmd> set verbose 1 Change verbose level from 0 to=20 testpmd> flow create 0 ingress pattern eth / ipv4 / udp dst is 4500 / end= =20 actions mark id 4 / end ice_fdir_cur_prof_conflict(): Profile already exists for flow type 1. ice_fdir_rx_parsing_enable(): FDIR processing on RX set to 1 ice_flow_create(): Succeeded to create (1) flow testpmd> flow create 0 ingress pattern eth / ipv4 / udp dst is 42 / end=20 actions mark id 4 / end ice_fdir_cur_prof_conflict(): Profile already exists for flow type 1. ice_fdir_rx_parsing_enable(): FDIR processing on RX set to 1 ice_flow_create(): Succeeded to create (1) flow Flow rule #1 created testpmd> start Test with dport=3D42 .................. On tester device: $ cat port-42.scapy=20 port =3D 42 p =3D [] p +=3D Ether(src=3D'b8:ce:f6:83:b3:13', dst=3D'40:a6:b7:7d:43:90')/IP(dst=3D'10.100.0.2', src=3D'10.100.0.1')/UDP(d= port=3Dport, sport=3Dport) sendp(p, iface=3D"eth0", count=3D3, inter=3D0.1) $ scapy < port-42.scapy=20 Welcome to Scapy (2.3.3.dev1) ...>>> >>> >>> >>> >>>=20 Sent 3 packets Result on dut device: testpmd> port 0/queue 2: received 1 packets src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty= pe=3D0x0800 - length=3D60 - nb_segs=3D1 - RSS hash=3D0x63245812 - RSS queue=3D0x2 - FDI= R matched ID=3D0x4 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP - sw ptype: L2_ET= HER L3_IPV4 L4_UDP - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive queue=3D= 0x2 ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_FDIR RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_FDIR_= ID RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20 port 0/queue 2: received 1 packets src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty= pe=3D0x0800 - length=3D60 - nb_segs=3D1 - RSS hash=3D0x63245812 - RSS queue=3D0x2 - FDI= R matched ID=3D0x4 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP - sw ptype: L2_ET= HER L3_IPV4 L4_UDP - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive queue=3D= 0x2 ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_FDIR RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_FDIR_= ID RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20 port 0/queue 2: received 1 packets src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty= pe=3D0x0800 - length=3D60 - nb_segs=3D1 - RSS hash=3D0x63245812 - RSS queue=3D0x2 - FDI= R matched ID=3D0x4 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP - sw ptype: L2_ET= HER L3_IPV4 L4_UDP - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive queue=3D= 0x2 ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_FDIR RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_FDIR_= ID RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20 Packet is MARKED ! (excepted result) Test with dport=3D4500 .................... On tester device: $ cat port-4500.scapy=20 port =3D 4500 p =3D [] p +=3D Ether(src=3D'b8:ce:f6:83:b3:13', dst=3D'40:a6:b7:7d:43:90')/IP(dst=3D'10.100.0.2', src=3D'10.100.0.1')/UDP(d= port=3Dport, sport=3Dport) sendp(p, iface=3D"eth0", count=3D3, inter=3D0.1) $ scapy < port-4500.scapy=20 Welcome to Scapy (2.3.3.dev1) ...>>> >>> >>> >>> >>>=20 Sent 3 packets Result on dut device: testpmd> port 0/queue 3: received 1 packets src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty= pe=3D0x0800 - length=3D60 - nb_segs=3D1 - RSS hash=3D0x749278c7 - RSS queue=3D0x3 - sw = ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive= queue=3D0x3 ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20 port 0/queue 3: received 1 packets src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty= pe=3D0x0800 - length=3D60 - nb_segs=3D1 - RSS hash=3D0x749278c7 - RSS queue=3D0x3 - sw = ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive= queue=3D0x3 ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20 port 0/queue 3: received 1 packets src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty= pe=3D0x0800 - length=3D60 - nb_segs=3D1 - RSS hash=3D0x749278c7 - RSS queue=3D0x3 - sw = ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive= queue=3D0x3 ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20 packet is NOT MARKED ! (not excepted result, bug) --=20 You are receiving this mail because: You are the assignee for the bug.= --16807046330.DdeD5CF3.294876 Date: Wed, 5 Apr 2023 16:23:53 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1210
Summary ice: 'eth / ipv4 / udp dst is 4500 / mark' rte_flow not mar= king any packet
Product DPDK
Version 22.11
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter maxime.leroy@6wind.com
Target Milestone ---

Environnement
-------------

distribution for host/vm: Ubuntu 22.04.2 LTS, kernel 5.15.0-67-generic
kernel driver: 1.10.1.2.2
firmware-version: 4.20 0x8001778a 1.3346.0
COMMS DDP: 1.3.37
ICE OS Default Package version 1.3.30.0
testpmd cmdline:  ./build/app/dpdk-testpmd --log-level=3D.*ice.*,debug
--legacy-mem -c 0x1110001110 -a 0000:17:00.0 -a 0000:17:00.1  --  -i
--nb-cores=3D5 --nb-ports=3D2 --total-num-mbufs=3D16384 --rxq=3D4 --txq=3D4
dpdk version:  22.11.1
NIC: Intel Corporation Ethernet Controller E810-C for QSFP=20

Reproduction
------------


Configuration
.............

On dut device, test-pmd configuration:


testpmd> set fwd rxonly=20
Set rxonly packet forwarding mode
testpmd> set verbose 1
Change verbose level from 0 to=20
testpmd> flow create 0 ingress pattern eth  / ipv4 / udp dst is 4500 / e=
nd=20
actions mark id 4 / end
ice_fdir_cur_prof_conflict(): Profile already exists for flow type 1.
ice_fdir_rx_parsing_enable(): FDIR processing on RX set to 1
ice_flow_create(): Succeeded to create (1) flow
testpmd> flow create 0 ingress pattern eth  / ipv4 / udp dst is 42 / end=
=20
actions mark id 4 / end
ice_fdir_cur_prof_conflict(): Profile already exists for flow type 1.
ice_fdir_rx_parsing_enable(): FDIR processing on RX set to 1
ice_flow_create(): Succeeded to create (1) flow
Flow rule #1 created
testpmd> start

Test with dport=3D42
..................

On tester device:
$ cat port-42.scapy=20
port =3D 42
p =3D []
p +=3D Ether(src=3D'b8:ce:f6:83:b3:13',
dst=3D'40:a6:b7:7d:43:90')/IP(dst=3D'10.100.0.2', src=3D'10.100.0.1')/UDP(d=
port=3Dport,
sport=3Dport)
sendp(p, iface=3D"eth0", count=3D3, inter=3D0.1)


$ scapy < port-42.scapy=20
Welcome to Scapy (2.3.3.dev1)
...>>> >>> >>> >>> >>>=20
Sent 3 packets

Result on dut device:
testpmd> port 0/queue 2: received 1 packets
  src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty=
pe=3D0x0800
- length=3D60 - nb_segs=3D1 - RSS hash=3D0x63245812 - RSS queue=3D0x2 - FDI=
R matched
ID=3D0x4 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP  - sw ptype: L2_ET=
HER
L3_IPV4 L4_UDP  - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive queue=3D=
0x2
  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_FDIR
RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_FDIR_=
ID
RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20
port 0/queue 2: received 1 packets
  src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty=
pe=3D0x0800
- length=3D60 - nb_segs=3D1 - RSS hash=3D0x63245812 - RSS queue=3D0x2 - FDI=
R matched
ID=3D0x4 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP  - sw ptype: L2_ET=
HER
L3_IPV4 L4_UDP  - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive queue=3D=
0x2
  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_FDIR
RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_FDIR_=
ID
RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20
port 0/queue 2: received 1 packets
  src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty=
pe=3D0x0800
- length=3D60 - nb_segs=3D1 - RSS hash=3D0x63245812 - RSS queue=3D0x2 - FDI=
R matched
ID=3D0x4 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_UDP  - sw ptype: L2_ET=
HER
L3_IPV4 L4_UDP  - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive queue=3D=
0x2
  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_FDIR
RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_FDIR_=
ID
RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20

Packet is MARKED ! (excepted result)


Test with dport=3D4500
....................

On tester device:
$ cat port-4500.scapy=20
port =3D 4500
p =3D []
p +=3D Ether(src=3D'b8:ce:f6:83:b3:13',
dst=3D'40:a6:b7:7d:43:90')/IP(dst=3D'10.100.0.2', src=3D'10.100.0.1')/UDP(d=
port=3Dport,
sport=3Dport)
sendp(p, iface=3D"eth0", count=3D3, inter=3D0.1)


$ scapy < port-4500.scapy=20
Welcome to Scapy (2.3.3.dev1)
...>>> >>> >>> >>> >>>=20
Sent 3 packets

Result on dut device:

testpmd> port 0/queue 3: received 1 packets
  src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty=
pe=3D0x0800
- length=3D60 - nb_segs=3D1 - RSS hash=3D0x749278c7 - RSS queue=3D0x3 - sw =
ptype:
L2_ETHER L3_IPV4 L4_UDP  - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive=
 queue=3D0x3
  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD
RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20
port 0/queue 3: received 1 packets
  src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty=
pe=3D0x0800
- length=3D60 - nb_segs=3D1 - RSS hash=3D0x749278c7 - RSS queue=3D0x3 - sw =
ptype:
L2_ETHER L3_IPV4 L4_UDP  - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive=
 queue=3D0x3
  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD
RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20
port 0/queue 3: received 1 packets
  src=3DB8:CE:F6:83:B3:13 - dst=3D40:A6:B7:7D:43:90 - pool=3Dmb_pool_0 - ty=
pe=3D0x0800
- length=3D60 - nb_segs=3D1 - RSS hash=3D0x749278c7 - RSS queue=3D0x3 - sw =
ptype:
L2_ETHER L3_IPV4 L4_UDP  - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive=
 queue=3D0x3
  ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD
RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_GOOD=20

packet is NOT MARKED ! (not excepted result, bug)
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16807046330.DdeD5CF3.294876--