]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: fix confusing dmesg info for ethtool -L option
authorLihong Yang <lihong.yang@intel.com>
Tue, 27 Sep 2016 18:28:48 +0000 (11:28 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:40:20 +0000 (19:40 -0500)
commit4303bc17e0d7aa8271ff0d5823822d629e717596
tree546adfc4a187d18df0a983a7a89a81e651d80060
parentcb967cf4500672827b874bc07d8002ee320eef17
i40e: fix confusing dmesg info for ethtool -L option

Orabug: 24568124

Ethtool -L option with the combined parameter is for changing the number of
multi-purpose channels of the specified network device. The pre-set maximum
for the combined channels is cpu dependent. Currently, for an i40e device,
when the user sets a value between 64 and the maximum that the cpu can
support for the combined parameter, the i40e driver displays the confusing
info in dmesg to only show 64 as the RSS count regardless of what the
accepted user input is as long as it is larger than 64.

This patch fixes the message in the i40e driver when the user uses
ethtool -L to change the number of the combined channels to consistently
display the user requested value if it is valid and accepted by ethtool.

Change-ID: Ia80a68bc844b779a49e0f76e7d3dcc915032d9af
Signed-off-by: Lihong Yang <lihong.yang@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 128150576f85b2745d849aba43980683a6267e50)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c