]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: use ethtool_rxfh_indir_default for default redirection table
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 17 Feb 2016 00:19:24 +0000 (16:19 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Apr 2016 19:49:50 +0000 (12:49 -0700)
commit5d4d1009763dff3529bfbeb17a0567bbf6757bf3
treec92f618cbd6dd89281a975152ad64e928b52237a
parente64b46009c5eab90eb2bb765c87f1dea90a0941c
fm10k: use ethtool_rxfh_indir_default for default redirection table

The fm10k driver used its own code for generating a default indirection
table on device load, which was not the same as the default generated by
ethtool when indir_size of 0 is passed to SRXFH. Take advantage of
ethtool_rxfh_indir_default() and simplify code to write the redirection
table to reduce some code duplication.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k.h
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
drivers/net/ethernet/intel/fm10k/fm10k_main.c