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 9D92243847 for ; Sun, 7 Jan 2024 14:38:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D80B402B1; Sun, 7 Jan 2024 14:38:23 +0100 (CET) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mails.dpdk.org (Postfix) with ESMTP id 1CC0B40263 for ; Sun, 7 Jan 2024 14:38:20 +0100 (CET) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a293f2280c7so105782666b.1 for ; Sun, 07 Jan 2024 05:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=domainhart-com.20230601.gappssmtp.com; s=20230601; t=1704634700; x=1705239500; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RHOfr6XG+od1w8g2p/WEO2DnzZRm8iaEPlzac+CLgHQ=; b=ntHnpsp8twe8I7UkU9ZzfAQpOLwpCS6nOCLiqOaNzjYd9vStGcL02rLFkI9s0n0FMD 2c9g+YVpRulcIr+Z4OKtw5fbfP4w6WNwk9NH3Qk8bfi/V16qnso9tT8JGfN8OWVVJQ14 bpCGNcQN2AVcW2XnugvoJ2GxZUsn9iy7thyD3EFMxd6a0UfqyWtrT26KUlS0VbIoDpfn DNmwBlA/hpa7kVB7Vj+e7E6W99d9Z0zGwRr9psIHUHillZloJkLtW/mCZznQV5G6NMja KQeU7TQYf/CLFERph/uovbDkGDypnP6hnyEdqVVq8fRCswEpu4UkJZjx9rfCEQOZH57t g9bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704634700; x=1705239500; h=content-transfer-encoding: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=RHOfr6XG+od1w8g2p/WEO2DnzZRm8iaEPlzac+CLgHQ=; b=OG5jpE+kl3C35PUzLAogNnQbnTyQVYKdLT6/sASqAbj+JQMQbphlVa9v+FC7dmCoyB WK4dewcxizht4ujQF2c+WhI6POj2qTJIhvUMu/PRFloCRGjCc0pgurXtH/j/kJnO1UJC sh44R/JsSPpXiUoAMpQqQiuQZUgqICexf51WPl7YpAwGLbTE+WBRAH7b99kYMgGqRiF7 YVo537MoLOdsl7PIWMJ9/aBzZqPb+0vBFLh+5MQ1JRQxwNo7RQXlH0pthHPZP+RVrtOG isHvn0l5xt2kSx5ndN2DQ8rpxKAU1biZueHIxSF89xyHJQZJrJeeBRTIhqiLQOn/c1gK zqkQ== X-Gm-Message-State: AOJu0Yz0J9Uu2RFm6eh4ReViR3lj0o7fFo5nak8yGrCXRJ2wIm/sJN0R S02+Acrlv6eg/beDkagPBS0PPJD/CwxvlNIrP10elUuQUU2WxpxCkOgFwN3d X-Google-Smtp-Source: AGHT+IGes0PcjaQKRGNcSKuybElSl4ZgYyEI7vIhFuwRJYgBt7PKA6BYvnHgUCt2RdMW8prVsTtjt2RTZPPbuVWGXww= X-Received: by 2002:a17:907:3184:b0:a28:d9e0:c290 with SMTP id xe4-20020a170907318400b00a28d9e0c290mr544869ejb.165.1704634700285; Sun, 07 Jan 2024 05:38:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Tony Hart Date: Sun, 7 Jan 2024 08:38:09 -0500 Message-ID: Subject: Re: rte_flow: total_length field match not working (MLX5)? To: Maayan Kashani Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Hi Maayan. Thanks for the reply! Yes, I'd opened a case with Nvidia and learned that I needed to use HWS (rather than SWS) and the template API. So that fixes that problem.! Unfortunately my next problem is in switching to HWS I lose the sample/mirror feature, so I'm investigating workarounds for that. regards Tony On Sun, Jan 7, 2024 at 3:36=E2=80=AFAM Maayan Kashani = wrote: > > Hi, > Sorry for the late response, > This feature is supported on template mode with template API (dv_flow_en= =3D2). > I see the documentation is not clear, we are working on updating it. > > Regards, > Maayan Kashani > > > -----Original Message----- > > From: Tony Hart > > Sent: Saturday, 28 October 2023 16:53 > > To: users@dpdk.org > > Subject: rte_flow: total_length field match not working (MLX5)? > > > > External email: Use caution opening links or attachments > > > > > > I'm trying to match on the IPv4 total-length field using the feature in= troduced > > in DPDK 23.07; however although the length option is accepted by testpm= d it > > seems that it's ignored by Connectx6. > > > > I'm sending small packets. e.g. > > > > 09:44:39.617427 IP 100.100.1.14.10000 > 1.1.1.1.80: Flags [S], seq > > 408572454:408572460, win 8192, length 6: HTTP > > > > and have the following flows set in testpmd... > > > > flow create 0 ingress pattern end actions jump group 1 / end flow creat= e 0 > > group 1 ingress pattern eth / ipv4 dst is 1.1.1.1 length spec 1400 leng= th last > > 1448 / end actions count / drop / end > > > > However the flow is matched even though the packet should fail the leng= th > > criteria. > > > > testpmd> flow list 0 > > ID Group Prio Attr Rule > > 0 0 0 i-- =3D> JUMP > > 1 1 0 i-- ETH IPV4 =3D> COUNT DROP > > > > testpmd> flow query 0 1 count > > COUNT: > > hits_set: 1 > > bytes_set: 1 > > hits: 13 > > bytes: 832 > > > > Any thoughts? > > Tony > > > > btw, I'm using OFED 5.8 and firmware version 22.35.2000 > > > > mlnx-ofa_kernel-5.8-OFED.5.8.1.1.2.1.rhel9u1.x86_64 > > kmod-mlnx-ofa_kernel-5.8-OFED.5.8.1.1.2.1.rhel9u1.x86_64 > > mlnx-ofa_kernel-devel-5.8-OFED.5.8.1.1.2.1.rhel9u1.x86_64 > > ofed-scripts-5.8-OFED.5.8.1.1.2.x86_64 > > > > hca_id: mlx5_0 > > transport: InfiniBand (0) > > fw_ver: 22.35.2000 > > node_guid: e8eb:d303:00b4:7c86 > > sys_image_guid: e8eb:d303:00b4:7c86 > > vendor_id: 0x02c9 > > vendor_part_id: 4125 > > hw_ver: 0x0 > > board_id: MT_0000000359 --=20 tony