Skip to contentSkip to conversation

cxgbit: call neigh_event_send() to update MAC address

PATCH New Varun Prakash 1 participant 1 message Dec 11, 2017 SCSI target

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxgbit: call neigh_event_send() to update MAC address

If nud_state is not valid then call neigh_event_send() to update MAC address.

---
 drivers/target/iscsi/cxgbit/cxgbit_cm.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/target/iscsi/cxgbit/cxgbit_cm.c +3 -0
index 92eb57e..8de1601 100644
@@ -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)
Signature · 1 line
2.0.2