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)
commit0ea7fae44094b4ca06ea68105457a7dc64041bd3
treec92f618cbd6dd89281a975152ad64e928b52237a
parentd8ec92f2cdcc7f2d06dd0a40b600b6da7d9d1070
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