]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fib: Send deletion notification with actual FIB alias type
authorIdo Schimmel <idosch@mellanox.com>
Thu, 9 Feb 2017 09:28:39 +0000 (10:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:32:12 +0000 (11:32 -0500)
commit718a04ea6b276c07eec63a6071aab3c648571ea6
tree3ef1ce83d0b844ef93c902fe2624459618930a83
parentaa7e68291076c532f141d2a9f4c864fb711c43fd
ipv4: fib: Send deletion notification with actual FIB alias type

When a FIB alias is removed, a notification is sent using the type
passed from user space - can be RTN_UNSPEC - instead of the actual type
of the removed alias. This is problematic for listeners of the FIB
notification chain, as several FIB aliases can exist with matching
parameters, but the type.

Solve this by passing the actual type of the removed FIB alias.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
CC: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c