Commit 0059093e authored by Xiongfeng Wang's avatar Xiongfeng Wang
Browse files

hinic: ethtool: Allow userspace to set more aggregation params

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8M4TP


CVE: NA

--------------------------------

Allow userspace to set the following interrupt aggregation params by
ethtool:
  Adaptive RX:on/off
  rx/tx-usecs
  rx/tx-usecs-low/high
  rx/tx-frames
  rx/tx-frames-low/high

Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
parent bc6f27d8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2412,6 +2412,9 @@ static const struct ethtool_ops hinic_ethtool_ops = {

static const struct ethtool_ops hinicvf_ethtool_ops = {
	.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
				     ETHTOOL_COALESCE_MAX_FRAMES |
				     ETHTOOL_COALESCE_USECS_LOW_HIGH |
				     ETHTOOL_COALESCE_MAX_FRAMES_LOW_HIGH |
				     ETHTOOL_COALESCE_PKT_RATE_RX_USECS,
	.get_link_ksettings = hinic_get_link_ksettings,
	.get_drvinfo = hinic_get_drvinfo,