net/nfb: fix multicast/promiscuous mode switching
authorMartin Spinler <spinler@cesnet.cz>
Tue, 15 Feb 2022 12:55:42 +0000 (13:55 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 15 Feb 2022 13:53:41 +0000 (14:53 +0100)
commit6685343c4805fcae80bad449903d848409193bd8
tree6d01decdb4c6c33513ac53701412ddde64dc50db
parent1b4081870eaf2f5dca834edbf469998d43058b5c
net/nfb: fix multicast/promiscuous mode switching

In the firmware, the promisc mode overrides the multicast mode.
So when the promisc mode is turned off, driver must check if the
multicast mode was active before and conditionally reactivate it.

Fixes: 6435f9a0ac22 ("net/nfb: add new netcope driver")
Cc: stable@dpdk.org
Signed-off-by: Martin Spinler <spinler@cesnet.cz>
drivers/net/nfb/nfb.h
drivers/net/nfb/nfb_ethdev.c
drivers/net/nfb/nfb_rxmode.c