net/sfc: fix reported promiscuous/multicast mode
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 4 Mar 2020 15:01:04 +0000 (15:01 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commit9d28d6b0b0bf4e7d9386c2ab56893d5cc95e78e5
treeaf5fbe1a5f00352b4b5a54c887ec7ded206e9409
parentc4169faf9dab18d164557e2b52f7ba1e9d6b768f
net/sfc: fix reported promiscuous/multicast mode

Requested promiscuous or all-multicast mode may be dropped on port
start if FW denies to enable it (e.g. because of no permission
in the case of VF). Return applied value on get.

Fixes: f5258439ee5d ("net/sfc: avoid failure on port start if Rx mode is rejected")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_rx.c