summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/wangxun/ngbe
diff options
context:
space:
mode:
authorJiawen Wu <jiawenwu@trustnetic.com>2024-01-03 03:08:52 +0100
committerDavid S. Miller <davem@davemloft.net>2024-01-04 11:49:35 +0100
commit4ac2d9dff4b01fb210f951dcb67badcc2a1aa427 (patch)
tree861ddd1f47b41dfff400703b212e364ddff97a68 /drivers/net/ethernet/wangxun/ngbe
parentnet: wangxun: add ethtool_ops for ring parameters (diff)
downloadlinux-4ac2d9dff4b01fb210f951dcb67badcc2a1aa427.tar.xz
linux-4ac2d9dff4b01fb210f951dcb67badcc2a1aa427.zip
net: wangxun: add coalesce options support
Support to show RX/TX coalesce with ethtool -c and set RX/TX coalesce with ethtool -C. Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/wangxun/ngbe')
-rw-r--r--drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c b/drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c
index 52d4167dcabe..81cb1c23fa84 100644
--- a/drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c
+++ b/drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c
@@ -93,6 +93,8 @@ static int ngbe_set_ringparam(struct net_device *netdev,
}
static const struct ethtool_ops ngbe_ethtool_ops = {
+ .supported_coalesce_params = ETHTOOL_COALESCE_USECS |
+ ETHTOOL_COALESCE_TX_MAX_FRAMES_IRQ,
.get_drvinfo = wx_get_drvinfo,
.get_link = ethtool_op_get_link,
.get_link_ksettings = wx_get_link_ksettings,
@@ -109,6 +111,8 @@ static const struct ethtool_ops ngbe_ethtool_ops = {
.set_pauseparam = wx_set_pauseparam,
.get_ringparam = wx_get_ringparam,
.set_ringparam = ngbe_set_ringparam,
+ .get_coalesce = wx_get_coalesce,
+ .set_coalesce = wx_set_coalesce,
};
void ngbe_set_ethtool_ops(struct net_device *netdev)