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 ED2D843A26; Wed, 31 Jan 2024 23:14:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D73842D96; Wed, 31 Jan 2024 23:14:05 +0100 (CET) Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) by mails.dpdk.org (Postfix) with ESMTP id 23E2E402E9 for ; Wed, 31 Jan 2024 23:14:03 +0100 (CET) Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-5dbddee3694so156003a12.1 for ; Wed, 31 Jan 2024 14:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706739242; x=1707344042; 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=Yseu+uhr/oDtSKC1ZYWR+wLoUFQCCx5GCfflh36xo2TfizkF2fL53WRUSmClxnwEVO 9eQ4u1GnOiXb7ABwVvSSZWfUqx7OSjisgaTL7lbCB4dUlruKow/xjrOgxTvp34wJusuk GFiO1Fz4lClmDUFdPcU68I5qOqIHtspIKmKPY9w6u+SMQn/V8K9n2MjnoJoyYt0ZcRje 0nlI5gqqlk8l6DV0V+2aPlAhbCL6uax4JSOvYbxOmsxgCG0+LgoZit9scFLmwndUfCDS VamLHAmH8I/dOeytzZFUzJIPESO0C5udJY4m6QLhdmpToN8FvhS7SibB8BrN2JHj96S8 I0aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706739242; x=1707344042; 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=ObSk12kDE/kGfKd20Ap53L4KP0nKHoKXXqEKd+aaEjjB92keZeVo247yujOE3DnUtE WG54exoX1J7+mX+QZSkAX5MKYYHZHTbMrVSyvvJLAz1gzvxtAxsYuK1Ynyb8LXbJ7i1e inRKzZsi+tesT4s7JuURIsj56c3Csdm/RMOHxHUJ0hUVtTJyqWLqj0Wz1PUTt5VmMnWk 1RUp1zdfaHYKIOckYnEq241qa2fQnOBmr4PknEoKCmoacJb0Jpfqnjhr1mD+eHQ9Hn0P LyUCoxHzDUcIo3riLQX19P6TZTDPvG/H7E3mAAP0ItwJheciCwHCAflizE8k06vdZTiq j5lA== X-Gm-Message-State: AOJu0Yy/j8RBQwR1zmc4nNYlnCYsW2FMh7VmkV8/UV/LKZGiT4KJdBMb HuND0l7IjNQ44uEDtrI6fncJn/xcKcRTdsbwooSDdZCChYcFhueEguhrBU3CNhhKH7FGxiwpiF1 63+ROZjgaFg== X-Google-Smtp-Source: AGHT+IHmjJvTQC9wh6ouh0qLU+HPrshLxp+jPL/Z4e1W/wXTlKBJZ5RqeaRVxMKbToKh7B9+Lh58VScNdd7zNg== X-Received: from joshwash.sea.corp.google.com ([2620:15c:11c:202:9a96:68e3:c6ee:7117]) (user=joshwash job=sendgmr) by 2002:a63:2485:0:b0:5ce:2aa:8988 with SMTP id k127-20020a632485000000b005ce02aa8988mr186137pgk.4.1706739242029; Wed, 31 Jan 2024 14:14:02 -0800 (PST) Date: Wed, 31 Jan 2024 14:13:04 -0800 In-Reply-To: <20240131221308.2208815-1-joshwash@google.com> Mime-Version: 1.0 References: <20240126173317.2779230-2-joshwash@google.com> <20240131221308.2208815-1-joshwash@google.com> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <20240131221308.2208815-2-joshwash@google.com> Subject: [PATCH v5 1/5] net/gve: 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