Skip to content

Commit 8905072

Browse files
Piotr Marczakanguy11
authored andcommitted
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: f42a5c7 ("i40e: Add allmulti support for the VF") Signed-off-by: Piotr Marczak <[email protected]> Tested-by: Tony Brelinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 2135a8d commit 8905072

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/intel/iavf/iavf_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,8 +1639,7 @@ static int iavf_process_aq_command(struct iavf_adapter *adapter)
16391639
iavf_set_promiscuous(adapter, FLAG_VF_MULTICAST_PROMISC);
16401640
return 0;
16411641
}
1642-
1643-
if ((adapter->aq_required & IAVF_FLAG_AQ_RELEASE_PROMISC) &&
1642+
if ((adapter->aq_required & IAVF_FLAG_AQ_RELEASE_PROMISC) ||
16441643
(adapter->aq_required & IAVF_FLAG_AQ_RELEASE_ALLMULTI)) {
16451644
iavf_set_promiscuous(adapter, 0);
16461645
return 0;

0 commit comments

Comments
 (0)