[XFRM]: xfrm_state_lookup() annotations
spi argument of xfrm_state_lookup() is net-endian Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -421,7 +421,7 @@ xfrm_init_tempsel(struct xfrm_state *x, struct flowi *fl,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct xfrm_state *__xfrm_state_lookup(xfrm_address_t *daddr, u32 spi, u8 proto, unsigned short family)
|
||||
static struct xfrm_state *__xfrm_state_lookup(xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family)
|
||||
{
|
||||
unsigned int h = xfrm_spi_hash(daddr, spi, proto, family);
|
||||
struct xfrm_state *x;
|
||||
@@ -916,7 +916,7 @@ err:
|
||||
EXPORT_SYMBOL(xfrm_state_check);
|
||||
|
||||
struct xfrm_state *
|
||||
xfrm_state_lookup(xfrm_address_t *daddr, u32 spi, u8 proto,
|
||||
xfrm_state_lookup(xfrm_address_t *daddr, __be32 spi, u8 proto,
|
||||
unsigned short family)
|
||||
{
|
||||
struct xfrm_state *x;
|
||||
|
Reference in New Issue
Block a user