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 685F845795 for ; Sun, 11 Aug 2024 17:55:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9779400D7; Sun, 11 Aug 2024 17:55:33 +0200 (CEST) Received: from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80]) by mails.dpdk.org (Postfix) with ESMTP id 2DECC400D5 for ; Sun, 11 Aug 2024 17:55:32 +0200 (CEST) Received: from debian (unknown [78.109.71.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by agw.arknetworks.am (Postfix) with ESMTPSA id 354DAE0F22; Sun, 11 Aug 2024 19:55:31 +0400 (+04) DKIM-Filter: OpenDKIM Filter v2.11.0 agw.arknetworks.am 354DAE0F22 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arknetworks.am; s=default; t=1723391731; bh=H2VBaFKAEe55+mS+NiQRMuWU7Wiy7jwspoDgyD0sTRE=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=85iYEHwKM3wWQkoXSACBNMeRwu4S9hoGe5Dx5BScRcJJAdr9deVV3fIpISxec7foB P7ROb2q7xFxQee5CaE/BFz3z/ihhQLxoPjtkSATjnP18+MksL6PESWa3h+x5/D1ve2 t7lIrVWGEJ7egXoOANMLEz9B9CXCwryGWEIfOnfCp2W69ecKdg42tiVZ1vwazLDiA7 NFfWb09a0nUkcoaHs1+kMxfOAmrmq0+sIYh6+BW3fLcJaXGF/t/2Dzux3U5Q+/cCwy g0weiz6TcnqWisYYJ/hCsu3WdU3jodRSBlfQN/j1LDvwxZy48LVeT8ysNljDaHspTi J8aFse2rhvoMQ== Date: Sun, 11 Aug 2024 19:55:08 +0400 (+04) From: Ivan Malov To: Fabio Fernandes cc: "users@dpdk.org" Subject: Re: RSS for ENA In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-1371859169-1723391716=:6579" 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1371859169-1723391716=:6579 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT Hi Fabio, Have you considered to select MQ mode 'RSS' [1] via 'dev_conf.rxmode.mq_mode' during 'rte_eth_dev_configure' [2] stage? Just to double-check. Also, the 'RSS_HASH' flag could possibly mean the availability of 32-bit hash value in received mbufs rather than support for RSS distribution as a whole. [1] https://doc.dpdk.org/api-24.07/rte__ethdev_8h.html#a586b8e86131b4ec0ccaf464e847ccf3e [2] https://doc.dpdk.org/api-24.07/rte__ethdev_8h.html#a1a7d3a20b102fee222541fda50fd87bd Thank you. On Sat, 10 Aug 2024, Fabio Fernandes wrote: > Hi, > I'm a bit puzzled why DPDK is reporting RSS to be not available on my ENA port (at AWS) when I'm expecting it to be. > > My setup is: > c7a.4xlarge >     [ENA_COM: ena_com_validate_version]ENA device version: 0.10 >     [ENA_COM: ena_com_validate_version]ENA controller version: 0.0.1 implementation version 1 > 16-cores (hyper-threading disabled), > 4 ENA interfaces/network adapters, but only one (with public IP) is bound to igb_uio > DPDK 24.07 > 6.5.0-1020-aws, > Ubuntu 22.04.4 LTS, > > > The device reports that 8 queues are available, but rte_eth_dev_info::rx_offload_capa does not have RTE_ETH_RX_OFFLOAD_RSS_HASH set after calling rte_eth_dev_info_get(). > > The flag value seems to be coming from here, > https://github.com/DPDK/dpdk/blob/b3485f4293997d35b6daecc3437bb0c183a51fb3/drivers/net/ena/ena_ethdev.c#L2402 > Where the offload mask is: >     (ena_com_dev_get_features_ctx*) get_feat_ctx->offload >             tx = 3 >             rx_supported = 7 >             rx_enabled = 0 > > > Isn't RSS supposed to be available on this ENA setup? > > If not, how am I supposed to distribute inbound packets across those 8 receive queues/CPUs? > > Some notes, log: > at eth_ena_dev_init(), ena_use_large_llq_hdr() returned true > ena_get_metrics_entries(): 0x6 customer metrics are supported > ena_use_large_llq_hdr(): Recommended device entry size policy 4 > eth_ena_dev_init(): LLQ entry size 256B > eth_ena_dev_init(): Placement policy: Low latency > > > Any advice? > > Thanks, > Fabio > > > --8323328-1371859169-1723391716=:6579--