]> git.baikalelectronics.ru Git - kernel.git/commit
netlabel: return msg overflow error from netlbl_cipsov4_list faster
authorDenis V. Lunev <den@openvz.org>
Tue, 15 Jul 2008 05:28:25 +0000 (22:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 05:28:25 +0000 (22:28 -0700)
commite9746666844e611cc72cfec96c29aaa9d65af290
tree2e0b368ddbc2c9727e8648cb7e9282b0cbc5ff17
parent34eb04daf3d6120e7389505606de47ed51246e0b
netlabel: return msg overflow error from netlbl_cipsov4_list faster

Currently, we are trying to place the information from the kernel to
1, 2, 3 and 4 pages sequentially. These pages are allocated via slab.
Though, from the slab point of view steps 3 and 4 are equivalent on
most architectures. So, lets skip 3 pages attempt.

By the way, should we switch from .doit to .dumpit interface here?
The amount of data seems quite big for me.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_cipso_v4.c