iavf: Fix failure to exit out from last all-multicast mode
authorPiotr Marczak <piotr.marczak@intel.com>
Fri, 4 Jun 2021 16:48:56 +0000 (09:48 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 15 Nov 2021 23:40:04 +0000 (15:40 -0800)
commit8905072a192fffe9389255489db250c73ecab008
tree440a03b08ca08e11e978f9c34602ded00f4d49f4
parent2135a8d5c8186bc92901dc00f179ffd50e54c2ac
iavf: Fix failure to exit out from last all-multicast mode

The driver could only quit allmulti when allmulti and promisc modes are
turn on at the same time. If promisc had been off there was no way to turn
off allmulti mode.
The patch corrects this behavior. Switching allmulti does not depends on
promisc state mode anymore

Fixes: f42a5c74da99 ("i40e: Add allmulti support for the VF")
Signed-off-by: Piotr Marczak <piotr.marczak@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c