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 C19CB439AD; Wed, 24 Jan 2024 01:15:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FF86402A6; Wed, 24 Jan 2024 01:15:06 +0100 (CET) Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) by mails.dpdk.org (Postfix) with ESMTP id 325DD40294 for ; Wed, 24 Jan 2024 01:15:05 +0100 (CET) Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-6dd847675ffso686633b3a.1 for ; Tue, 23 Jan 2024 16:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706055304; x=1706660104; darn=dpdk.org; h=cc:from:subject:message-id:references:mime-version:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=md7Brtcy8VIEvoeJsJHJJh4ozLtns+WY/3XggLXHzZk=; b=gvVjkoL8RfzQSg2PhWKPT9m14bht5wxv7uhuAbobxcpqOcBP8abx1tBMngGRE1NZVI MzdFz2Gys/1h0/c4Uo3b60OU2rjG2pg3y3ArzJvVWSJGvplkM+2R3Tb8mgukq3YXLPNA NRD3ykjwD9cRYyTEX7hBfDEo6ZKDGAM+TzdsuqVhE/grt6gjZN+lWThJB2hIumaOhOaD cKN8TN5iqyDIk2GXsgYl79fZPN1g5RN8LWW2ZGxCDzBAEjJxNU9oaqSI4MdJg9UUxfFe dpxohAYZYs+5QNzGmlAfeTgc4vILnobRApknz1GXCHlpf8bj74A6TyIIdcz0rHmuwmu1 VoKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706055304; x=1706660104; h=cc:from:subject:message-id:references:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=md7Brtcy8VIEvoeJsJHJJh4ozLtns+WY/3XggLXHzZk=; b=NGWGMqW7vrocgL7A5mvhnsvoyaHGZj36drJhmJXEvu8jwMnw5eQ0m85r4dEw3AAQBM VNSDAp6/LE+WIjqCnTrocRJVQdDdQMmSIA33AylBRoMMutA6jXwr4BFHbhBoLuvACPdY poYLyggfAMQcNUsknzPQDyP7ziCF3VJrFjUO+rACrcRMfnKWFTB1CvTUjFxilJoOcssK moPKqUH6ttF9cRP6Au7MEXPES+v5FyeNXo8V2UID3WnIvV3eOXw/x/PJAwCLAdhd91pX yp08s0+saDuAfdfcqm8GBOlsqkzbzNvYBhSeiF0ATYXfViNmhgz/cu1BgCxvkXfAVMQH oi2A== X-Gm-Message-State: AOJu0YyrAlMOQzM5kNXF5LEdxhxT74LR/SvOCm1trujbuzSrXyxpxH/E ePZ/FM5y7jXbLb+cLx9aGdNL61p0csufJQZk1fi4lpEbNlOEAHzV3KXAvVCOfibl0annuFonK6J 2VTzR796OhHJPOdm3ccBxJHt3BLImz7yJUPUQ2clz3FawGzY5Tx1+WMm9FI9+JVa1k/kPa3A9gY wVP4F7BO2MQ/m51A2F+JDHWLbsGQqArQ== X-Google-Smtp-Source: AGHT+IEC8WBJMwQq1u1BiJLtlGDsGX6W+ooH6Kp5DVdK+hfArR0iWUtoMEDNjfK+C2MO0jFFgGMMhrFpW9MHBQ== X-Received: from joshwash.sea.corp.google.com ([2620:15c:11c:202:b9a2:fa74:abc3:bc47]) (user=joshwash job=sendgmr) by 2002:a05:6a00:8802:b0:6dd:8640:d284 with SMTP id ho2-20020a056a00880200b006dd8640d284mr6041pfb.2.1706055304199; Tue, 23 Jan 2024 16:15:04 -0800 (PST) Date: Tue, 23 Jan 2024 16:14:53 -0800 In-Reply-To: <20240123175831.3219292-1-joshwash@google.com> Mime-Version: 1.0 References: <20240123175831.3219292-1-joshwash@google.com> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <20240124001501.446195-1-joshwash@google.com> Subject: [PATCH v3 0/7] net/gve: RSS Support for GVE Driver From: Joshua Washington Cc: dev@dpdk.org, Ferruh Yigit , Rushil Gupta , Joshua Washington Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch series introduces RSS support for the GVE poll-mode driver. This series includes implementations of the following eth_dev_ops: 1) rss_hash_update 2) rss_hash_conf_get 3) reta_query 4) reta_update In rss_hash_update, the GVE driver supports the following RSS hash types: * RTE_ETH_RSS_IPV4 * RTE_ETH_RSS_NONFRAG_IPV4_TCP * RTE_ETH_RSS_NONFRAG_IPV4_UDP * RTE_ETH_RSS_IPV6 * RTE_ETH_RSS_IPV6_EX * RTE_ETH_RSS_NONFRAG_IPV6_TCP * RTE_ETH_RSS_NONFRAG_IPV6_UDP * RTE_ETH_RSS_IPV6_TCP_EX * RTE_ETH_RSS_IPV6_UDP_EX The hash key is 40B, and the lookup table has 128 entries. These values are not configurable in this implementation. In general, the DPDK driver expects the RSS hash configuration to be set with a key before the redriection table is set up. When the RSS hash is configured, a default redirection table is generated based on the number of queues. When the device is re-configured, the redirection table is reset to the default value based on the queue count. An important note is that the gVNIC device expects 32 bit integers for RSS redirection table entries, while the RTE API uses 16 bit integers. However, this is unlikely to be an issue, as these values represent receive queues, and the gVNIC device does not support anywhere near 64K queues. This series also updates the corresponding feature matrix ertries and documentation as it pertains to RSS support in the GVE driver. v2: Add commmit messages for patches with it missing, and other checkpatches fixes. Note: There is a warning about complex macros being parenthesized that does not seem to be well-founded. v3: Fix build warnings that come up on certain distros. Joshua Washington (7): net/gve: fully expose RSS offload support in dev_info net/gve: RSS adminq command changes net/gve: add gve_rss library for handling RSS-related behaviors net/gve: RSS configuration update support net/gve: RSS redirection table update support net/gve: update gve.ini with RSS capabilities net/gve: update GVE documentation with RSS support doc/guides/nics/features/gve.ini | 3 + doc/guides/nics/gve.rst | 16 ++- drivers/net/gve/base/gve.h | 15 ++ drivers/net/gve/base/gve_adminq.c | 59 ++++++++ drivers/net/gve/base/gve_adminq.h | 21 +++ drivers/net/gve/gve_ethdev.c | 231 +++++++++++++++++++++++++++++- drivers/net/gve/gve_ethdev.h | 17 +++ drivers/net/gve/gve_rss.c | 206 ++++++++++++++++++++++++++ drivers/net/gve/gve_rss.h | 107 ++++++++++++++ drivers/net/gve/meson.build | 1 + 10 files changed, 667 insertions(+), 9 deletions(-) create mode 100644 drivers/net/gve/gve_rss.c create mode 100644 drivers/net/gve/gve_rss.h -- 2.43.0.429.g432eaa2c6b-goog