]> www.infradead.org Git - users/jedix/linux-maple.git/commit
enic: allow adaptive coalesce setting for msi/legacy intr
authorSujith Sankar <ssujith@cisco.com>
Tue, 13 Oct 2015 09:44:45 +0000 (15:14 +0530)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 19 Oct 2015 20:39:01 +0000 (13:39 -0700)
commited9a9169cf6aad20257dd1aa2733b2e30fbbf415
tree212471a90a092f10805b1f4639af434f4ace650d
parent019d2122ea2cfd8220da516cc7d15732456f84c5
enic: allow adaptive coalesce setting for msi/legacy intr

* Allow setting of adaptive coalescing setting for all types of interrupt.

* In msi & legacy intr, we use single interrupt for rx & tx. In this case
  tx_coalesce_usecs is invalid. We should use only rx_coalesce_usecs.
  Do not display tx_coal values for msi/intx. And do not allow user to set
  this as well.

* Driver supports only tx/rx_coalesce_usec and adaptive coalesce settings.
  For other values, driver does not return error. So ethtool succeeds for
  unsupported values. Introduce enic_coalesce_valid() function to validate
  the coalescing values.

* If user requests for coalesce value greater than what adaptor supports,
  driver uses the max value. We should at least log this.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_ethtool.c