]> 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)
commite889a845418800eaa9dd12a85e0c12bdbccc9df1
tree786b914f4a960de3eeb0bbab14451fbf14ef2539
parent7fc796425ddf7caa44fd3cd2fc26ea9a016b58ba
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