Skip to content

Commit 273ae44

Browse files
nhormandavem330
authored andcommitted
Network Drop Monitor: Adding Build changes to enable drop monitor
Network Drop Monitor: Adding Build changes to enable drop monitor Signed-off-by: Neil Horman <nhorman@tuxdriver.com> include/linux/Kbuild | 1 + net/Kconfig | 11 +++++++++++ net/core/Makefile | 1 + 3 files changed, 13 insertions(+) Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9a8afc8 commit 273ae44

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎include/linux/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ header-y += mqueue.h
115115
header-y += mtio.h
116116
header-y += ncp_no.h
117117
header-y += neighbour.h
118+
header-y += net_dropmon.h
118119
header-y += netfilter_arp.h
119120
header-y += netrom.h
120121
header-y += nfs2.h

‎net/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,17 @@ config NET_TCPPROBE
222222
To compile this code as a module, choose M here: the
223223
module will be called tcp_probe.
224224

225+
config NET_DROP_MONITOR
226+
boolean "Network packet drop alerting service"
227+
depends on INET && EXPERIMENTAL && TRACEPOINTS
228+
---help---
229+
This feature provides an alerting service to userspace in the
230+
event that packets are discarded in the network stack. Alerts
231+
are broadcast via netlink socket to any listening user space
232+
process. If you don't need network drop alerts, or if you are ok
233+
just checking the various proc files and other utilities for
234+
drop statistics, say N here.
235+
225236
endmenu
226237

227238
endmenu

‎net/core/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ obj-$(CONFIG_NETPOLL) += netpoll.o
1818
obj-$(CONFIG_NET_DMA) += user_dma.o
1919
obj-$(CONFIG_FIB_RULES) += fib_rules.o
2020
obj-$(CONFIG_TRACEPOINTS) += net-traces.o
21+
obj-$(CONFIG_NET_DROP_MONITOR) += drop_monitor.o
2122

0 commit comments

Comments
 (0)