]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit202cbe29e6abaa1b6a8f5e81d3caa0868e1d3320
tree586ec495d14c16639d21ae607a1ec9224f4a7bb4
parent6108a207764d79f2a29c211e8c24b62e3fa6d683
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