From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DAFD3A2F6B for ; Wed, 9 Oct 2019 03:56:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D6191C023; Wed, 9 Oct 2019 03:56:46 +0200 (CEST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id D0F471C022 for ; Wed, 9 Oct 2019 03:56:42 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id w12so565885wro.5 for ; Tue, 08 Oct 2019 18:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Cf5xXqNKDGUY3dooHgXxRDJGziuLzV6HuCJWRN7y93Q=; b=rTyfq5hGuZb4wouB9Rh6xwR4rUPDN5pEY0HOjavptu5K12xcZ4nZCT4Gc1FPN4NP41 z8zZ8MLLl+SeCdDjW4gapQYiBTUS0ALomFrOM7qFuURy4BpMk6IrBwWldKlRZ90U9Axw G/9+UEDt+omHESCQuupvKHi/XXr8DGwPdBXACrJ42eQMRsLeL5WMBmviObYjjBLS1EXO 0qIx4cueWR7nAJRwi9AgD8KYOFxVPxavtRyzdHM9or4eDq72SEYpmsFdDn5370S86bPX GfM7HeV29da/U4b95zkFPTGmdkzCTfToYKxZpthZIp/k7jg/pkEtP4sgdeMvwnGtYjUq 3IAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Cf5xXqNKDGUY3dooHgXxRDJGziuLzV6HuCJWRN7y93Q=; b=kyQO0DVeElo0BRf/J71ANB7XreEz4g0jESHmJGh9KkDVOj8ltJ70uEijh87p5+hWzj 2vIg6E/2gnvVhmWiRMJr4mkEFM1o+aLkfWj7yJlkHRKNdvZMQ/e6AyDlGhkUs/jLCxY6 3mTgVbyqBr0bghoVjiYwcMf/Wc2FV3QzU+O4zosMbcdwYD5Pb/LMRb9hO9dYzWC7b2jE +lCx7oDGQcZ4Qu9Hoo3yk8u65qf2GUuodQ7p+cKCwkvtOGa9qXGbi5AknUeS1ZQIreQ3 LtHdtCZaQOUNpelmiT9WLVtAd09YS7yI4MzTLacGg8FkhsaklxwKEktNmE+PmOOOWtxP vefg== X-Gm-Message-State: APjAAAWVwY57IVqO/zarFxKTfHsOZvDeRK1Ntp7tG0sF15GKv+qk4Pdy kSCdLGo9hCirWg7S3ZJLp5JEAzeYSqVEV2LXo/RGlCHSuHA= X-Google-Smtp-Source: APXvYqxoOHH6ZYZAeDZg88iICbKcBvyuAvCwXs3IyweJnEqOrWTa3pd3NSm4LTPknUcHk5//s11GC2GeulME1MMjGx4= X-Received: by 2002:adf:92a5:: with SMTP id 34mr606355wrn.337.1570586202405; Tue, 08 Oct 2019 18:56:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jun Gan Date: Tue, 8 Oct 2019 18:56:31 -0700 Message-ID: To: Asaf Penso Cc: "users@dpdk.org" , Technical Support Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Same 5 tuple UDP packets have been delivered to different queues. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi Asaf, Thank you so much for your help! I tend to think there is something missing in my code, do you have any code example how to enable RSS? I did following setup: eth_conf.rxmode.mq_mode = ETH_MQ_RX_RSS; eth_conf.rx_adv_conf.rss_conf.rss_hf = ETH_RSS_IP | ETH_RSS_UDP eth_conf..rx_adv_conf.rss_conf.rss_hf &= dev_info.flow_type_rss_offloads; I also tried to add a flow rule, and I found mlx5 doesn't support "rte_eth_dev_rss_hash_conf_get"? Here is the action, all the UDP packets applied this action: struct rte_flow_action_rss action_rss = { .types = ETH_RSS_IP | ETH_RSS_UDP, .key_len = 40, .queue_num = 4, .key = rss_key, .queue = queue, }; And I use spdk reactor to launch multiple threads polling different queue. Thanks, Jun Gan On Tue, Oct 8, 2019 at 4:52 AM Asaf Penso wrote: > Hello Jun Gan, > > Thanks for reaching out and posting this query. > I'm adding here our support team for further assistance. > > Regards, > Asaf Penso > > > -----Original Message----- > > From: users On Behalf Of Jun Gan > > Sent: Monday, October 7, 2019 6:13 AM > > To: users@dpdk.org > > Subject: [dpdk-users] Same 5 tuple UDP packets have been delivered to > > different queues. > > > > Hi All, > > > > I just added multiple queues and enabled RSS in our application, I set > > "rss_hf" to "ETH_RSS_IP | ETH_RSS_UDP", but I can see that same 5 tuple > > packets, will be delivered to different queues. Do I miss something? > > > > Here is the code: > > > > eth_conf.rxmode.mq_mode = ETH_MQ_RX_RSS; > > eth_conf.rx_adv_conf.rss_conf.rss_hf = ETH_RSS_IP | ETH_RSS_UDP > > eth_conf..rx_adv_conf.rss_conf.rss_hf &= > > dev_info.flow_type_rss_offloads; > > > > > > I actually have two queues, and two different threads(lcore) busy > > polling(rx_burst) on these two queues, I also met other weird issues > like: > > > > dpdk-stable-18.11.2/drivers/net/mlx5/mlx5_rxtx_vec_sse.h:743: > > rxq_burst_v: > > Assertion `rxq->rq_pi == rxq->cq_ci' failed. > > > > I don't understand what does this means, I think rx_burst on the same nic > > different queue should be thread-safe, isn't it? > > > > I'm using dpdk 18.11.2, OS is centos 7.6 and NIC is MLX CX-5. > > > > I really appreciate it if anyone can help!! > > > > Thanks, > > Jun Gan > > > > > > -- > > Jun Gan > -- Jun Gan