]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sfc: don't report RX hash keys to ethtool when RSS wasn't enabled
authorEdward Cree <ecree@solarflare.com>
Wed, 4 Jan 2017 15:10:56 +0000 (15:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 19:18:19 +0000 (14:18 -0500)
commit4fdda95893de776a8efdf661bbf0e338f2f13dcb
tree401489055ed33d8fb743ab345e147a57729b9e59
parentaa9773be2ad5afe7acc186aedbf3b4857611d4ed
sfc: don't report RX hash keys to ethtool when RSS wasn't enabled

If we failed to set up RSS on EF10 (e.g. because firmware declared
 RX_RSS_LIMITED), ethtool --show-nfc $dev rx-flow-hash ... should report
 no fields, rather than confusingly reporting what fields we _would_ be
 hashing on if RSS was working.

Fixes: dcb4123cbec0 ("sfc: disable RSS when unsupported")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/siena.c