mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
ANDROID: net: xfrm: always export pktgen_xfrm_outer_mode_output
Currently, it is not possible to set CONFIG_NET_PKTGEN=m in a vendor kernel, as it depends on pktgen_xfrm_outer_mode_output, which is only exported if CONFIG_NET_PKTGEN is enabled. Always export this symbol so vendor kernels can depend on it. This may be simpler than the alternative, which is to set CONFIG_NET_PKTGEN=m in the GKI kernel. Bug: 171693245 Signed-off-by: Lorenzo Colitti <lorenzo@google.com> Change-Id: I96b48c77121aea90fb4c4c51ecb97a92601bccf6 (cherry picked from commit 3ef1e249c624e1a7f28e1364d9b924d933826ee6) Signed-off-by: Will McVicker <willmcvicker@google.com>
This commit is contained in:
parent
310b82860b
commit
d30c303aab
|
|
@ -1560,9 +1560,7 @@ int xfrm_trans_queue(struct sk_buff *skb,
|
|||
int xfrm_output_resume(struct sk_buff *skb, int err);
|
||||
int xfrm_output(struct sock *sk, struct sk_buff *skb);
|
||||
|
||||
#if IS_ENABLED(CONFIG_NET_PKTGEN)
|
||||
int pktgen_xfrm_outer_mode_output(struct xfrm_state *x, struct sk_buff *skb);
|
||||
#endif
|
||||
|
||||
void xfrm_local_error(struct sk_buff *skb, int mtu);
|
||||
int xfrm4_extract_input(struct xfrm_state *x, struct sk_buff *skb);
|
||||
|
|
|
|||
|
|
@ -402,13 +402,11 @@ static int xfrm_outer_mode_output(struct xfrm_state *x, struct sk_buff *skb)
|
|||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_NET_PKTGEN)
|
||||
int pktgen_xfrm_outer_mode_output(struct xfrm_state *x, struct sk_buff *skb)
|
||||
{
|
||||
return xfrm_outer_mode_output(x, skb);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pktgen_xfrm_outer_mode_output);
|
||||
#endif
|
||||
|
||||
static int xfrm_output_one(struct sk_buff *skb, int err)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user