Skip to content

Commit

Permalink
iptfs: xfrm: generic IPTFS functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Aug 20, 2023
1 parent f666e61 commit 7a004c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/ipv4/esp4_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ static struct sk_buff *xfrm4_outer_mode_gso_segment(struct xfrm_state *x,
return xfrm4_transport_gso_segment(x, skb, features);
case XFRM_MODE_BEET:
return xfrm4_beet_gso_segment(x, skb, features);
#if 0
case XFRM_MODE_IPTFS:
/* XXX chopps: writeme */
return xfrm4_iptfs_gso_segment(x, skb, features);
#endif
}

return ERR_PTR(-EOPNOTSUPP);
Expand Down
5 changes: 5 additions & 0 deletions net/ipv6/esp6_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ static struct sk_buff *xfrm6_outer_mode_gso_segment(struct xfrm_state *x,
return xfrm6_transport_gso_segment(x, skb, features);
case XFRM_MODE_BEET:
return xfrm6_beet_gso_segment(x, skb, features);
#if 0
case XFRM_MODE_IPTFS:
/* XXX chopps: writeme */
return xfrm6_iptfs_gso_segment(x, skb, features);
#endif
}

return ERR_PTR(-EOPNOTSUPP);
Expand Down
1 change: 1 addition & 0 deletions net/xfrm/xfrm_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static void __xfrm_mode_beet_prep(struct xfrm_state *x, struct sk_buff *skb,
static void xfrm_outer_mode_prep(struct xfrm_state *x, struct sk_buff *skb)
{
switch (x->outer_mode.encap) {
case XFRM_MODE_IPTFS:
case XFRM_MODE_TUNNEL:
if (x->outer_mode.family == AF_INET)
return __xfrm_mode_tunnel_prep(x, skb,
Expand Down

0 comments on commit 7a004c6

Please sign in to comment.