浏览代码

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>
Varun Prakash 8 年之前
父节点
当前提交
71eb2ac58a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/scsi/cxgbi/cxgb4i/cxgb4i.c

+ 3 - 0
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);