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 113BE461AC for ; Thu, 6 Feb 2025 14:23:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8D5D4029A; Thu, 6 Feb 2025 14:23:39 +0100 (CET) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by mails.dpdk.org (Postfix) with ESMTP id 6C63540289 for ; Thu, 6 Feb 2025 14:23:38 +0100 (CET) Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5dcef821092so1024359a12.0 for ; Thu, 06 Feb 2025 05:23:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738848218; x=1739453018; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kmqkW4Ja7ZY4SeyjpZ/02qBoH59mgDW+47JziloQdEs=; b=epnchGlSzBF+jfATuRRrcKaphAfPQzTfeWLEE01BWUMxS09OrD/X6XVJb2ThhTpKde W56YTkKDtHuZQ9mUeo+wp5/BBRfcKLqL+5/xnG2AKCeLP3FQ8nFsCQj/3N54/wt0U7Dc WEmz/e/2bX8Wnk6KIpKeBc3shVe6Ke4F3hN3zo8iKgNbf9tVaL0L7qVU7A642VKU8BLO ZuGGAsHMP1idTSormQLPoAaMlO3v74DI0WXAKm7OfO/6TwCr1TWN/Ob2xf6iudzjRNaH tIwSe0pfIVEFQDqRgIGBwWDj5ng4//Q8de1IgZBweQjQLqiXw4cS6mpw+8KK6VssXWSt UHQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738848218; x=1739453018; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kmqkW4Ja7ZY4SeyjpZ/02qBoH59mgDW+47JziloQdEs=; b=bkhecSU2wW8g5oS1if1Bx4w0ymvJv+B16zB/bAO1wabr7VyRFGnAyNpJ4VFSTqyoJN 5RGqk5/v6Oi/kqqtSGoXWa2Xw9kmFPRTwz9FK2H58eQbof26YCF5c/DhL6Ohwn/FxHxL Qsq/Qiec2d4atgg8f2pZWpeYu5qDqTv0271ioSbXpqF0ShX7kg38uRnpM9579HwKs2il 2JbtG6RwUYcfVo6aXipdPVIuYiT0HgmX5bnTPBBvLwhFT00WkA2L2uOUCsRzmPaWkeCL WiJ7cy0R9cb/ICDwxbJ78VuetrSDBLzKEFWrET5c8mjFcWxvUi3zAUIV6drgwNl1kvaO j7vg== X-Gm-Message-State: AOJu0YyBwjGkwBM7okhzr3tFoENsVbUcmXTpNtCCFeCbi8eem+QJINMq 4AUcNaZTyp87Hz3gZ9M5/rk+vTjfG/JRJQzOs2VCfNDomRA8FtSWNDfF4f7AkdUCcnfnSdaDSWz bJzJehDHvcUEYQnpOzymfoPT0qeR6hnQ6 X-Gm-Gg: ASbGnctBuV6Bvh85jg3YY7qJK3Mj9c6PWidh+RdX35bO3/6OaYPZlQqwJK6JModd/Zd qWGhMVdP4PswYeYEWcLqlhyDCFxYTiSjR2dvXAsDby2Py86cSnZNAk75uweuhq+XdHU4j9RVm X-Google-Smtp-Source: AGHT+IHjbC/ougB1cFeF0JA1ZvfOQj9RmszoeP7jOruganlD1PHOt/evMYqwZq37Jdzj+AsOk+Vy+eYmWT7OvOWR1vs= X-Received: by 2002:a05:6402:448f:b0:5dc:d31a:398d with SMTP id 4fb4d7f45d1cf-5dcdb712560mr7518658a12.10.1738848217639; Thu, 06 Feb 2025 05:23:37 -0800 (PST) MIME-Version: 1.0 References: <6861b45d-a8f2-4771-83ca-c47ba4313c5f@cesnet.cz> In-Reply-To: <6861b45d-a8f2-4771-83ca-c47ba4313c5f@cesnet.cz> From: Vladimir Medvedkin Date: Thu, 6 Feb 2025 13:23:26 +0000 X-Gm-Features: AWEUYZkrybwKwFeyfMVs4WfYgOp5FUawNLAdOf4ldKaERd35xwrLdV6ld6yh9Gg Message-ID: Subject: Re: DPDK v23.11+ issue with Intel ICE driver and rte_flow 'count' and 'mark' actions To: =?UTF-8?Q?Adam_Kiripolsk=C3=BD?= Cc: users@dpdk.org, "Medvedkin, Vladimir" Content-Type: multipart/alternative; boundary="00000000000054b5f9062d792608" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --00000000000054b5f9062d792608 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Adam, Try to add "group 2", like: >flow create 0 group 2 ingress pattern eth ... =D0=BF=D1=82, 24 =D1=8F=D0=BD=D0=B2. 2025=E2=80=AF=D0=B3. =D0=B2 16:53, Ada= m Kiripolsk=C3=BD : > Hello all, > > Ita stumbled upon an issue with rte_flow 'count' and 'mark' actions on > DPDK version 23.11 and higher on Intel ice driver. > By the table at https://doc.dpdk.org/guides/nics/overview.html ice > driver should support these actions. > > Specifications: > > NIC version: E810-C, 2x100G > Firmware version: 4.7 > Kernel Driver: 1.16.3 > DDP: 1.3.39.1 > DDP Comms 1.3.46.0 > > DPDK versions that did not accept the rules: 23.11, 24.11 > > Testpmd start: sudo dpdk-testpmd -a 0000:af:00.1 > --log-level=3Dpmd.net.ice.driver:8 --file-prefix=3Dsad -l 0,1 -- --txq=3D= 4 > --rxq=3D4 -i --disable-rss > > input: > testpmd> flow create 0 ingress pattern eth / ipv4 dst is 159.58.1.0 src > is 195.168.1.0 / end actions count identifier 128 / drop / end > > output: > ice_flow_create(): Failed to create flow > port_flow_complain(): Caught PMD error type 16 (specific action): cause: > 0x7ffc0c519398, Invalid action type: Invalid argument > > input: > testpmd> flow create 0 ingress pattern eth / ipv4 dst is 159.58.1.0 src > is 195.168.1.0 / end actions mark id 2 / drop / end > > output: > ice_flow_create(): Failed to create flow > port_flow_complain(): Caught PMD error type 16 (specific action): cause: > 0x7fffc6ce9648, Invalid action type: Invalid argument > > However, on DPDK version 23.07 both rules are accepted without an issue. > > Were these features deprecated? Alternatively, is there any workaround > for counting packets matched against a rule? > > Thanks, > Adam. > > --=20 Regards, Vladimir --00000000000054b5f9062d792608 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Adam,

Try to add "gr= oup 2", like:
>flow create 0 group 2 ingress pattern eth = ...



=D0=BF=D1= =82, 24 =D1=8F=D0=BD=D0=B2. 2025=E2=80=AF=D0=B3. =D0=B2 16:53, Adam Kiripol= sk=C3=BD <Adam.Kiripolsky@c= esnet.cz>:
https://doc.dpdk.org/guides/nics/overv= iew.html ice
driver should support these actions.

Specifications:

=C2=A0=C2=A0=C2=A0=C2=A0 NIC version: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 E810-C, 2x100G
=C2=A0=C2=A0=C2=A0=C2=A0 Firmware version: =C2=A0=C2=A0=C2=A0 4.7
=C2=A0=C2=A0=C2=A0=C2=A0 Kernel Driver: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 1.16.3
=C2=A0=C2=A0=C2=A0=C2=A0 DDP: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 1.3.39.1
=C2=A0=C2=A0=C2=A0=C2=A0 DDP Comms=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 1.3.46.0

DPDK versions that did not accept the rules: 23.11, 24.11

Testpmd start: sudo dpdk-testpmd -a 0000:af:00.1
--log-level=3Dpmd.net.ice.driver:8 --file-prefix=3Dsad -l 0,1 -- --txq=3D4 =
--rxq=3D4 -i --disable-rss

input:
testpmd> flow create 0 ingress pattern eth / ipv4 dst is 159.58.1.0 src =
is 195.168.1.0 / end actions count identifier 128 / drop / end

output:
ice_flow_create(): Failed to create flow
port_flow_complain(): Caught PMD error type 16 (specific action): cause: 0x7ffc0c519398, Invalid action type: Invalid argument

input:
testpmd>=C2=A0 flow create 0 ingress pattern eth / ipv4 dst is 159.58.1.= 0 src
is 195.168.1.0 / end actions mark id 2 / drop / end

output:
ice_flow_create(): Failed to create flow
port_flow_complain(): Caught PMD error type 16 (specific action): cause: 0x7fffc6ce9648, Invalid action type: Invalid argument

However, on DPDK version 23.07 both rules are accepted without an issue.
Were these features deprecated? Alternatively, is there any workaround
for counting packets matched against a rule?

Thanks,
Adam.



--
Regards,
Vladimir
--00000000000054b5f9062d792608--