]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Reflect PF link when initializing VF
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Mon, 20 Feb 2017 20:43:36 +0000 (22:43 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 05:00:30 +0000 (21:00 -0800)
commit0e927416f3b5b93da30d7dcbdf5bd40cd2dbd65d
tree8472b9bf1c25d97539bfcbefaee5c0300ef868a6
parent387c46e49f67cc1d9b97850b1a30c6f4e10cc21e
qed: Reflect PF link when initializing VF

Orabug: 25477939

VF learns of the current link state via its bulletin board,
which might reflect either the physical link state or some
user-configured logical state.
Whenever the physical link changes or whnever such a configuration
is explicitly made by user the PF driver would update the bulletin
that the VF reads. But if neither has happened - i.e., PF still
hasn't got a physical link up and no additional configuration was
done the VF wouldn't have a valid link information available.

Simply reflect the physical link state whenever the VF is
initialized. The user could then affect it however he wants.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 33b2fbd0a8d3c556b802d8753ac5bb3e8f90e988)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_sriov.c