Commit f3757a4d authored by Kan Liang's avatar Kan Liang Committed by David S. Miller

i40e/ethtool: support coalesce setting by queue

This patch implements set_per_queue_coalesce for i40e driver.
Signed-off-by: default avatarKan Liang <kan.liang@intel.com>
Acked-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent be280bad
...@@ -2035,6 +2035,12 @@ static int i40e_set_coalesce(struct net_device *netdev, ...@@ -2035,6 +2035,12 @@ static int i40e_set_coalesce(struct net_device *netdev,
return __i40e_set_coalesce(netdev, ec, -1); return __i40e_set_coalesce(netdev, ec, -1);
} }
static int i40e_set_per_queue_coalesce(struct net_device *netdev, u32 queue,
struct ethtool_coalesce *ec)
{
return __i40e_set_coalesce(netdev, ec, queue);
}
/** /**
* i40e_get_rss_hash_opts - Get RSS hash Input Set for each flow type * i40e_get_rss_hash_opts - Get RSS hash Input Set for each flow type
* @pf: pointer to the physical function struct * @pf: pointer to the physical function struct
...@@ -2921,6 +2927,7 @@ static const struct ethtool_ops i40e_ethtool_ops = { ...@@ -2921,6 +2927,7 @@ static const struct ethtool_ops i40e_ethtool_ops = {
.get_priv_flags = i40e_get_priv_flags, .get_priv_flags = i40e_get_priv_flags,
.set_priv_flags = i40e_set_priv_flags, .set_priv_flags = i40e_set_priv_flags,
.get_per_queue_coalesce = i40e_get_per_queue_coalesce, .get_per_queue_coalesce = i40e_get_per_queue_coalesce,
.set_per_queue_coalesce = i40e_set_per_queue_coalesce,
}; };
void i40e_set_ethtool_ops(struct net_device *netdev) void i40e_set_ethtool_ops(struct net_device *netdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment