]> git.baikalelectronics.ru Git - kernel.git/commit
NetLabel: check for a CIPSOv4 option before we do call into the CIPSOv4 layer
authorPaul Moore <paul.moore@hp.com>
Fri, 17 Nov 2006 22:38:47 +0000 (17:38 -0500)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:24:08 +0000 (21:24 -0800)
commit283b67c23b7cb6017eb6690f1c069f283390962a
tree642cd1852808fbd89a2c666e39f23b7f48f2c4c0
parent9f2e965182c31e6f4374cf4588691f74c614f113
NetLabel: check for a CIPSOv4 option before we do call into the CIPSOv4 layer

Right now the NetLabel code always jumps into the CIPSOv4 layer to determine if
a CIPSO IP option is present.  However, we can do this check directly in the
NetLabel code by making use of the CIPSO_V4_OPTEXIST() macro which should save
us a function call in the common case of not having a CIPSOv4 option present.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
net/ipv4/cipso_ipv4.c
net/netlabel/netlabel_kapi.c