cxgbit: call neigh_event_send() to update MAC address

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/093ec1430f41063d65dfc68d7eddec9d80f8efbb
Commit:     093ec1430f41063d65dfc68d7eddec9d80f8efbb
Parent:     09f99a3dfadce47ba868cee318d55d249eb4e413
Refname:    refs/heads/master
Author:     Varun Prakash <[email protected]>
AuthorDate: Mon Dec 11 21:00:25 2017 +0530
Committer:  Nicholas Bellinger <[email protected]>
CommitDate: Fri Jan 12 15:07:26 2018 -0800

    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 <[email protected]>
    Signed-off-by: Nicholas Bellinger <[email protected]>
---
 drivers/target/iscsi/cxgbit/cxgbit_cm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/target/iscsi/cxgbit/cxgbit_cm.c b/drivers/target/iscsi/cxgbit/cxgbit_cm.c
index 92eb57e2adaf..8de16016b6de 100644
--- a/drivers/target/iscsi/cxgbit/cxgbit_cm.c
+++ b/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)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.