]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: Add error code to detect duplicate state changes
authorNeil Horman <nhorman@tuxdriver.com>
Tue, 20 Jul 2010 04:52:09 +0000 (04:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2010 20:28:04 +0000 (13:28 -0700)
commitc1f024746bfd7428c4eadb97ba9e5a74ed5d49e3
tree545fe784620c3dc9f0fd8a6efdeb2cbe566779c9
parent40b7cb53d7caa4308fc20dabe97f4b153fc545ff
drop_monitor: Add error code to detect duplicate state changes

Patch to add -EAGAIN error to dropwatch netlink message handling code.
-EAGAIN will be returned anytime userspace attempts to transition the state of
the drop monitor service to a state that its already in.  That allows user space
to detect this condition, so it doesn't wait for a success ACK that will never
arrive.  Tested successfully by me

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c