diff options
author | Varun Prakash <varun@chelsio.com> | 2017-08-16 10:10:32 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-16 20:12:31 -0400 |
commit | 71eb2ac58aa52f7948deda4d9a75754b6898e5c9 (patch) | |
tree | ab18f0dcecd860ce508e80ba6659f2439b1cc72a | |
parent | cbe7dfa26eee4819db7b5846181d56fd0cece0ea (diff) |
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 a69a9ac836f5..1d02cf9fe06c 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) | |||
1635 | goto rel_resource; | 1635 | goto rel_resource; |
1636 | } | 1636 | } |
1637 | 1637 | ||
1638 | if (!(n->nud_state & NUD_VALID)) | ||
1639 | neigh_event_send(n, NULL); | ||
1640 | |||
1638 | csk->atid = cxgb4_alloc_atid(lldi->tids, csk); | 1641 | csk->atid = cxgb4_alloc_atid(lldi->tids, csk); |
1639 | if (csk->atid < 0) { | 1642 | if (csk->atid < 0) { |
1640 | pr_err("%s, NO atid available.\n", ndev->name); | 1643 | pr_err("%s, NO atid available.\n", ndev->name); |