diff options
author | Yuval Mintz <Yuval.Mintz@caviumnetworks.com> | 2016-10-14 05:19:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-14 11:59:57 -0400 |
commit | c3aaa403840a5ccd305fb5e73f3cbfac6453b5e5 (patch) | |
tree | 94b5d99c8bc049069890a8000e3567e3ffb5bd7b /drivers/net/ethernet/qlogic/qed/qed_vf.c | |
parent | d0b3fbb2306f27d622d4592f4dc3a1f726e68fed (diff) | |
download | linux-c3aaa403840a5ccd305fb5e73f3cbfac6453b5e5.tar.gz linux-c3aaa403840a5ccd305fb5e73f3cbfac6453b5e5.tar.bz2 linux-c3aaa403840a5ccd305fb5e73f3cbfac6453b5e5.zip |
qed: Pass MAC hints to VFs
Some hypervisors can support MAC hints to their VFs.
Even though we don't have such a hypervisor API in linux, we add
sufficient logic for the VF to be able to receive such hints and
set the mac accordingly - as long as the VF has not been set with
a MAC already.
Signed-off-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_vf.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_vf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_vf.c b/drivers/net/ethernet/qlogic/qed/qed_vf.c index abf5bf11f865..f580bf4c97f0 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_vf.c +++ b/drivers/net/ethernet/qlogic/qed/qed_vf.c @@ -1230,8 +1230,8 @@ static void qed_handle_bulletin_change(struct qed_hwfn *hwfn) is_mac_exist = qed_vf_bulletin_get_forced_mac(hwfn, mac, &is_mac_forced); - if (is_mac_exist && is_mac_forced && cookie) - ops->force_mac(cookie, mac); + if (is_mac_exist && cookie) + ops->force_mac(cookie, mac, !!is_mac_forced); /* Always update link configuration according to bulletin */ qed_link_update(hwfn); |