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 3FD5D4399F; Tue, 23 Jan 2024 01:17:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFE0340A6B; Tue, 23 Jan 2024 01:17:18 +0100 (CET) Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) by mails.dpdk.org (Postfix) with ESMTP id AA7C4402D8 for ; Tue, 23 Jan 2024 01:17:16 +0100 (CET) Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-5ce10b4cea9so2663243a12.1 for ; Mon, 22 Jan 2024 16:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1705969036; x=1706573836; darn=dpdk.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=TBHd1SDCXK/uj9k3SZI4JIIW3s3E8UhmhqHGAw7QICc=; b=fDHcTl7/NWzNAZBHPR8BHYOHYwTw0lGLP1QEQQNBhfdg4p9z1w4PLWODf81+zHuWzG +Opaw0f2QPb3Nh78X1uBus4ArgaknM3ZxCuFaeGN7lF5sU4RTKCiy5zZiYIY5DW2Y8Mg oC9duI+FW2i9L9js7vs8BIAWHAxp9W1PIQ1ETkn1oUK2p3zY+qqor2MEkZ/OmW8ZWshq xpe7/OyToNunaE2Oaq6IaQjn+Gm2Jga+/HUgEMMayP8HssMobPlFU1DbTRadRa5ThRDn NlvVHca0iYIZPWDY1v8JIBSQn2w3bnOfdOygDMJ+pAjGQ3yFxEHs8x9fFxpd9TWLUA8G ADgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705969036; x=1706573836; h=cc:to: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=TBHd1SDCXK/uj9k3SZI4JIIW3s3E8UhmhqHGAw7QICc=; b=ssPPIruZFWEVxt+NuRzMiz98DyvOI+ANvYEkeaQdSZN3aNnmFU1fmf59PrmBYxVUy3 MLUt/6S8VwM3ofGYXJf4SzAAb61SipT5uDmNPjDihBlcUPCUsA6bEp2o9yTZG98Ij6jl WP5VDDtt6yXrAVvYPnWUspRWHXLMV/3qWm24ipxFLE1YMOoM1JQtY+P6EOTAeJD/GYtw e157Ej+fEWfDX265+fYrSg9F562KEWaaWuhB/+n6rNi9Cfq4G/qa2RD4BA07qojpu+xo PQgGE23W6EwnbxOUpzhq4Smka6TJ8Et4EmQ/PVdY5sox/4gkW/7RXxG/Fkx4cZQ0a3kg R5IQ== X-Gm-Message-State: AOJu0Yy4DqmVv8s44JZL9Qvd2UOsoxRaj/3WM8ghy+lIIDtlUHiTEbDb 2AExXTAgLXvvNRAbIlEaBysBsTTiF/mDlY7EdMv1FNfkoS3IuWhIVRFk1CY8CSZK03RloemCjL4 BVVuNsEeMFw== X-Google-Smtp-Source: AGHT+IHCG4xMsvudbN8JvXn9gaChtFZ82or1+iUmLqiubK8d1oImddj+XZX1cJSYgf8YIzqGzOf6k5/8BnlV9Q== X-Received: from joshwash.sea.corp.google.com ([2620:15c:11c:202:9096:2b97:b7f7:1182]) (user=joshwash job=sendgmr) by 2002:a63:1463:0:b0:5ce:b38:a6e1 with SMTP id 35-20020a631463000000b005ce0b38a6e1mr48571pgu.0.1705969035714; Mon, 22 Jan 2024 16:17:15 -0800 (PST) Date: Mon, 22 Jan 2024 16:16:38 -0800 In-Reply-To: <20240123001645.1507779-1-joshwash@google.com> Mime-Version: 1.0 References: <20240123001645.1507779-1-joshwash@google.com> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <20240123001645.1507779-2-joshwash@google.com> Subject: [PATCH 1/7] net/gve: fully expose RSS offload support in dev_info From: Joshua Washington To: Junfeng Guo , Jeroen de Borst , Rushil Gupta , Joshua Washington Cc: dev@dpdk.org, Ferruh Yigit 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 --- drivers/net/gve/gve_ethdev.c | 4 +++- drivers/net/gve/gve_ethdev.h | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c index d162fd3864..6acdb4e13b 100644 --- a/drivers/net/gve/gve_ethdev.c +++ b/drivers/net/gve/gve_ethdev.c @@ -405,7 +405,7 @@ gve_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->max_mtu = priv->max_mtu; dev_info->min_mtu = RTE_ETHER_MIN_MTU; - dev_info->rx_offload_capa = 0; + dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_RSS_HASH; dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_MULTI_SEGS | RTE_ETH_TX_OFFLOAD_UDP_CKSUM | @@ -442,6 +442,8 @@ gve_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) .nb_align = 1, }; + dev_info->flow_type_rss_offloads = GVE_RSS_OFFLOAD_ALL; + return 0; } diff --git a/drivers/net/gve/gve_ethdev.h b/drivers/net/gve/gve_ethdev.h index 9893fcfee6..14c72ec91a 100644 --- a/drivers/net/gve/gve_ethdev.h +++ b/drivers/net/gve/gve_ethdev.h @@ -33,6 +33,14 @@ RTE_MBUF_F_TX_L4_MASK | \ RTE_MBUF_F_TX_TCP_SEG) +#define GVE_RSS_OFFLOAD_ALL ( \ + RTE_ETH_RSS_IPV4 | \ + RTE_ETH_RSS_NONFRAG_IPV4_TCP | \ + RTE_ETH_RSS_IPV6 | \ + RTE_ETH_RSS_IPV6_EX | \ + RTE_ETH_RSS_NONFRAG_IPV6_TCP | \ + RTE_ETH_RSS_IPV6_TCP_EX) + /* A list of pages registered with the device during setup and used by a queue * as buffers */ -- 2.43.0.429.g432eaa2c6b-goog