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)
commit35a2443d0910fdd6ce29d4f724447ad7029e8f23
tree69ed3e752719d30448d4b73421751af550d43c55
parentc87c938f62d8f1f7c24620859d67f2e3eca23afc
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