summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorBoris Pismenny <borisp@mellanox.com>2019-03-21 16:41:37 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2019-03-24 09:48:38 +0100
commit65fd2c2afac31a4b46a80150347a1748fa9101cb (patch)
tree11d9735c04e2fb0a3fa15de15c99e4ef8ef32112 /net/xfrm
parente6d1407013a91722ffc89e980d715eb9ce7b57f6 (diff)
downloadlinux-65fd2c2afac31a4b46a80150347a1748fa9101cb.tar.bz2
xfrm: gso partial offload support
This patch introduces support for gso partial ESP offload. Signed-off-by: Boris Pismenny <borisp@mellanox.com> Signed-off-by: Raed Salem <raeds@mellanox.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c
index 2db1626557c5..e437b60fba51 100644
--- a/net/xfrm/xfrm_device.c
+++ b/net/xfrm/xfrm_device.c
@@ -78,6 +78,7 @@ struct sk_buff *validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t featur
}
if (!skb->next) {
+ esp_features |= skb->dev->gso_partial_features;
x->outer_mode->xmit(x, skb);
xo->flags |= XFRM_DEV_RESUME;
@@ -101,6 +102,8 @@ struct sk_buff *validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t featur
do {
struct sk_buff *nskb = skb2->next;
+
+ esp_features |= skb->dev->gso_partial_features;
skb_mark_not_on_list(skb2);
xo = xfrm_offload(skb2);