From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by dpdk.org (Postfix) with ESMTP id 765DA1B4C8 for ; Tue, 23 Oct 2018 14:58:59 +0200 (CEST) Received: by mail-pg1-f180.google.com with SMTP id s3-v6so598417pga.12 for ; Tue, 23 Oct 2018 05:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=y5KvPkkM5XPOlQNENaTkhioVa5inljGi87Z7/G+g7Rs=; b=ozRg1+i0gxkPCI97JaueZrXz3RzLNh+gcoGElVKFYbrprxqbBMF7h38JJZQst8zkIS 5nwE0ZxVJBHjlJqaaXYgLJHVjIi06l++F+9ogfDOEtUy9EjYJbKxTEtVfPD1sWLHGfAJ 0HLkww2iVmERegbyfjzyVehAk8ueyqVMNq0P5Rs9ec+UTZSFvQA9KAkoyKUcHhXNmYAx lpFhG8LVlaQMa4QzquaLbE4nOntFnOF1h1f9RjM/SadT/DHhL3C43Okyrr8wwrRZi2Xw uxX6jXRxMHKm3Fg0UQMwcfDyPbOGae/p/CEeqOZD6vqlIX7CFOHPcaPsb58dTnjOM/yd q8lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=y5KvPkkM5XPOlQNENaTkhioVa5inljGi87Z7/G+g7Rs=; b=uiNCHq4qv7Bt5WN3ATNGPyLoWru23R2F4i0swNKrklsem5W58mO6zes+iBsMLPXr8T YHncwgo5Ger7vAyJIIkTcl3Is/N+fWbxhQlyp1CQg7LYnffHEZ2qaoakfqg+WEUbc/A9 vSbv6MTzlBnQDjUmyQk2KH0duTUYil31DjsrFrXjqzOJViEPxoUq9s8ic55QZED5LbZc UPtUkZtvNtk3ek1ls6XtTAOTUGi4R1XPrOPfMjm5k9FZw3mpklLNhbmoM+ZuZ1c2hhyJ Y1aGhrW2gAVMaqI4OpNoxtn0UjciCLSgnN8BSL3tjvUdvkAPZVr7rjhJlyk+rxlt5vaD nIAA== X-Gm-Message-State: ABuFfoj9QqdR+LGlH0xVwZNniSw5kRMtHQwkh2uIEvHJ9s+ijSlrBlAL 4F7AWz3Uvhs6OUWDFZuY/fE= X-Google-Smtp-Source: ACcGV60h9t/t5evpZ9nANbhQEqiycFMbgEcs0uh7xC76nwt5wZtOdb6RRLLteOi7fNUGzdIOP6uCOQ== X-Received: by 2002:a63:5224:: with SMTP id g36-v6mr47405750pgb.253.1540299538582; Tue, 23 Oct 2018 05:58:58 -0700 (PDT) Received: from ?IPv6:2001:da8:200:9002:7dfb:caa1:72c9:d507? ([2001:da8:200:9002:7dfb:caa1:72c9:d507]) by smtp.gmail.com with ESMTPSA id f3-v6sm1563429pgq.34.2018.10.23.05.58.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 05:58:57 -0700 (PDT) From: zhilong zheng Message-Id: Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3445.1.7\)) Date: Tue, 23 Oct 2018 20:58:53 +0800 In-Reply-To: Cc: Xiao Kong , "users@dpdk.org" To: "Wu, Xiaoban" References: <5bca8bec.1c69fb81.81f91.2e08@mx.google.com> X-Mailer: Apple Mail (2.3445.1.7) Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] RSS problems with Intel XL710 NIC (i40e) 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: , X-List-Received-Date: Tue, 23 Oct 2018 12:58:59 -0000 Hi Xiaoban, Thank you for your sharing link, which definitely works.=20 =20 Actually, this RSS problem does not occur in my ENV setting = (DPDK-18.02), which seems appearing in @Kong =A1=AFs setting = (DPDK-17.08). (:, I have not checked whether it is the problem of DPDK = version. Best Regards, Zhilong > =D4=DA 2018=C4=EA10=D4=C223=C8=D5=A3=AC20:41=A3=ACWu, Xiaoban = =D0=B4=B5=C0=A3=BA >=20 > Hi Zhilong, >=20 > I encountered the same problem before, and I found a solution at = https://stackoverflow.com/questions/42342723/how-to-set-up-rss-hash-fuctio= n-in-xl710-to-receive-ipv4-flow-type# = >=20 > You basically need to find the corresponding C function of each CLI = command, and directly call them with some modifications. >=20 > Best wishes, > Xiaoban >=20 > From: users on behalf of zhilong zheng = > Sent: Tuesday, October 23, 2018 1:50:30 AM > To: Xiao Kong > Cc: users@dpdk.org > Subject: Re: [dpdk-users] RSS problems with Intel XL710 NIC (i40e) > =20 > Hi Kong, >=20 > What command that you use to run testpmd? It seems that your RSS is = not enabled/configured. >=20 > Regards, > Zhilong >=20 > > =D4=DA 2018=C4=EA10=D4=C220=C8=D5=A3=AC09:59=A3=ACXiao Kong = =D0=B4=B5=C0=A3=BA > >=20 > > Dear all, > > We are currently trying to build a multi-RX-queue dpdk program, = using RSS to split the incoming traffic evenly into RX queues on a = single port. It works fine when we use an Intel 82599ES 10Gig NIC. = However when we switch to the Intel XL710 40Gig NIC (i40e), RSS does not = seem to work. As a result, TCP packets belonging to various flows (with = different src&dst IPs, ports) are all sent into the same RX queue. Below = is our code. > > static const struct rte_eth_conf port_conf_default =3D { > > .rxmode =3D { > > .max_rx_pkt_len =3D ETHER_MAX_LEN, //1518 > > .mq_mode =3D ETH_MQ_RX_RSS, > > }, > > .rx_adv_conf =3D { > > .rss_conf =3D { > > .rss_key =3D NULL, > > .rss_hf =3D ETH_RSS_IP | ETH_RSS_UDP | ETH_RSS_TCP | = ETH_RSS_SCTP, > > } > > }, > > }; > > We noticed that it is mentioned on several pages that XL710 = sometimes behaves quite differently from other NICs, but we just can't = find a way to configurate RSS hash fields on our card. Another thing is = when we tried to enable RSS or setup hash fields in testpmd, it showed = error messages as follows. > > testpmd> port config all rss all=20 > > Configuration of RSS hash at ethernet port 0 failed with error (22): = Invalid argument. > > Configuration of RSS hash at ethernet port 1 failed with error (22): = Invalid argument. > > testpmd> show port 1 rss-hash ipv4 > > RSS disabled > > I am wondering if there is any mistake we made or if there is a = unique method for XL710 to configure RSS hash fields. > > By the way, we are using DPDK ver. 17.08. > > Thanks. =20 > > -------------------------- > > Best Regards, > > Kong > >=20