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)
commitae81de737885820616f9c67c2e7935998b523d58
treedf6d03434788efdff770084a74c01372787ebe86
parentd6d86830705f173fca6087a3e67ceaf68db80523
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