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 8E11B439D4; Fri, 26 Jan 2024 18:33:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D63640647; Fri, 26 Jan 2024 18:33:33 +0100 (CET) Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) by mails.dpdk.org (Postfix) with ESMTP id 17D014021D for ; Fri, 26 Jan 2024 18:33:31 +0100 (CET) Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6ddc2a78869so603961b3a.3 for ; Fri, 26 Jan 2024 09:33:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706290410; x=1706895210; 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=1k5laEoRzxWBqrRDyEFl5ZSMdsBt3lRyZ9CSh7xNtCU=; b=AhYVp+33uGxFeXai/oNowmv5Jr3x8Dp6uonJZ/8fbX7OhGKaGnDEZdRBlERHPthAjG YI5AgqpOIwa60GE3u9hiRIWD3RVjqhDc/lZWykS51Ptef7xb6pgfrKNJ2zbK4PnD/7H6 AngcMGGpbQxcd5gP2Y/N7bVh+O7g5NeLTGNP5a4dDhzDAKS2o+eIFf4yGBjT+kcmstHF ojYDhGr4lmhtBsZDKE2HkeJ/A1+8ZvnDHNu4HW069PBoY050HfAznClY/xD+Ril7DqHh jnOdKEsQGDdcofT6Ji/NCfK/Gjy8I9EteQfOE6LwRBAeRh7W0S9mhUcRp0L9P8f1axbi Xpbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706290410; x=1706895210; 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=1k5laEoRzxWBqrRDyEFl5ZSMdsBt3lRyZ9CSh7xNtCU=; b=tiG5S/+ueL7GywM7iYpstWxYkihh4TZr3PctBtMWkeo34GisaVOJcaglH0O0Mu6nAv 9vbTdKDRJFIAyMw3VeCCyUd/7APtSNKz1UGF9QhRLFL82ix82/1GUKZRcyostCYUPFuC 9VYqvazWYiRj4zjSEI7XSXtMaBNLm9Cao4CJD1LJoy+HVAa9mA6ufFd8rY0mZbgJLX50 JQyJI0YF2hH2BgIDgUUb3HIo8wk3M8pFcMHquwkpzBa6zezy3eTlJhPiS8hK3eLdGpyE wjRPbedle+PLF7dYY3nOgLru/gi/YXhWE85LqPZbXlBe2uhoXTQaiY5tnI6Il7KqOUmX gUag== X-Gm-Message-State: AOJu0Yy2jCI4pKJUH0JKRkvTqPQ3GAtUnVySepmaPBWRfO8vqbBBhkPd wZVT8htJfnQ/wpcfSJ+fTxJ7odOER8dvceVfq+qEnGhIyXrBHM2NDUyWfqN3sBWCnXdhaBnKE7F mOSGkHcET3w== X-Google-Smtp-Source: AGHT+IE1ggHeh5had5OyJKfbHAN25Pyqq78tROzfNQludPxOwLsZB/+UxWZp32PT1nmD87wLtarbr2X4glJMOQ== X-Received: from joshwash.sea.corp.google.com ([2620:15c:11c:202:32b0:8478:d496:bc49]) (user=joshwash job=sendgmr) by 2002:a05:6a00:938d:b0:6de:cce:7c51 with SMTP id ka13-20020a056a00938d00b006de0cce7c51mr11031pfb.5.1706290410288; Fri, 26 Jan 2024 09:33:30 -0800 (PST) Date: Fri, 26 Jan 2024 09:33:10 -0800 In-Reply-To: <20240126173317.2779230-1-joshwash@google.com> Mime-Version: 1.0 References: <20240124001501.446195-1-joshwash@google.com> <20240126173317.2779230-1-joshwash@google.com> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <20240126173317.2779230-2-joshwash@google.com> Subject: [PATCH v4 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 This patch communicates that the GVE driver supports RSS, along with the RSS offloads supported by the driver. Signed-off-by: Joshua Washington Reviewed-by: Rushil Gupta Reviewed-by: Jeroen de Borst --- 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