From: Subbaraya Sundeep <sbhatta@marvell.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>,
<edumazet@google.com>, <pabeni@redhat.com>,
<andrew+netdev@lunn.ch>, <horms@kernel.org>, <shayagr@amazon.com>,
<akiyano@amazon.com>, <darinzon@amazon.com>,
<skalluru@marvell.com>, <manishc@marvell.com>,
<michael.chan@broadcom.com>, <pavan.chebbi@broadcom.com>,
<sgoutham@marvell.com>, <gakula@marvell.com>,
<hkelam@marvell.com>, <bbhushan2@marvell.com>
Subject: Re: [PATCH net-next 1/5] eth: bnx2x: migrate to new RXFH callbacks
Date: Tue, 17 Jun 2025 06:40:03 +0000 [thread overview]
Message-ID: <aFENwzdHRYbjW2WX@9fd6dd105bf2> (raw)
In-Reply-To: <20250617014555.434790-2-kuba@kernel.org>
On 2025-06-17 at 01:45:51, Jakub Kicinski (kuba@kernel.org) wrote:
> Migrate to new callbacks added by commit 9bb00786fc61 ("net: ethtool:
> add dedicated callbacks for getting and setting rxfh fields").
>
> The driver as no other RXNFC functionality so the SET callback can
typo as -> has
Thanks,
Sundeep
> be now removed.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> .../ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 33 ++++++++-----------
> 1 file changed, 13 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
> index 44199855ebfb..528ce9ca4f54 100644
> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
> @@ -3318,8 +3318,11 @@ static int bnx2x_set_phys_id(struct net_device *dev,
> return 0;
> }
>
> -static int bnx2x_get_rss_flags(struct bnx2x *bp, struct ethtool_rxnfc *info)
> +static int bnx2x_get_rxfh_fields(struct net_device *dev,
> + struct ethtool_rxfh_fields *info)
> {
> + struct bnx2x *bp = netdev_priv(dev);
> +
> switch (info->flow_type) {
> case TCP_V4_FLOW:
> case TCP_V6_FLOW:
> @@ -3361,20 +3364,21 @@ static int bnx2x_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
> case ETHTOOL_GRXRINGS:
> info->data = BNX2X_NUM_ETH_QUEUES(bp);
> return 0;
> - case ETHTOOL_GRXFH:
> - return bnx2x_get_rss_flags(bp, info);
> default:
> DP(BNX2X_MSG_ETHTOOL, "Command parameters not supported\n");
> return -EOPNOTSUPP;
> }
> }
>
> -static int bnx2x_set_rss_flags(struct bnx2x *bp, struct ethtool_rxnfc *info)
> +static int bnx2x_set_rxfh_fields(struct net_device *dev,
> + const struct ethtool_rxfh_fields *info,
> + struct netlink_ext_ack *extack)
> {
> + struct bnx2x *bp = netdev_priv(dev);
> int udp_rss_requested;
>
> DP(BNX2X_MSG_ETHTOOL,
> - "Set rss flags command parameters: flow type = %d, data = %llu\n",
> + "Set rss flags command parameters: flow type = %d, data = %u\n",
> info->flow_type, info->data);
>
> switch (info->flow_type) {
> @@ -3460,19 +3464,6 @@ static int bnx2x_set_rss_flags(struct bnx2x *bp, struct ethtool_rxnfc *info)
> }
> }
>
> -static int bnx2x_set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info)
> -{
> - struct bnx2x *bp = netdev_priv(dev);
> -
> - switch (info->cmd) {
> - case ETHTOOL_SRXFH:
> - return bnx2x_set_rss_flags(bp, info);
> - default:
> - DP(BNX2X_MSG_ETHTOOL, "Command parameters not supported\n");
> - return -EOPNOTSUPP;
> - }
> -}
> -
> static u32 bnx2x_get_rxfh_indir_size(struct net_device *dev)
> {
> return T_ETH_INDIRECTION_TABLE_SIZE;
> @@ -3684,10 +3675,11 @@ static const struct ethtool_ops bnx2x_ethtool_ops = {
> .set_phys_id = bnx2x_set_phys_id,
> .get_ethtool_stats = bnx2x_get_ethtool_stats,
> .get_rxnfc = bnx2x_get_rxnfc,
> - .set_rxnfc = bnx2x_set_rxnfc,
> .get_rxfh_indir_size = bnx2x_get_rxfh_indir_size,
> .get_rxfh = bnx2x_get_rxfh,
> .set_rxfh = bnx2x_set_rxfh,
> + .get_rxfh_fields = bnx2x_get_rxfh_fields,
> + .set_rxfh_fields = bnx2x_set_rxfh_fields,
> .get_channels = bnx2x_get_channels,
> .set_channels = bnx2x_set_channels,
> .get_module_info = bnx2x_get_module_info,
> @@ -3711,10 +3703,11 @@ static const struct ethtool_ops bnx2x_vf_ethtool_ops = {
> .get_strings = bnx2x_get_strings,
> .get_ethtool_stats = bnx2x_get_ethtool_stats,
> .get_rxnfc = bnx2x_get_rxnfc,
> - .set_rxnfc = bnx2x_set_rxnfc,
> .get_rxfh_indir_size = bnx2x_get_rxfh_indir_size,
> .get_rxfh = bnx2x_get_rxfh,
> .set_rxfh = bnx2x_set_rxfh,
> + .get_rxfh_fields = bnx2x_get_rxfh_fields,
> + .set_rxfh_fields = bnx2x_set_rxfh_fields,
> .get_channels = bnx2x_get_channels,
> .set_channels = bnx2x_set_channels,
> .get_link_ksettings = bnx2x_get_vf_link_ksettings,
> --
> 2.49.0
>
next prev parent reply other threads:[~2025-06-17 6:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 1:45 [PATCH net-next 0/5] eth: migrate some drivers to new RXFH callbacks Jakub Kicinski
2025-06-17 1:45 ` [PATCH net-next 1/5] eth: bnx2x: migrate " Jakub Kicinski
2025-06-17 6:40 ` Subbaraya Sundeep [this message]
2025-06-17 22:14 ` Jakub Kicinski
2025-06-18 10:03 ` Subbaraya Sundeep
2025-06-17 1:45 ` [PATCH net-next 2/5] eth: bnxt: " Jakub Kicinski
2025-06-17 21:39 ` Michael Chan
2025-06-17 1:45 ` [PATCH net-next 3/5] eth: ena: " Jakub Kicinski
2025-06-17 6:50 ` Subbaraya Sundeep
2025-06-17 7:35 ` Arinzon, David
2025-06-17 1:45 ` [PATCH net-next 4/5] eth: thunder: " Jakub Kicinski
2025-06-17 6:43 ` Subbaraya Sundeep
2025-06-17 1:45 ` [PATCH net-next 5/5] eth: otx2: " Jakub Kicinski
2025-06-18 20:30 ` [PATCH net-next 0/5] eth: migrate some drivers " patchwork-bot+netdevbpf
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=aFENwzdHRYbjW2WX@9fd6dd105bf2 \
--to=sbhatta@marvell.com \
--cc=akiyano@amazon.com \
--cc=andrew+netdev@lunn.ch \
--cc=bbhushan2@marvell.com \
--cc=darinzon@amazon.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=hkelam@marvell.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=manishc@marvell.com \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavan.chebbi@broadcom.com \
--cc=sgoutham@marvell.com \
--cc=shayagr@amazon.com \
--cc=skalluru@marvell.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