Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp190575lqo; Thu, 9 May 2024 17:38:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE7sVL5d5D7JCAtNv36aIf4S9hcQ3wKdrCm/6dzVkwchbEroor08/7IfphFck+rAPi8o8vtUCrwaKCeD5HGjpw7eSt9RYmhZ+VjMm0qg== X-Google-Smtp-Source: AGHT+IEo42BqawLwp2KJQyes/LGjE5LD05u/TFeGaolewiNoIuJDRM6oMB5aBZsIt+325Q9owxRO X-Received: by 2002:a05:6a20:551c:b0:1ad:746:b15a with SMTP id adf61e73a8af0-1afde1c5775mr1268217637.47.1715301498856; Thu, 09 May 2024 17:38:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715301498; cv=pass; d=google.com; s=arc-20160816; b=p8TzZyxPslGXB5msksadfWbYQwc+bh1Mkc51+rwwvcaT6zuPeswiytmSQ6H0Nyg9Qu PR17U4qBx/dlpnbJ8gfYz4lB9lWypQwhL/vnvasSwDm3i14ZyZ6aSL6uZPvmDBp8zuvX HwABXq+cWdGFq8Tot1jD5w1uqn1Ef2nuqnzfD2SVs5LiwS0qP8+8aXaat8tSedthb0xo res91uGnIPqA5YmebX7V9aKLE904UTvk3KnZOIFj8Hrzw4IoWfBYWBrfHNNud71Y7zxm Hlp5/kpydnX05rusBU+fT5OmwVyjTHLHvOVyKyECAbBuRRXjzLx14eGqyszuwi+m0yYX zwsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=FAKOkwp1JwGuxJyPuHfQGI6AWg0YhiVqZy4MwUSsneI=; fh=ywVTTYmBZQu1TU6FEaqnKQmik5Ougq7qoFT2aRJfNRE=; b=zGHYQiKbWhgohvm20lYQS3INP+JTlZNOX2hNm+y4PCtNcTSbkydY1vtCk234FvBSgd 3gWWAT4+fDzqelXE/Ai1bUHZxntN0PGxp+tVkpyPrkdIpB9XInaNiviYMGd6mnDINatN 5ZzukMILE/ACrgsCOaRwZG5htgFwXXeQY7a98mJmzdTLkXkw6wapNPGjkWLnYJBBRXNV gUa/96dI7n3Us8MC0QgnT/LRRMHwACu0TY0VTEl3PWDIR3CWzvmDnDMSAA5TcqqP6Rkb nEDrMg7yEVob8ozg0mlTrY8YPTbWZvuUjyWzXQKcWLeQWjWXXFI5hPiciEUIc7NFh+Z4 VXzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Pj74wjJV; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-175165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0b9d1442si24986735ad.70.2024.05.09.17.38.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:38:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Pj74wjJV; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-175165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 62B842850D3 for ; Fri, 10 May 2024 00:35:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCFB8D2FF; Fri, 10 May 2024 00:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Pj74wjJV" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 294258827 for ; Fri, 10 May 2024 00:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715300281; cv=none; b=KRQ8RnsHKqbqnPlqlhXCBxYthHSke7nxOmSyy6KK8C0wyPgEokczI614wPirUyLJWMgE3cXwzKLxP2uXVpc8IHvK6rpDrwr8cJZytFfv7Vf60x60whRbEjpNIeTmNqrXBYOljD+wnAxcq8wXhe4CkxG7qYWPtDdMGabmuI2Tv3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715300281; c=relaxed/simple; bh=32zunW/937A+VI7TVLODQJmupnG7J5u7L6VNkYS8N0g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Bqyiyqh8spB5aXwAXBuUA/JWWLv/g1BbcVVTMMMyQbwoVEYSqyxvYAoH8MLZ39R2hR7nZ8KhxcnydZIcg52Hi6ICiycVoGDXCdHStmuVlQR/WW7nfhd8vW3+cWmdCc946/2Ll0kzO80C9BhHGn4CGJe3m1EC1uvX9egH9aK0P04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Pj74wjJV; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-34ef66c0178so946120f8f.1 for ; Thu, 09 May 2024 17:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715300278; x=1715905078; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FAKOkwp1JwGuxJyPuHfQGI6AWg0YhiVqZy4MwUSsneI=; b=Pj74wjJVcaOX8X2/hslmwnqJ09RdaVWp/hQA+EBrwlOM0a+FpNg2/uQKhwrrbJwxwF UflcfACHGuRP9xFO2tWzQo0OwzCyJx4AWeYxP909/xEMtmXHyHa/k0ZjDYErlByViLgn uufLANXu9K3FINFTEBj1mPNsn0Y1j+JQ34AepaDdiemdQWhro+sMegewTvHa20A8cowh oQrsovo7vdTMtaM6NjIPc9rSABDPToPu5/ZDIqltA79a2AYvj88+umaOZudCQlFqfUdy ickYDmSg6r6TJRkEwDYgjC1guxyn/upK4aWms2uyqzLXo2SeO56xpp1rPvLhLQemfKVd by/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715300278; x=1715905078; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FAKOkwp1JwGuxJyPuHfQGI6AWg0YhiVqZy4MwUSsneI=; b=l8Mh1FRaic2NDiYAPd8AZjIM5XecI1OFGYVHdPMpPrIAEOBGRT1J54QCEh9uJfuLDK SFtC9U6AUtkp5j/iaHTkZhTZZ5h11W23EyIYGcV2vOocfqdR4GHpWj2zbugCdSoqDMCN SwNnq7JyWfSjRuE7bbShuwtlTXcvAKblXk5oAUNrM4wgvZfKWZ2fmC+DwbpQBohG0tjs tuPYZURu3b1mIKCFf815iAtcZHpD1nAztEMuuavvyfNSpDAqkIBEOH9V2UGHE/tudvXC 88EuLTpIwFIpNYufDyqDO0PB6CL2AUbH+H9hI+XBdf645vo/l4VZhq763H99AfbzshT9 n+Mg== X-Forwarded-Encrypted: i=1; AJvYcCU1lJyfhx2fnwBcUp9wp9o89DdDeB08YKINulobwSAtGE6/n0Og/g400VXSP1aM2jKPpkwEEf6zeAQOHYCIK7/yNI3loicaJ0108kef X-Gm-Message-State: AOJu0YzDtqU5RMJZopwwnGC19Nau6pQ0TzaAgjqX0jHy/0WAA5ZKOixg AYNWR1nJD84WU0DDhdiY3hNkpx/m5XvWnNe6H8uM1qSO/Eljjsg/uKBtBK8QbBwO6OTZ24llXND /tBW+BPRT2lhe3c0u1IAwblResgXeYfaqpHOX X-Received: by 2002:a5d:4fd0:0:b0:34f:e19f:6186 with SMTP id ffacd0b85a97d-3504a737144mr858323f8f.31.1715300278279; Thu, 09 May 2024 17:17:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240507225945.1408516-1-ziweixiao@google.com> <20240507225945.1408516-4-ziweixiao@google.com> <64a7690e-50a1-4b3b-9b9b-5c2efa552806@davidwei.uk> In-Reply-To: <64a7690e-50a1-4b3b-9b9b-5c2efa552806@davidwei.uk> From: Ziwei Xiao Date: Thu, 9 May 2024 17:17:46 -0700 Message-ID: Subject: Re: [PATCH net-next 2/5] gve: Add adminq extended command To: David Wei Cc: netdev@vger.kernel.org, jeroendb@google.com, pkaligineedi@google.com, shailend@google.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, hramamurthy@google.com, rushilg@google.com, jfraker@google.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 7, 2024 at 10:34=E2=80=AFPM David Wei wrote: > > On 2024-05-07 15:59, Ziwei Xiao wrote: > > From: Jeroen de Borst > > > > Add a new device option to signal to the driver that the device support= s > > flow steering. This device option also carries the maximum number of > > flow steering rules that the device can store. > > Other than superficial style choices, looks good. > > > > > Signed-off-by: Jeroen de Borst > > Co-developed-by: Ziwei Xiao > > Signed-off-by: Ziwei Xiao > > Reviewed-by: Praveen Kaligineedi > > Reviewed-by: Harshitha Ramamurthy > > Reviewed-by: Willem de Bruijn > > --- > > drivers/net/ethernet/google/gve/gve.h | 2 + > > drivers/net/ethernet/google/gve/gve_adminq.c | 42 ++++++++++++++++++-- > > drivers/net/ethernet/google/gve/gve_adminq.h | 11 +++++ > > 3 files changed, 51 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/net/ethernet/google/gve/gve.h b/drivers/net/ethern= et/google/gve/gve.h > > index ca7fce17f2c0..58213c15e084 100644 > > --- a/drivers/net/ethernet/google/gve/gve.h > > +++ b/drivers/net/ethernet/google/gve/gve.h > > @@ -786,6 +786,8 @@ struct gve_priv { > > > > u16 header_buf_size; /* device configured, header-split supported= if non-zero */ > > bool header_split_enabled; /* True if the header split is enabled= by the user */ > > + > > + u32 max_flow_rules; > > nit: this struct is lovingly documented, could we continue by adding a > one liner here maybe about how it's device configured? > Will add. > > }; > > > > enum gve_service_task_flags_bit { > > diff --git a/drivers/net/ethernet/google/gve/gve_adminq.c b/drivers/net= /ethernet/google/gve/gve_adminq.c > > index 514641b3ccc7..85d0d742ad21 100644 > > --- a/drivers/net/ethernet/google/gve/gve_adminq.c > > +++ b/drivers/net/ethernet/google/gve/gve_adminq.c > > @@ -44,6 +44,7 @@ void gve_parse_device_option(struct gve_priv *priv, > > struct gve_device_option_jumbo_frames **dev_= op_jumbo_frames, > > struct gve_device_option_dqo_qpl **dev_op_dq= o_qpl, > > struct gve_device_option_buffer_sizes **dev_= op_buffer_sizes, > > + struct gve_device_option_flow_steering **dev= _op_flow_steering, > > nit: getting unwieldy here, is it time to pack into a struct? Thank you for pointing this out! We have plans to improve this device option part, but may not be able to be included in this patch.