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 5F62B43228 for ; Sat, 28 Oct 2023 15:52:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4DAC40272; Sat, 28 Oct 2023 15:52:44 +0200 (CEST) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mails.dpdk.org (Postfix) with ESMTP id 6B65240144 for ; Sat, 28 Oct 2023 15:52:43 +0200 (CEST) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-9c53e8b7cf4so451690366b.1 for ; Sat, 28 Oct 2023 06:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=domainhart-com.20230601.gappssmtp.com; s=20230601; t=1698501162; x=1699105962; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+k/vxIgSwYp70XkjGTC9TheXpPTfoCotl4VDTchIW3A=; b=ajwqFDF4lumWWB9H8kSFT9PnFFFe8rnhkHGuP4oelAgmU3ectb081L2ooncVJjC1hk 0baQ2/zM6J/lI6toJwYdvSLQ6FSIKuJUEB1BM1e8CDVnaIZemvlL+F2cKgDce6D0zV6z Y8osyuz2wWjVNADraGV/N1IlBA37t26VQ1EEbxlp/we14CU5J/2d94YqUUEmXifmJ9Q7 hJ/WaAGEH0IHBUpBpsStYSglglp6uHJZdum26PzrHrQD2eVm6LrKw2zKveoBD5p+RoBb HR6R8XbxS5PX8xn/ns3hAA0+mpDaPz/I9RvarUG9pb9145SVGWUJVgyBrHVe5gHHdjuF N6Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698501162; x=1699105962; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+k/vxIgSwYp70XkjGTC9TheXpPTfoCotl4VDTchIW3A=; b=mlYr+/2d0vObsogU2/JatPSdhwoUxVSVm2UjISYrEWEOasNBsIyPZQ+LW2opPhkk58 eY4IQJmcjscY2n+RlWmSjlMR+aeXn55MPbhPbn0tvtjNhVWigBa47mEbJ8hQfQ+u8IPF WlaBPLxPmNlzmcYoKCzXIhLuQif2I2xrl9BhMRnT8hPojtSDwLY/HYZsvoOAcsIjK8IO SG+PJe05y9hgiQsWODZpVGai9sVLP8SucsripZOuge1bTNttUlQSeR1nnnevuqdD/zz0 nmCaTn/iUkMHus+KzjGckyP66q6MMNoIBccaKtoapW3wDqZQcx0yiQGgdNxoySCczP/Q d25g== X-Gm-Message-State: AOJu0YyIa69CeKo74gM82XhNpv6HSGEbOmzuYGP52wkQM7YwBEKJ8aYR FlZMCEQk9QzbFCG8A6tcnHzc4yCOWNqmUyULYWbk8cR7Dp8HutLmgX4= X-Google-Smtp-Source: AGHT+IGLCvtpJ36sJSD7fr2E8ErUda5Fny/HnZA/yf2WkI0yXn5hhYh1hZXiy9asXL5/B593QWHtZrPXPQlIu8hS8NM= X-Received: by 2002:a17:907:724c:b0:9bf:1142:4361 with SMTP id ds12-20020a170907724c00b009bf11424361mr4264990ejc.10.1698501162478; Sat, 28 Oct 2023 06:52:42 -0700 (PDT) MIME-Version: 1.0 From: Tony Hart Date: Sat, 28 Oct 2023 09:52:31 -0400 Message-ID: Subject: rte_flow: total_length field match not working (MLX5)? To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 I'm trying to match on the IPv4 total-length field using the feature introduced in DPDK 23.07; however although the length option is accepted by testpmd 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 create 0 group 1 ingress pattern eth / ipv4 dst is 1.1.1.1 length spec 1400 length last 1448 / end actions count / drop / end However the flow is matched even though the packet should fail the length criteria. testpmd> flow list 0 ID Group Prio Attr Rule 0 0 0 i-- => JUMP 1 1 0 i-- ETH IPV4 => 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