]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit358cea7e6a342f7b0b5ca3b44e8a3d4ace2aa154
tree5ee7a48a1599641bb542d1341f66c74c8bbe4e88
parentbb93c3c4fae3fbdc1805d438315bcf9768625327
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: 488e8a298f11 ("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