| @@ -692,12 +692,8 @@ static int __iavf_get_coalesce(struct net_device *netdev, · 691 unmodified lines |
| 692 | struct ethtool_coalesce *ec, int queue) | 692 | struct ethtool_coalesce *ec, int queue) |
| 693 | { | 693 | { |
| 694 | struct iavf_adapter *adapter = netdev_priv(netdev); | 694 | struct iavf_adapter *adapter = netdev_priv(netdev); |
| 695 | struct iavf_vsi *vsi = &adapter->vsi; | | |
| 696 | struct iavf_ring *rx_ring, *tx_ring; | 695 | struct iavf_ring *rx_ring, *tx_ring; |
| 697 | | 696 | |
| 698 | ec->tx_max_coalesced_frames = vsi->work_limit; | | |
| 699 | ec->rx_max_coalesced_frames = vsi->work_limit; | | |
| 700 | | | |
| 701 | /* Rx and Tx usecs per queue value. If user doesn't specify the | 697 | /* Rx and Tx usecs per queue value. If user doesn't specify the |
| 702 | * queue, return queue 0's value to represent. | 698 | * queue, return queue 0's value to represent. |
| 703 | */ | 699 | */ |
| @@ -825,12 +821,8 @@ static int __iavf_set_coalesce(struct net_device *netdev, · 121 unmodified lines |
| 825 | struct ethtool_coalesce *ec, int queue) | 821 | struct ethtool_coalesce *ec, int queue) |
| 826 | { | 822 | { |
| 827 | struct iavf_adapter *adapter = netdev_priv(netdev); | 823 | struct iavf_adapter *adapter = netdev_priv(netdev); |
| 828 | struct iavf_vsi *vsi = &adapter->vsi; | | |
| 829 | int i; | 824 | int i; |
| 830 | | 825 | |
| 831 | if (ec->tx_max_coalesced_frames_irq || ec->rx_max_coalesced_frames_irq) | | |
| 832 | vsi->work_limit = ec->tx_max_coalesced_frames_irq; | | |
| 833 | | | |
| 834 | if (ec->rx_coalesce_usecs == 0) { | 826 | if (ec->rx_coalesce_usecs == 0) { |
| 835 | if (ec->use_adaptive_rx_coalesce) | 827 | if (ec->use_adaptive_rx_coalesce) |
| 836 | netif_info(adapter, drv, netdev, "rx-usecs=0, need to disable adaptive-rx for a complete disable\n"); | 828 | netif_info(adapter, drv, netdev, "rx-usecs=0, need to disable adaptive-rx for a complete disable\n"); |
| @@ -1969,8 +1961,6 @@ static int iavf_set_rxfh(struct net_device *netdev, const u32 *indir, · 1132 unmodified lines |
| 1969 | | 1961 | |
| 1970 | static const struct ethtool_ops iavf_ethtool_ops = { | 1962 | static const struct ethtool_ops iavf_ethtool_ops = { |
| 1971 | .supported_coalesce_params = ETHTOOL_COALESCE_USECS | | 1963 | .supported_coalesce_params = ETHTOOL_COALESCE_USECS | |
| 1972 | ETHTOOL_COALESCE_MAX_FRAMES | | | |
| 1973 | ETHTOOL_COALESCE_MAX_FRAMES_IRQ | | | |
| 1974 | ETHTOOL_COALESCE_USE_ADAPTIVE, | 1964 | ETHTOOL_COALESCE_USE_ADAPTIVE, |
| 1975 | .get_drvinfo = iavf_get_drvinfo, | 1965 | .get_drvinfo = iavf_get_drvinfo, |
| 1976 | .get_link = ethtool_op_get_link, | 1966 | .get_link = ethtool_op_get_link, |