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 4B71AA04FD for ; Fri, 4 Nov 2022 10:27:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D80142D17; Fri, 4 Nov 2022 10:27:25 +0100 (CET) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by mails.dpdk.org (Postfix) with ESMTP id 9C00140693 for ; Wed, 2 Nov 2022 01:25:36 +0100 (CET) Received: by mail-ed1-f49.google.com with SMTP id a67so24101782edf.12 for ; Tue, 01 Nov 2022 17:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=N0VCGFl8NxMyKt9mceL4tA7sVZXmadVvNdLLLo51kek=; b=T/2rm9n07A7ZYO3En9Roxp273qdkrVfiiCv3bgV+xOea8W69p+RUM0FpjnQ5pK1zLf zrX0kBRD4ywghh5HWok8eJ3ZuEmE0nJqitwqYBySLy9zWex6j8/IbsCGmGev3kagz3Mg XVbbtxZuHy8I4hPwdwduIL92DVdwfoEF0eDKlvKn3FY6ht/gragqfSk218gqRwbdLUaJ c/0MoadURlPoRnWpme9eoSB+FreYgc5Y2IlGu+XnafbSLv22F6sMiQxH3fxB/WVNHg1g W5Vw7lV2CwVG5GlGZ3OosCFGSPksOa63AL6KwCecdfnt8ILRbEMF6TBAIAjJylGZQDDU RgFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=N0VCGFl8NxMyKt9mceL4tA7sVZXmadVvNdLLLo51kek=; b=z0p/l9/ByeKXKdDBrp6MmpO8oWyhsZe+cxyffdl4tNiee3UfyyK8O0YbjA2j7Syv98 Bk9CgoxGh0l8HYvEXDyyewsp8M0y1AKU42MlYfLtNV++f61UIk31odORWilifPULRE/7 D7UO7TAj+O2Gv5c5ItWjkKVC13+Cd00jGlpzwykaPj/QWGCttZeNctPp90fmt2OKX1P3 YpmMc1pnoB7tY05NWkchtxu6RDnruep6bNeJXuCL6hjRMPaIg5/lL+Zbd41PTYwVO5F8 wM2c6xWZfR+y0cPr8jLMJP0skQXl6QDIsvfabp/F2AxRrHB4m9v1JVflmlvenCIg0mqm x9wg== X-Gm-Message-State: ACrzQf2bPdHt71ldsuRj3XWdrMLcf+1E3dNDoKuhCIZATTy/eCvUhokx 08t/mJiHQWeeMWAlNUDRt1moEs67AlM7yuQXjx91D5Zco1s= X-Google-Smtp-Source: AMsMyM5gmjJ6MYsAIX9H7ouKqXbE4pckXGj3SzyD2WFPcW1yZ0r4i9E1YK/f5SXv9OOyl0PEWkQHxMh/28hXQFRudB4= X-Received: by 2002:aa7:ce92:0:b0:461:78c7:dfe2 with SMTP id y18-20020aa7ce92000000b0046178c7dfe2mr22327094edv.342.1667348735957; Tue, 01 Nov 2022 17:25:35 -0700 (PDT) MIME-Version: 1.0 From: Yang Luan Date: Tue, 1 Nov 2022 17:25:24 -0700 Message-ID: Subject: Wrong rx queue assignment running DPDK on Azure To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000001fa0af05ec71e147" X-Mailman-Approved-At: Fri, 04 Nov 2022 10:27:24 +0100 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 --0000000000001fa0af05ec71e147 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Our application uses the net_netvsc driver in DPDK 21.08 on Azure. We found an issue where RSS doesn=E2=80=99t deliver packets to the correct rx queue.= The instance type we use is Standard_L80s_v3 with MT27800 Family [ConnectX-5 Virtual Function] NICs. The NIC is configured with 40 rx queues and the RETA table is configured (confirmed by rte_eth_dev_rss_reta_query()) as below. 0: 0 1 2 3 4 5 6 7 8: 8 9 10 11 12 13 14 15 16: 16 17 18 19 20 21 22 23 24: 24 25 26 27 28 29 30 31 32: 32 33 34 35 36 37 38 39 40: 0 1 2 3 4 5 6 7 48: 8 9 10 11 12 13 14 15 56: 16 17 18 19 20 21 22 23 64: 24 25 26 27 28 29 30 31 72: 32 33 34 35 36 37 38 39 80: 0 1 2 3 4 5 6 7 88: 8 9 10 11 12 13 14 15 96: 16 17 18 19 20 21 22 23 104: 24 25 26 27 28 29 30 31 112: 32 33 34 35 36 37 38 39 120: 0 1 2 3 4 5 6 7 One example is a packet received with rss key 0xEDE25D84 was incorrectly delivered to rx queue 12. We expect it to be queue 4 as 0xEDE25D84 & 0x7F = =3D 4 assuming seven of the least significant bits (LSBs) are used for indexing into the RETA table. Is it a bug or we made a wrong assumption on how the RETA table is accessed with that device? Thank you. Yang --0000000000001fa0af05ec71e147 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,=C2=A0


Our applica= tion uses the net_netvsc driver in DPDK 21.08 on Azure. We found an issue w= here RSS doesn=E2=80=99t deliver packets to the correct=C2=A0rx= =C2=A0queue.=C2=A0The instance type we use is S= tandard_L80s_v3 with=C2=A0MT27800 Family [ConnectX-5 Virtual Fu= nction] NICs.=C2=A0The NIC is configured with 40=C2=A0rx= =C2=A0queues and the RET= A table is configured (confirmed by=C2=A0rte_eth_dev_rss_reta_query()) as below.

=C2=A0

=C2=A0=C2= =A00:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A00=C2=A0=C2=A0=C2=A0=C2=A01=C2=A0=C2=A0=C2=A0=C2=A02=C2=A0=C2=A0=C2=A0=C2=A03=C2=A0=C2=A0=C2=A0=C2=A04=C2=A0=C2=A0=C2=A0=C2=A05=C2=A0=C2=A0=C2=A0=C2=A06=C2=A0=C2=A0=C2=A0=C2=A07=C2=A0=C2=A0=C2=A0

=C2=A0= =C2=A08:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A08=C2=A0=C2=A0=C2=A0=C2=A09=C2=A0=C2=A0=C2=A010=C2=A0=C2=A0=C2=A011=C2=A0=C2=A0=C2=A012=C2=A0=C2=A0=C2= =A013=C2=A0=C2=A0=C2=A0<= /span>14=C2=A0=C2=A0=C2=A015=C2=A0=C2=A0

=C2=A016:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A016=C2=A0=C2=A0=C2=A017=C2=A0=C2=A0=C2=A018=C2=A0=C2=A0=C2=A019=C2=A0=C2=A0=C2=A020=C2=A0=C2=A0=C2=A021=C2=A0=C2=A0=C2=A022=C2=A0=C2=A0=C2=A023

24:=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0= 24=C2=A0=C2=A0=C2=A025= =C2=A0=C2=A0=C2=A026=C2= =A0=C2=A0=C2=A027=C2=A0= =C2=A0=C2=A028=C2=A0=C2= =A0=C2=A029=C2=A0=C2=A0<= span class=3D"gmail-Apple-converted-space">=C2=A030=C2=A0=C2=A0=C2=A031

32:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A032=C2=A0=C2=A0=C2=A033=C2=A0=C2=A0=C2=A034=C2=A0=C2=A0=C2=A035=C2=A0=C2=A0=C2=A036=C2=A0=C2=A0=C2= =A037=C2=A0=C2=A0=C2=A0<= /span>38=C2=A0=C2=A0=C2=A039

40:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A00=C2=A0=C2= =A0=C2=A0=C2=A01=C2=A0= =C2=A0=C2=A0=C2=A02=C2= =A0=C2=A0=C2=A0=C2=A03= =C2=A0=C2=A0=C2=A0=C2=A0= 4=C2=A0=C2=A0=C2=A0=C2=A05=C2=A0=C2=A0=C2=A0=C2=A06=C2=A0=C2=A0=C2=A0=C2=A07

48:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A08=C2=A0=C2= =A0=C2=A0=C2=A09=C2=A0= =C2=A0=C2=A010=C2=A0=C2= =A0=C2=A011=C2=A0=C2=A0<= span class=3D"gmail-Apple-converted-space">=C2=A012=C2=A0=C2=A0=C2=A013=C2=A0=C2=A0=C2=A014=C2=A0=C2=A0=C2=A015

56:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A016=C2=A0=C2=A0=C2=A017=C2=A0=C2=A0=C2=A018=C2=A0=C2=A0= =C2=A019=C2=A0=C2=A0=C2= =A020=C2=A0=C2=A0=C2=A0<= /span>21=C2=A0=C2=A0=C2=A022=C2=A0=C2=A0=C2=A023=

64:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A024=C2=A0=C2=A0=C2=A025=C2=A0=C2=A0=C2=A026=C2=A0=C2=A0=C2=A027=C2=A0=C2=A0=C2=A028=C2=A0=C2=A0=C2=A029=C2=A0=C2=A0=C2=A030=C2=A0=C2=A0=C2=A031

72:=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A032=C2=A0=C2=A0=C2=A03= 3=C2=A0=C2=A0=C2=A034=C2= =A0=C2=A0=C2=A035=C2=A0= =C2=A0=C2=A036=C2=A0=C2= =A0=C2=A037=C2=A0=C2=A0<= span class=3D"gmail-Apple-converted-space">=C2=A038=C2=A0=C2=A0=C2=A039

80:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A00=C2=A0=C2=A0=C2=A0=C2=A01=C2=A0=C2=A0=C2=A0=C2=A02=C2=A0=C2=A0=C2=A0=C2=A03=C2=A0=C2=A0=C2=A0=C2=A04=C2=A0=C2=A0=C2=A0=C2=A05=C2=A0=C2=A0=C2=A0=C2=A06=C2=A0=C2=A0=C2=A0=C2=A07

88:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A08=C2=A0=C2=A0=C2=A0=C2=A09=C2=A0=C2=A0=C2=A010=C2=A0=C2=A0=C2=A011=C2=A0=C2=A0=C2=A012=C2=A0=C2=A0=C2= =A013=C2=A0=C2=A0=C2=A0<= /span>14=C2=A0=C2=A0=C2=A015

96:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A016=C2=A0=C2=A0=C2=A017=C2=A0=C2=A0=C2=A018=C2=A0=C2=A0=C2=A019=C2=A0=C2=A0=C2=A020=C2=A0=C2=A0=C2=A021=C2=A0=C2=A0=C2=A022=C2=A0=C2=A0=C2=A023

104:=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0<= /span>24=C2=A0=C2=A0=C2=A025=C2=A0=C2=A0=C2=A026= =C2=A0=C2=A0=C2=A027=C2= =A0=C2=A0=C2=A028=C2=A0= =C2=A0=C2=A029=C2=A0=C2= =A0=C2=A030=C2=A0=C2=A0<= span class=3D"gmail-Apple-converted-space">=C2=A031

112:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A032=C2=A0=C2=A0=C2=A033=C2=A0=C2=A0=C2=A034=C2=A0=C2=A0=C2=A035=C2=A0=C2=A0=C2=A036=C2=A0=C2=A0=C2=A037=C2=A0=C2=A0= =C2=A038=C2=A0=C2=A0=C2= =A039

120:=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A00= =C2=A0=C2=A0=C2=A0=C2=A0= 1=C2=A0=C2=A0=C2=A0=C2=A02=C2=A0=C2=A0=C2=A0=C2=A03=C2=A0=C2=A0=C2=A0=C2=A04=C2=A0=C2=A0=C2=A0=C2=A05=C2=A0=C2=A0=C2=A0=C2=A06=C2=A0=C2=A0=C2=A0=C2=A0<= /span>7

=C2=A0

One example is a packet received with=C2=A0rss=C2=A0key 0xEDE25D84 was incorr= ectly delivered to=C2=A0= rx=C2=A0queue 12. We expect it to be queue 4 as 0xEDE25D84 &= ; 0x7F =3D 4 assuming seven of the least significant bits (LSBs) are used f= or indexing into the RETA table.=C2=A0=C2=A0Is it a bug or we made a wrong assumption on how the RE= TA table is accessed with that device?

<= br>

Thank you.

Yang

--0000000000001fa0af05ec71e147--