]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Add waiting for response from PF in set mac
authorMateusz Palczewski <mateusz.palczewski@intel.com>
Fri, 20 May 2022 10:07:13 +0000 (12:07 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 7 Jun 2022 17:27:02 +0000 (10:27 -0700)
commit46b0d74346fa59e56aa1820c44dfa117fe0bade0
tree69ed3e752719d30448d4b73421751af550d43c55
parent9dfe223160a92c9d2081708a8e2076f686219082
iavf: Add waiting for response from PF in set mac

Make iavf_set_mac synchronous by waiting for a response
from a PF. Without this iavf_set_mac is always returning
success even though set_mac can be rejected by a PF.
This ensures that when set_mac exits netdev MAC is updated.
This is needed for sending ARPs with correct MAC after
changing VF's MAC. This is also needed by bonding module.

Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c