[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200310021512.1861626-5-kuba@kernel.org>
Date: Mon, 9 Mar 2020 19:15:01 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, akiyano@...zon.com, netanel@...zon.com,
gtzalik@...zon.com, irusskikh@...vell.com, f.fainelli@...il.com,
bcm-kernel-feedback-list@...adcom.com, rmody@...vell.com,
GR-Linux-NIC-Dev@...vell.com, aelior@...vell.com,
skalluru@...vell.com, GR-everest-linux-l2@...vell.com,
opendmb@...il.com, siva.kallam@...adcom.com, prashant@...adcom.com,
mchan@...adcom.com, dchickles@...vell.com, sburla@...vell.com,
fmanlunas@...vell.com, tariqt@...lanox.com, vishal@...lsio.com,
leedom@...lsio.com, ulli.kroll@...glemail.com,
linus.walleij@...aro.org, Jakub Kicinski <kuba@...nel.org>
Subject: [PATCH net-next 04/15] net: bnx2: reject unsupported coalescing params
Set ethtool_ops->supported_coalesce_params to let
the core reject unsupported coalescing parameters.
This driver did not previously reject unsupported parameters.
Signed-off-by: Jakub Kicinski <kuba@...nel.org>
---
drivers/net/ethernet/broadcom/bnx2.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c
index 62e44f52580d..e1c236cab2a7 100644
--- a/drivers/net/ethernet/broadcom/bnx2.c
+++ b/drivers/net/ethernet/broadcom/bnx2.c
@@ -7812,6 +7812,11 @@ static int bnx2_set_channels(struct net_device *dev,
}
static const struct ethtool_ops bnx2_ethtool_ops = {
+ .supported_coalesce_params = ETHTOOL_COALESCE_USECS |
+ ETHTOOL_COALESCE_MAX_FRAMES |
+ ETHTOOL_COALESCE_USECS_IRQ |
+ ETHTOOL_COALESCE_MAX_FRAMES_IRQ |
+ ETHTOOL_COALESCE_STATS_BLOCK_USECS,
.get_drvinfo = bnx2_get_drvinfo,
.get_regs_len = bnx2_get_regs_len,
.get_regs = bnx2_get_regs,
--
2.24.1
Powered by blists - more mailing lists