浏览代码

cxgbit: 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: Nicholas Bellinger <nab@linux-iscsi.org>
Varun Prakash 7 年之前
父节点
当前提交
093ec1430f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/target/iscsi/cxgbit/cxgbit_cm.c

+ 3 - 0
drivers/target/iscsi/cxgbit/cxgbit_cm.c

@@ -893,6 +893,9 @@ cxgbit_offload_init(struct cxgbit_sock *csk, int iptype, __u8 *peer_ip,
 		return -ENODEV;
 
 	rcu_read_lock();
+	if (!(n->nud_state & NUD_VALID))
+		neigh_event_send(n, NULL);
+
 	ret = -ENOMEM;
 	if (n->dev->flags & IFF_LOOPBACK) {
 		if (iptype == 4)