mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
iavf: iavf_virtchnl_completion: drop duplicate ether_addr_equal() test
This is just a simple cleanup fix. Commit35a2443d09("iavf: Add waiting for response from PF in set mac") introduced a duplicate ether_addr_equal() check, so the current code tests the new MAC twice against the former MAC. Remove the outer ether_addr_equal() test, remnant of commitc5c922b3e0("iavf: fix MAC address setting for VFs when filter is rejected") Signed-off-by: Corinna Vinschen <vinschen@redhat.com> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Link: https://patch.msgid.link/20260609213559.178657-4-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e5652e6d37
commit
8538aaea10
|
|
@ -2550,13 +2550,11 @@ void iavf_virtchnl_completion(struct iavf_adapter *adapter,
|
|||
case VIRTCHNL_OP_ADD_ETH_ADDR:
|
||||
if (!v_retval)
|
||||
iavf_mac_add_ok(adapter);
|
||||
if (!ether_addr_equal(netdev->dev_addr, adapter->hw.mac.addr))
|
||||
if (!ether_addr_equal(netdev->dev_addr,
|
||||
adapter->hw.mac.addr)) {
|
||||
netif_addr_lock_bh(netdev);
|
||||
eth_hw_addr_set(netdev, adapter->hw.mac.addr);
|
||||
netif_addr_unlock_bh(netdev);
|
||||
}
|
||||
if (!ether_addr_equal(netdev->dev_addr, adapter->hw.mac.addr)) {
|
||||
netif_addr_lock_bh(netdev);
|
||||
eth_hw_addr_set(netdev, adapter->hw.mac.addr);
|
||||
netif_addr_unlock_bh(netdev);
|
||||
}
|
||||
wake_up(&adapter->vc_waitqueue);
|
||||
break;
|
||||
case VIRTCHNL_OP_GET_STATS: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user