]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:29:47 +0000 (12:29 -0700)
commit69fbf3589d53bff77a3ef5db54144fdad6b6fde3
tree2798ece9a7974e4e298e9a84e4761186ee601d75
parentc14b26ae2649037271038d0de5f5b0dca6938692
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>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_sriov.c