qlcnic: Fix TSS/RSS ring validation logic.
authorHimanshu Madhani <himanshu.madhani@qlogic.com>
Mon, 16 Dec 2013 20:36:58 +0000 (15:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2013 21:24:50 +0000 (16:24 -0500)
commitf9566265d7b44fea789072dcfa9a454e7e433af6
treedad3b78e251ba491fb1b63f7a897780789f0233d
parent3bf517df0d99f1cf5d369c73ab68e0afe6a3c2f9
qlcnic: Fix TSS/RSS ring validation logic.

o TSS/RSS ring validation does not take into account that either
  of these ring values can be 0. This patch fixes this validation
  and would fail set_channel operation if any of these ring value
  is 0. This regression was added as part of commit id
  34e8c406fda5b5a9d2e126a92bab84cd28e3b5fa ("qlcnic: refactor Tx/SDS
  ring calculation and validation in driver.")

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c