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 CFF52A00BE for ; Tue, 28 Apr 2020 13:58:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C1A12C58; Tue, 28 Apr 2020 13:58:04 +0200 (CEST) Received: from smtp-4.sys.kth.se (smtp-4.sys.kth.se [130.237.48.193]) by dpdk.org (Postfix) with ESMTP id 68B4C1D579 for ; Tue, 28 Apr 2020 13:58:02 +0200 (CEST) Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id 2267F6A20; Tue, 28 Apr 2020 13:58:02 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wA7_Q_R6n8Sv; Tue, 28 Apr 2020 13:58:01 +0200 (CEST) X-KTH-Auth: barbette [2a02:a03f:4070:7c00:396f:dbae:72fa:b060] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1588075081; bh=wW0h5W8YsfDMHw6zYspsPYeIdS0o6CEefT4kgEVs0Ik=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=IpTn7V3H5jvKRg2J4Noq+jbNzGH5jGIPkaTbhOKqcQeg9T9SWC+hvqZDPAcXNT8iG s1NTiVZcXM8/Fhmi7GnlH/fKix2OkdeGbM/Z2+aFO6EcwCAdRzjDDleWIeoc5IyqVz lmoyco/jZ5n61Eig1VaUmZ8CQ193TvGPb7D1jjzA= X-KTH-mail-from: barbette@kth.se Received: from [IPv6:2a02:a03f:4070:7c00:396f:dbae:72fa:b060] (unknown [IPv6:2a02:a03f:4070:7c00:396f:dbae:72fa:b060]) by smtp-4.sys.kth.se (Postfix) with ESMTPSA id B67892676; Tue, 28 Apr 2020 13:58:00 +0200 (CEST) To: Bao-Long Tran , matan@mellanox.com, shahafs@mellanox.com, viacheslavo@mellanox.com Cc: users@dpdk.org References: <5298AF9A-F06F-4258-AD0C-D481B301D84F@niometrics.com> From: Tom Barbette Message-ID: <2763bd7c-5c08-7c22-4d9f-092597a4e859@kth.se> Date: Tue, 28 Apr 2020 13:57:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <5298AF9A-F06F-4258-AD0C-D481B301D84F@niometrics.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-users] Mellanox MLX5 Symmetric RSS 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, The trick with symmetric RSS is simply to have a 2-bytes repeating key. Eg 6D5A repeated 20 times. Tom Le 28/04/2020 à 05:14, Bao-Long Tran a écrit : > Hi, > > We're testing the Mellanox NIC MT27800 Family [ConnectX-5] 1017. I wonder if the NIC support symmetric RSS and if yes how to configure it. The input traffic would be a pcap of one single eth/http/tcp flow with both directions., i.e, > (A) 1.2.3.4:40 -> 5.6.7.8:80 > (B) 5.6.7.8:80 -> 1.2.3.4:40 > > The desired effect would be to have (A) and (B) hitting the same RX queue. > > Below is what I have tried so far with testpmd. So (A) and (B) always hit different RX queues. > > testpmd -- -i -a --nb-cores=16 --forward-mode=rxonly --rxq=8 --txq=8 > > 1. flow create 0 ingress pattern eth type is 0x0800 / end actions rss / end > > 2. low create 0 ingress pattern eth type is 0x0800 / end actions rss queues 0 1 2 3 4 5 6 7 end / end > > 3. flow create 0 ingress pattern eth type is 0x0800 / end actions rss func toeplitz level 1 types ipv4 end queues 0 1 2 3 4 5 6 7 end / end > > 4. flow create 0 ingress pattern eth type is 0x0800 / end actions rss func toeplitz level 1 types ipv4 end queues 0 1 2 3 4 5 6 7 end key 2CC681D15BDBF4F7FCA28319DB1A3E946B9E38D92C9C03D1AD9944A7D9563D59063C25F3FC1FDC2A key_len 40 / end > > Thanks, > BL >