Skip to content

Commit

Permalink
octeontx2-pf: Send UP messages to VF only when VF is up.
Browse files Browse the repository at this point in the history
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 <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Subbaraya Sundeep authored and David S. Miller committed Mar 20, 2024
1 parent 7558ce0 commit dfcf635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dfcf635

Please sign in to comment.