ip4ip6: Support for GSO/GRO
Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
815d22e55b
commit
b8921ca83e
@@ -1192,8 +1192,8 @@ int inet_sk_rebuild_header(struct sock *sk)
|
||||
}
|
||||
EXPORT_SYMBOL(inet_sk_rebuild_header);
|
||||
|
||||
static struct sk_buff *inet_gso_segment(struct sk_buff *skb,
|
||||
netdev_features_t features)
|
||||
struct sk_buff *inet_gso_segment(struct sk_buff *skb,
|
||||
netdev_features_t features)
|
||||
{
|
||||
bool udpfrag = false, fixedid = false, encap;
|
||||
struct sk_buff *segs = ERR_PTR(-EINVAL);
|
||||
@@ -1280,9 +1280,9 @@ static struct sk_buff *inet_gso_segment(struct sk_buff *skb,
|
||||
out:
|
||||
return segs;
|
||||
}
|
||||
EXPORT_SYMBOL(inet_gso_segment);
|
||||
|
||||
static struct sk_buff **inet_gro_receive(struct sk_buff **head,
|
||||
struct sk_buff *skb)
|
||||
struct sk_buff **inet_gro_receive(struct sk_buff **head, struct sk_buff *skb)
|
||||
{
|
||||
const struct net_offload *ops;
|
||||
struct sk_buff **pp = NULL;
|
||||
@@ -1398,6 +1398,7 @@ out:
|
||||
|
||||
return pp;
|
||||
}
|
||||
EXPORT_SYMBOL(inet_gro_receive);
|
||||
|
||||
static struct sk_buff **ipip_gro_receive(struct sk_buff **head,
|
||||
struct sk_buff *skb)
|
||||
@@ -1449,7 +1450,7 @@ int inet_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int inet_gro_complete(struct sk_buff *skb, int nhoff)
|
||||
int inet_gro_complete(struct sk_buff *skb, int nhoff)
|
||||
{
|
||||
__be16 newlen = htons(skb->len - nhoff);
|
||||
struct iphdr *iph = (struct iphdr *)(skb->data + nhoff);
|
||||
@@ -1479,6 +1480,7 @@ out_unlock:
|
||||
|
||||
return err;
|
||||
}
|
||||
EXPORT_SYMBOL(inet_gro_complete);
|
||||
|
||||
static int ipip_gro_complete(struct sk_buff *skb, int nhoff)
|
||||
{
|
||||
|
Reference in New Issue
Block a user