Skip to content

Commit dfcf635

Browse files
Subbaraya Sundeepdavem330
authored andcommitted
octeontx2-pf: Send UP messages to VF only when VF is up.
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: ad513ed ("octeontx2-vf: Link event notification support") Signed-off-by: Subbaraya Sundeep <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7558ce0 commit dfcf635

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+3
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3122,6 +3122,9 @@ static void otx2_vf_link_event_task(struct work_struct *work)
31223122
vf_idx = config - config->pf->vf_configs;
31233123
pf = config->pf;
31243124

3125+
if (config->intf_down)
3126+
return;
3127+
31253128
mutex_lock(&pf->mbox.lock);
31263129

31273130
dwork = &config->link_event_work;

0 commit comments

Comments
 (0)