]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: convert to modular building
authorNeil Horman <nhorman@tuxdriver.com>
Thu, 17 May 2012 10:04:00 +0000 (10:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2012 20:09:07 +0000 (16:09 -0400)
commitff0f44fc95aa2712b3f6e2791e49dc795fc56a9e
tree116ce24c03c83876692e79ee9436dda976f86d84
parenta93c5a80a42711b8d375f990cdb7509d4d3ec5f7
drop_monitor: convert to modular building

When I first wrote drop monitor I wrote it to just build monolithically.  There
is no reason it can't be built modularly as well, so lets give it that
flexibiity.

I've tested this by building it as both a module and monolithically, and it
seems to work quite well

Change notes:

v2)
* fixed for_each_present_cpu loops to be more correct as per Eric D.
* Converted exit path failures to BUG_ON as per Ben H.

v3)
* Converted del_timer to del_timer_sync to close race noted by Ben H.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: "David S. Miller" <davem@davemloft.net>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: Ben Hutchings <bhutchings@solarflare.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/Kconfig
net/core/drop_monitor.c