@@ -954,7 +954,7 @@ __xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir
954954}
955955
956956static struct flow_cache_object *
957- xfrm_policy_lookup (struct net * net , struct flowi * fl , u16 family ,
957+ xfrm_policy_lookup (struct net * net , const struct flowi * fl , u16 family ,
958958 u8 dir , struct flow_cache_object * old_obj , void * ctx )
959959{
960960 struct xfrm_policy * pol ;
@@ -990,7 +990,8 @@ static inline int policy_to_flow_dir(int dir)
990990 }
991991}
992992
993- static struct xfrm_policy * xfrm_sk_policy_lookup (struct sock * sk , int dir , struct flowi * fl )
993+ static struct xfrm_policy * xfrm_sk_policy_lookup (struct sock * sk , int dir ,
994+ const struct flowi * fl )
994995{
995996 struct xfrm_policy * pol ;
996997
@@ -1629,7 +1630,7 @@ xfrm_resolve_and_create_bundle(struct xfrm_policy **pols, int num_pols,
16291630}
16301631
16311632static struct flow_cache_object *
1632- xfrm_bundle_lookup (struct net * net , struct flowi * fl , u16 family , u8 dir ,
1633+ xfrm_bundle_lookup (struct net * net , const struct flowi * fl , u16 family , u8 dir ,
16331634 struct flow_cache_object * oldflo , void * ctx )
16341635{
16351636 struct dst_entry * dst_orig = (struct dst_entry * )ctx ;
@@ -1733,7 +1734,8 @@ xfrm_bundle_lookup(struct net *net, struct flowi *fl, u16 family, u8 dir,
17331734 * At the moment we eat a raw IP route. Mostly to speed up lookups
17341735 * on interfaces with disabled IPsec.
17351736 */
1736- int __xfrm_lookup (struct net * net , struct dst_entry * * dst_p , struct flowi * fl ,
1737+ int __xfrm_lookup (struct net * net , struct dst_entry * * dst_p ,
1738+ const struct flowi * fl ,
17371739 struct sock * sk , int flags )
17381740{
17391741 struct xfrm_policy * pols [XFRM_POLICY_TYPE_MAX ];
@@ -1889,7 +1891,8 @@ int __xfrm_lookup(struct net *net, struct dst_entry **dst_p, struct flowi *fl,
18891891}
18901892EXPORT_SYMBOL (__xfrm_lookup );
18911893
1892- int xfrm_lookup (struct net * net , struct dst_entry * * dst_p , struct flowi * fl ,
1894+ int xfrm_lookup (struct net * net , struct dst_entry * * dst_p ,
1895+ const struct flowi * fl ,
18931896 struct sock * sk , int flags )
18941897{
18951898 int err = __xfrm_lookup (net , dst_p , fl , sk , flags );
0 commit comments