qlcnic: refactor Tx/SDS ring calculation and validation in driver.
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>
Showing
- drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 41 additions, 25 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic.h
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 34 additions, 35 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h 5 additions, 8 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 31 additions, 7 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 11 additions, 9 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 79 additions, 37 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h 7 additions, 1 deletiondrivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 1 addition, 1 deletiondrivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 25 additions, 21 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 163 additions, 164 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 5 additions, 1 deletiondrivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 2 additions, 2 deletionsdrivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c
Loading
Please register or sign in to comment