neigh: send protocol value in neighbor create notification
authorRoman Mashak <mrv@mojatatu.com>
Sat, 2 May 2020 01:34:18 +0000 (21:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2020 20:38:59 +0000 (13:38 -0700)
commit38212bb31fe923d0a2c6299bd2adfbb84cddef2a
tree5ee7a48a1599641bb542d1341f66c74c8bbe4e88
parent755f5738ff981769211a0bfac709d514ef5b9f86
neigh: send protocol value in neighbor create notification

When a new neighbor entry has been added, event is generated but it does not
include protocol, because its value is assigned after the event notification
routine has run, so move protocol assignment code earlier.

Fixes: df9b0e30d44c ("neighbor: Add protocol attribute")
Cc: David Ahern <dsahern@gmail.com>
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c