diff options
author | David Ahern <dsahern@gmail.com> | 2019-05-22 21:22:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-23 02:50:24 +0200 |
commit | fc651001d2c5ca4f8b87efae2edb69fca94a6365 (patch) | |
tree | 7d06f313ea04c10863a802217891321339399d93 /net/core/neighbour.c | |
parent | selftests: pmtu: Simplify cleanup and namespace names (diff) | |
download | linux-fc651001d2c5ca4f8b87efae2edb69fca94a6365.tar.xz linux-fc651001d2c5ca4f8b87efae2edb69fca94a6365.zip |
neighbor: Add tracepoint to __neigh_create
Add tracepoint to __neigh_create to enable debugging of new entries.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r-- | net/core/neighbour.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index dfa871061f14..a5556e4d3f96 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -587,6 +587,8 @@ static struct neighbour *___neigh_create(struct neigh_table *tbl, int error; struct neigh_hash_table *nht; + trace_neigh_create(tbl, dev, pkey, n, exempt_from_gc); + if (!n) { rc = ERR_PTR(-ENOBUFS); goto out; |