]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
scsi: cxgb4i: call neigh_event_send() to update MAC address
authorVarun Prakash <varun@chelsio.com>
Wed, 16 Aug 2017 14:10:32 +0000 (19:40 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 17 Aug 2017 00:12:31 +0000 (20:12 -0400)
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>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c

index a69a9ac836f5d13c37d5220ecbb2711d588c4c35..1d02cf9fe06c5e941e5d1a76254f86ce658fc04b 100644 (file)
@@ -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);