net/nfp: fix reporting of RSS capabilities
authorHeinrich Kuhn <heinrich.kuhn@netronome.com>
Mon, 10 May 2021 16:45:50 +0000 (18:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 13:31:32 +0000 (15:31 +0200)
commitb75fc6b19057a7c5385c12a3c9353f2d5e27de20
tree6780126cc1bccc130e634faaa374258d8a3adc80
parent1b48c60d05b5a6c03f225df0e0cd278ef6bae185
net/nfp: fix reporting of RSS capabilities

Before this change the dev_infos callback always reported RSS
capabilities regardless of whether the capability is supported by the
device or not. First check the capabilities field in the BAR of the
device and advertise RSS functionality accordingly.

Fixes: 8b945a7f7dcb ("drivers/net: update Rx RSS hash offload capabilities")
Cc: stable@dpdk.org
Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
drivers/net/nfp/nfp_net.c