]> 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)
commitba8f6e23985d805c64f645e2833aeebb34fdc53c
tree5ee7a48a1599641bb542d1341f66c74c8bbe4e88
parentac6c80f46ff63142ff78d51667bd6aec24278a10
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: 4da30b6308d1 ("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