diff options
author | Varun Prakash <varun@chelsio.com> | 2017-08-16 19:40:32 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-16 20:12:31 -0400 |
commit | 71eb2ac58aa52f7948deda4d9a75754b6898e5c9 (patch) | |
tree | ab18f0dcecd860ce508e80ba6659f2439b1cc72a | |
parent | cbe7dfa26eee4819db7b5846181d56fd0cece0ea (diff) | |
download | op-kernel-dev-71eb2ac58aa52f7948deda4d9a75754b6898e5c9.zip op-kernel-dev-71eb2ac58aa52f7948deda4d9a75754b6898e5c9.tar.gz |
scsi: cxgb4i: call neigh_event_send() to update MAC address
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>
-rw-r--r-- | drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c index a69a9ac..1d02cf9 100644 --- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c +++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c @@ -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); |