qlcnic: Optimize ring count validations
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Wed, 11 Jun 2014 18:09:12 +0000 (14:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:44:29 +0000 (15:44 -0700)
commit18e0d625336a7690dcb358e2f4157becfa65183b
tree7d8eca8c18346706dbe7217b68dc9a3dd1afe17e
parent4da005cf1e30897520106114a8ce11a5aa558497
qlcnic: Optimize ring count validations

- Check interrupt mode at the start of qlcnic_set_channels().
- Do not validate ring count if they are not going to change.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c