]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Reset link on IOV disable
authorManish Chopra <Manish.Chopra@qlogic.com>
Sun, 15 May 2016 11:48:07 +0000 (14:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:59:19 +0000 (13:59 -0400)
commit3b58c52251302a7e4ae2d35e4ca5220ec2f07bec
tree786b914f4a960de3eeb0bbab14451fbf14ef2539
parent5ee232283ebea0c24eff7f12e0b4582b721d95e8
qed: Reset link on IOV disable

PF updates its VFs' bulletin boards with link configurations whenever
the physical carrier changes or whenever hyper-user explicitly requires
some setting of the VFs link via the hypervisor's PF.

Since the bulletin board is getting cleaned as part of the IOV disable
flow on the PF side, re-enabling sriov would lead to a VF that sees the
carrier as 'down', until an event causing the PF to re-fill the bulletin
with the link configuration would occur.

To fix this we simply refelect the link state during the flows, giving
the later VFs a default reflecting the PFs link state.

Signed-off-by: Manish Chopra <Manish.Chopra@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_sriov.c