From: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
To: Nimrod Oren <noren@nvidia.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: Thu, 15 Oct 2026 16:05:49 -0700 [thread overview]
Message-ID: <a95dcfa0-2d6b-44be-9f22-9927d03af0d2@gmail.com> (raw)
In-Reply-To: <0c4ce4ef-4133-4cf9-ad20-7a4fdc4f0b19@nvidia.com>
Thanks for the review.
On 10/12/26 4:35 AM, Nimrod Oren wrote:
> 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.
>
Sashiko also pushed for this. I verified it should be ok, so I'll include
that in the next version.
> ...
>
>> + 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.
>
Any suggestions on the wording?
> ...
>> + /* 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)
It's harmless to be less restrictive here, but if you feel strongly I can
go with what you proposed.
>
> Thanks,
> Nimrod
prev parent reply other threads:[~2026-10-15 23:05 UTC|newest]
Thread overview: 6+ 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-15 22:52 ` Dimitri Daskalakis
2026-10-12 11:35 ` Nimrod Oren
2026-10-15 23:05 ` Dimitri Daskalakis [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=a95dcfa0-2d6b-44be-9f22-9927d03af0d2@gmail.com \
--to=dimitri.daskalakis1@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=bjorn@kernel.org \
--cc=cjubran@nvidia.com \
--cc=cratiu@nvidia.com \
--cc=davem@davemloft.net \
--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=noren@nvidia.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.