i40e: return the number of enabled queues for ETHTOOL_GRXRINGS
authorHelin Zhang <helin.zhang@intel.com>
Wed, 21 Oct 2015 23:47:13 +0000 (19:47 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 25 Nov 2015 18:05:58 +0000 (10:05 -0800)
commit3e3aa21fe9265bdc45ff795dbcc90bcdd2f1017c
tree586ec495d14c16639d21ae607a1ec9224f4a7bb4
parent1418c3458118c6969d08e23aa377da7e2a7be36c
i40e: return the number of enabled queues for ETHTOOL_GRXRINGS

This patch fixes a problem where using ethtool rxnfc command could
let RX flow hash be set on disabled queues. This patch fixes the
problem by returning the number of enabled queues before setting
rxnfc.

Change-ID: Idbac86b0b47ddacc8deee7cd257e41de01cbe5c0
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c