mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
octeontx2-pf: Send UP messages to VF only when VF is up.
[ Upstream commitdfcf6355f5
] 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:ad513ed938
("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>
This commit is contained in:
parent
b96b278c82
commit
85724ee6e2
1 changed files with 3 additions and 0 deletions
|
@ -3122,6 +3122,9 @@ static void otx2_vf_link_event_task(struct work_struct *work)
|
|||
vf_idx = config - config->pf->vf_configs;
|
||||
pf = config->pf;
|
||||
|
||||
if (config->intf_down)
|
||||
return;
|
||||
|
||||
mutex_lock(&pf->mbox.lock);
|
||||
|
||||
dwork = &config->link_event_work;
|
||||
|
|
Loading…
Reference in a new issue