Browse Source

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 years ago
parent
commit
093ec1430f
1 changed files with 3 additions and 0 deletions
  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)