Skip to content

Commit

Permalink
scsi: cxgb4i: call neigh_event_send() to update MAC address
Browse files Browse the repository at this point in the history
If nud_state is not valid then call neigh_event_send() to update MAC
address.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Varun Prakash authored and Martin K. Petersen committed Aug 17, 2017
1 parent cbe7dfa commit 71eb2ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@ static int init_act_open(struct cxgbi_sock *csk)
goto rel_resource;
}

if (!(n->nud_state & NUD_VALID))
neigh_event_send(n, NULL);

csk->atid = cxgb4_alloc_atid(lldi->tids, csk);
if (csk->atid < 0) {
pr_err("%s, NO atid available.\n", ndev->name);
Expand Down

0 comments on commit 71eb2ac

Please sign in to comment.