net/bnxt: fix logic when freeing RSS context
authorLance Richardson <lance.richardson@broadcom.com>
Wed, 10 Jul 2019 14:24:09 +0000 (10:24 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit0944e1e6801b8231eac0b1de8eac62ab85236f9f
tree1fb8cc21c0e46c3c4ebf75690c3f0f3f8ab9db4c
parent42caa11b370e17bdbba498766b0fbad0975d8fa9
net/bnxt: fix logic when freeing RSS context

The conditional used to determine whether freeing RSS
contexts for thor vs. non-thor controller was reversed.
Fix this, also reset number of active RSS contexts to
zero after release in the thor case.

Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers")

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c