Netdev List
 help / color / mirror / Atom feed
From: Nimrod Oren <noren@nvidia.com>
To: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>,
	"David S . Miller" <davem@davemloft.net>
Cc: "Saeed Mahameed" <saeedm@nvidia.com>,
	"Tariq Toukan" <tariqt@nvidia.com>,
	"Mark Bloch" <mbloch@nvidia.com>,
	"Leon Romanovsky" <leon@kernel.org>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"Eric Dumazet" <edumazet@google.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Gal Pressman" <gal@nvidia.com>,
	"Cosmin Ratiu" <cratiu@nvidia.com>,
	"Dragos Tatulea" <dtatulea@nvidia.com>,
	"Carolina Jubran" <cjubran@nvidia.com>,
	"Björn Töpel" <bjorn@kernel.org>,
	netdev@vger.kernel.org
Subject: Re: [PATCH net-next v3] net/mlx5e: advertise tcp-data-split support
Date: Mon, 12 Oct 2026 14:35:20 +0300	[thread overview]
Message-ID: <0c4ce4ef-4133-4cf9-ad20-7a4fdc4f0b19@nvidia.com> (raw)
In-Reply-To: <20261009025137.2631215-1-dimitri.daskalakis1@gmail.com>

Thanks for working on this, a few comments below.

On 09/10/2026 5:51, Dimitri Daskalakis wrote:
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
> index 261c466a4d36..c30d751cac2f 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
> @@ -378,6 +378,9 @@ void mlx5e_ethtool_get_ringparam(struct mlx5e_priv *priv,
>  
>  	kernel_param->hds_thresh = 0;
>  	kernel_param->hds_thresh_max = 0;
> +
> +	if (priv->channels.params.packet_merge.type == MLX5E_PACKET_MERGE_SHAMPO)
> +		kernel_param->tcp_data_split = ETHTOOL_TCP_DATA_SPLIT_ENABLED;
>  }

With HW-GRO off, tcp-data-split is omitted and appears unsupported.
I think it should report disabled when HW-GRO is supported but inactive.

...

> +	if (tcp_data_split == ETHTOOL_TCP_DATA_SPLIT_DISABLED) {
> +		NL_SET_ERR_MSG_MOD(extack,
> +				   "TCP-data-split can not be disabled");
> +		return false;

I think the message should emphasize that TCP-data-split can't be
directly/explicitly disabled.

...
> +	/* Disable HW-GRO if it was only kept on for HDS. */
> +	if (dev->cfg->hds_config != kernel_param->tcp_data_split)
> +		netdev_update_features(priv->netdev);

nit: the only transition that needs this is enabled -> auto,
so maybe something like this is preferable:

  if (dev->cfg->hds_config == ETHTOOL_TCP_DATA_SPLIT_ENABLED &&
      kernel_param->tcp_data_split != ETHTOOL_TCP_DATA_SPLIT_ENABLED)

Thanks,
Nimrod


      parent reply	other threads:[~2026-10-12 11:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-09  2:51 [PATCH net-next v3] net/mlx5e: advertise tcp-data-split support Dimitri Daskalakis
2026-10-09  6:41 ` Björn Töpel
2026-10-10  2:59 ` netdev-bot+sashiko
2026-10-12 11:35 ` Nimrod Oren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0c4ce4ef-4133-4cf9-ad20-7a4fdc4f0b19@nvidia.com \
    --to=noren@nvidia.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=bjorn@kernel.org \
    --cc=cjubran@nvidia.com \
    --cc=cratiu@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=dimitri.daskalakis1@gmail.com \
    --cc=dtatulea@nvidia.com \
    --cc=edumazet@google.com \
    --cc=gal@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=mbloch@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=saeedm@nvidia.com \
    --cc=tariqt@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox