qlcnic: refactor Tx/SDS ring calculation and validation in driver.
authorHimanshu Madhani <himanshu.madhani@qlogic.com>
Mon, 4 Nov 2013 18:31:31 +0000 (13:31 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2013 20:33:19 +0000 (15:33 -0500)
o Current driver has duplicate code for validating user input
  for changing Tx/SDS rings using set_channel ethtool interface.
  This patch removes duplicate code and refactored Tx/SDS ring
  validation for 82xx/83xx/84xx series adapter.
o Refactored code now calculates maximum Tx/Rx ring driver can
  support based on Default, NPAR and SRIOV PF/VF mode of driver.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found