neigh: send protocol value in neighbor create notification
authorRoman Mashak <mrv@mojatatu.com>
Sat, 2 May 2020 01:34:18 +0000 (21:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:58:20 +0000 (07:58 +0200)
commite781af2fdc2e4894f1ba4c46810fc572dd82248e
tree722fa610ccc9c5e682e8e68181f98cbbf0ac99cb
parent89469cf72faefbfa0cda017f3c1ab42f9ff1a4c3
neigh: send protocol value in neighbor create notification

[ Upstream commit 38212bb31fe923d0a2c6299bd2adfbb84cddef2a ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/neighbour.c