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>
This commit is contained in:
committed by
Nicholas Bellinger
parent
09f99a3dfa
commit
093ec1430f
@ -893,6 +893,9 @@ cxgbit_offload_init(struct cxgbit_sock *csk, int iptype, __u8 *peer_ip,
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
|
if (!(n->nud_state & NUD_VALID))
|
||||||
|
neigh_event_send(n, NULL);
|
||||||
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
if (n->dev->flags & IFF_LOOPBACK) {
|
if (n->dev->flags & IFF_LOOPBACK) {
|
||||||
if (iptype == 4)
|
if (iptype == 4)
|
||||||
|
Reference in New Issue
Block a user