[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200310021512.1861626-15-kuba@kernel.org>
Date: Mon, 9 Mar 2020 19:15:11 -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 14/15] net: cxgb4vf: 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/chelsio/cxgb4vf/cxgb4vf_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
index f4558be0ff05..9cc3541a7e1c 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
@@ -1919,6 +1919,8 @@ static void cxgb4vf_get_wol(struct net_device *dev,
NETIF_F_GRO | NETIF_F_IPV6_CSUM | NETIF_F_HIGHDMA)
static const struct ethtool_ops cxgb4vf_ethtool_ops = {
+ .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS |
+ ETHTOOL_COALESCE_RX_MAX_FRAMES,
.get_link_ksettings = cxgb4vf_get_link_ksettings,
.get_fecparam = cxgb4vf_get_fecparam,
.get_drvinfo = cxgb4vf_get_drvinfo,
--
2.24.1
Powered by blists - more mailing lists