lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z6ZiADvMTAYN0tw0@LQ3V64L9R2>
Date: Fri, 7 Feb 2025 11:41:52 -0800
From: Joe Damato <jdamato@...tly.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
	pabeni@...hat.com, andrew+netdev@...n.ch, horms@...nel.org,
	Daniel Zahka <daniel.zahka@...il.com>
Subject: Re: [PATCH net-next 3/7] eth: fbnic: support an additional RSS
 context

On Thu, Feb 06, 2025 at 03:53:30PM -0800, Jakub Kicinski wrote:
> From: Daniel Zahka <daniel.zahka@...il.com>
> 
> Add support for an extra RSS context. The device has a primary
> and a secondary context.
> 
> Signed-off-by: Daniel Zahka <daniel.zahka@...il.com>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
> ---
>  .../net/ethernet/meta/fbnic/fbnic_ethtool.c   | 59 +++++++++++++++++++
>  1 file changed, 59 insertions(+)
> 
> diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c b/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
> index 20cd9f5f89e2..4d73b405c8b9 100644
> --- a/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
> +++ b/drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
> @@ -374,6 +374,61 @@ fbnic_set_rxfh(struct net_device *netdev, struct ethtool_rxfh_param *rxfh,
>  	return 0;
>  }
>  
> +static int
> +fbnic_modify_rxfh_context(struct net_device *netdev,
> +			  struct ethtool_rxfh_context *ctx,
> +			  const struct ethtool_rxfh_param *rxfh,
> +			  struct netlink_ext_ack *extack)
> +{
> +	struct fbnic_net *fbn = netdev_priv(netdev);
> +	const u32 *indir = rxfh->indir;
> +	unsigned int changes;
> +
> +	if (!indir)
> +		indir = ethtool_rxfh_context_indir(ctx);

Was slightly confused by this, but I assume that there's an
indirection table in core and its possible that modify_rxfh_context
is called without a call to create... maybe in the case of the
default RSS context or something?

At any rate after browsing the fbnic code a bit: LGTM.

Reviewed-by: Joe Damato <jdamato@...tly.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ