]> git.baikalelectronics.ru Git - kernel.git/commit
mctp: Remove only static neighbour on RTM_DELNEIGH
authorGagan Kumar <gagan1kumar.cs@gmail.com>
Sat, 1 Jan 2022 05:41:25 +0000 (11:11 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Jan 2022 12:18:14 +0000 (12:18 +0000)
commitd208a2eeb2e935d8154f22bca8ad19c47e9de869
treedf6d03434788efdff770084a74c01372787ebe86
parent0e9aa772b54e52930e12273a5f76c6a26abc9825
mctp: Remove only static neighbour on RTM_DELNEIGH

Add neighbour source flag in mctp_neigh_remove(...) to allow removal of
only static neighbours.

This should be a no-op change and might be useful later when mctp can
have MCTP_NEIGH_DISCOVER neighbours.

Signed-off-by: Gagan Kumar <gagan1kumar.cs@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/neigh.c