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 DBC96A0C41 for ; Thu, 30 Sep 2021 14:28:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C5FE40DDA; Thu, 30 Sep 2021 14:28:09 +0200 (CEST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mails.dpdk.org (Postfix) with ESMTP id A30A04067E for ; Thu, 30 Sep 2021 14:28:07 +0200 (CEST) Received: by mail-wr1-f53.google.com with SMTP id x20so9748381wrg.10 for ; Thu, 30 Sep 2021 05:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=d9Rg5naoCgpbSb3VMaHRrlZBIgKsaGgdbkHh5nFnSN0=; b=SEifVbKQbH02E2vmGHnOou3gjSNIAhxJuJeOLXuBoVdXOe/p3lKVFnHgfmKn8aolY5 G5F9M7Cr+XzyjLH6K5g+uqwQEXtNRIhmrDJNkyh89cu1MUUYhPyASTTg1eCF17MQpFNz KhyuKVo88U2OmX9OyRjxMZGDNkvJCj+bbYOuCbEf5c3rOdVEkXwQETw0/+eDkmQLte2+ uHwku3FVK2agk9Z2S6jM8gNscE77jJVtkJrp4bo93+HG+uBqwo8LtT7L51lVA/Bjkshg OC3KWdfRL945tvgjTCgCiprX2Z9i2swPyV6ozjuuPrWFTnZdMaWkz9zCVBhMWHBesh9N Mqig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=d9Rg5naoCgpbSb3VMaHRrlZBIgKsaGgdbkHh5nFnSN0=; b=AaCoARCCvZ4jACUTdf+LoDko6vV4UJfLQspJefMgAzGhtq0TH1ayRHCLNKXHg20pZr 7VefEoKeqyz6IwMK90plHMMWGK3PNQnbGZBoirPLrcgyiISw8FtTEwCgj7zKN/2F7D2F phrcrosG2WSQF8y3xsKXPMKfwwb5pRuV1uXviojqpEBIBXu9UREE1he9t0j5mOVeZJCZ w/FWpB7g5vsTpc3n3ej24l5sTOQpWXxN/4mQXBRLnGhXhKwcBoow3aWmQXMz+7XYsAAT DOeYvUhCXbUe8TPxdz3PddCxhm9D/qsbFsZFBtcZs47HAJwi7KOdGWSiB0vTVBzkj3Iv wYCQ== X-Gm-Message-State: AOAM530FFyPa+ede9wRaJGzWCG72zYNWkVtdz8qLfJter5fKF1002dv7 mgUwgtdGECdiPuuuwabkpVOElg8Y591JnPmA1yoXvkUtrjc= X-Google-Smtp-Source: ABdhPJz+tuWL7ffxrTsB7EZidyjGXeLhlboX3l+DVbywfxC7dkxLzi8Me3aT/ka+mmuog8CyZFzayeSAYuQm8IE/WpM= X-Received: by 2002:adf:cc82:: with SMTP id p2mr6043885wrj.5.1633004886975; Thu, 30 Sep 2021 05:28:06 -0700 (PDT) MIME-Version: 1.0 From: Pavel Vazharov Date: Thu, 30 Sep 2021 15:27:56 +0300 Message-ID: Subject: How to use rte_flow to distribute ARP packets between the Rx queues of 82599ES NIC To: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 there, The DPDK setup for our application includes two 82599ES 10-Gigabit cards setup in bonding mode BONDING_MODE_8023AD. I'm trying to setup rte_flows logic which distributes the IPv4 and ARP packets between the Rx queues based on their destination. I'm able to setup the flows for the IPv4 packets using RTE_FLOW_ITEM_TYPE_IPV4 and RTE_FLOW_ACTION_TYPE_QUEUE. The rte_flow_validate result is 0 and the rte_flow_create returns non null pointer. However, when I try to do the same for the ARP packets using the following actions const rte_flow_action_queue queue = {.index = rx_q}; const rte_flow_action action[] = { { .type = RTE_FLOW_ACTION_TYPE_QUEUE, .conf = &queue, }, { .type = RTE_FLOW_ACTION_TYPE_END, .conf = nullptr, }, }; I get an error from rte_flow_validate. The error code is EINVAL. The error message is "Not supported action." and the rte_flow_error.cause pointer points to the first element of my action array above. Just for the test I tried to change the action to RTE_FLOW_ACTION_TYPE_DROP and setting the conf to NULL but I got exactly the same error. The error is returned for rx_q = 0 and the bond port has been setup with 8 Rx and 8 Tx queues. Am I doing something wrong or the device doesn't support rte_flow actions for ARP packets? Thanks, Pavel.