]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Send UP messages to VF only when VF is up.
authorSubbaraya Sundeep <sbhatta@marvell.com>
Mon, 18 Mar 2024 09:29:57 +0000 (14:59 +0530)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:20:12 +0000 (18:20 -0400)
commit85724ee6e274e6991f7b84b029e2d574ea8ccdd8
tree127b2857a4005f7d587b5bee81d8a04d0388c21e
parentb96b278c821355c017a21988a731043b79b7618a
octeontx2-pf: Send UP messages to VF only when VF is up.

[ Upstream commit dfcf6355f53b1796cf7fd50a4f27b18ee6a3497a ]

When PF sending link status messages to VF, it is possible
that by the time link_event_task work function is executed
VF might have brought down. Hence before sending VF link
status message check whether VF is up to receive it.

Fixes: ad513ed938c9 ("octeontx2-vf: Link event notification support")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c