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 33124A0A0E; Wed, 3 Feb 2021 14:14:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6E7B2405B1; Wed, 3 Feb 2021 14:14:58 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 0FD4F2405A8 for ; Wed, 3 Feb 2021 14:14:57 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id D1F6FA0A0F; Wed, 3 Feb 2021 14:14:57 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 03 Feb 2021 13:14:57 +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: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: frederic.coiffier@6cure.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: 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 MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 634] i40e: rte_flow doesn't allow RSS action on IPV4 only 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D634 Bug ID: 634 Summary: i40e: rte_flow doesn't allow RSS action on IPV4 only Product: DPDK Version: 20.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: frederic.coiffier@6cure.com Target Milestone: --- Hi, If I use IPV4+TCP, it works fine : ``` memset(pattern, 0, sizeof(pattern)); memset(action, 0, sizeof(action)); memset(&attr, 0, sizeof(struct rte_flow_attr)); attr.ingress =3D 1; action_rss =3D (struct rte_flow_action_rss){ .types =3D ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_L3_SRC_ONLY, .key_len =3D RSS_HASH_KEY_LENGTH, .queue_num =3D 0, .key =3D default_rss_hash_key, }; pattern[0].type =3D RTE_FLOW_ITEM_TYPE_ETH; pattern[1].type =3D RTE_FLOW_ITEM_TYPE_IPV4; pattern[2].type =3D RTE_FLOW_ITEM_TYPE_TCP; pattern[3].type =3D RTE_FLOW_ITEM_TYPE_END; action[0].type =3D RTE_FLOW_ACTION_TYPE_RSS; action[0].conf =3D &action_rss; action[1].type =3D RTE_FLOW_ACTION_TYPE_END; res =3D rte_flow_validate(port_id, &attr, pattern, action, error); if (res) { LOG_WARNING("rte_flow_validate() fails: %d %s", res, error->message); return NULL; } flow =3D rte_flow_create(port_id, &attr, pattern, action, error); if (!flow) { LOG_WARNING("rte_flow_create() fails: %d %s", res, error->message); return NULL; } LOG_DEBUG("rte_flow_create() success"); ``` But as my purpose is to compute on IPv4 source for all IPv4 packets, I would like : ``` memset(pattern, 0, sizeof(pattern)); memset(action, 0, sizeof(action)); memset(&attr, 0, sizeof(struct rte_flow_attr)); attr.ingress =3D 1; action_rss =3D (struct rte_flow_action_rss){ .types =3D ETH_RSS_IP | ETH_RSS_L3_SRC_ONLY, .key_len =3D RSS_HASH_KEY_LENGTH, .queue_num =3D 0, .key =3D default_rss_hash_key, }; pattern[0].type =3D RTE_FLOW_ITEM_TYPE_ETH; pattern[1].type =3D RTE_FLOW_ITEM_TYPE_IPV4; pattern[2].type =3D RTE_FLOW_ITEM_TYPE_END; action[0].type =3D RTE_FLOW_ACTION_TYPE_RSS; action[0].conf =3D &action_rss; action[1].type =3D RTE_FLOW_ACTION_TYPE_END; res =3D rte_flow_validate(port_id, &attr, pattern, action, error); if (res) { LOG_WARNING("rte_flow_validate() fails: %d %s", res, error->message); /// TODO exit(-1); /// TODO return NULL; } flow =3D rte_flow_create(port_id, &attr, pattern, action, error); if (!flow) { LOG_WARNING("rte_flow_create() fails: %d %s", res, error->message); } LOG_DEBUG("rte_flow_create() success\n"); ``` But in this case, I get "multi pctype is not supported" error. And this is = true as I need `ETH_RSS_IPV4`, `ETH_RSS_FRAG_IPV4` and `ETH_RSS_NONFRAG_IPV4_OTH= ER`. So, is this a limitation of the current i40e driver ? Is there a different = way to treat all IPv4 packets ? (and later, to treat IPv6 packets in the same w= ay) Regards, Fr=C3=A9d=C3=A9ric --=20 You are receiving this mail because: You are the assignee for the bug.=