]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: add tracepoint in br_fdb_update
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 31 Aug 2017 05:18:13 +0000 (22:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Aug 2017 18:42:41 +0000 (11:42 -0700)
commitc30663be6cd35d09c03dd3c019521e07c3615169
tree876459926bede43730c9cbc72d2440b8faa36632
parent04212b6c6b1021ab2158c1117225b51ed87adb5b
bridge: add tracepoint in br_fdb_update

This extends bridge fdb table tracepoints to also cover
learned fdb entries in the br_fdb_update path. Note that
unlike other tracepoints I have moved this to when the fdb
is modified because this is in the datapath and can generate
a lot of noise in the trace output. br_fdb_update is also called
from added_by_user context in the NTF_USE case which is already
traced ..hence the !added_by_user check.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/bridge.h
net/bridge/br_fdb.c
net/core/net-traces.c