Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340718
b: refs/heads/master
c: c3b89fb
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 9, 2012
1 parent 04e69b6 commit 7ff665f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1ee40f96036e838f0849dd31c16e548a904176c
refs/heads/master: c3b89fbba339aae533e380839fa078787635356e
12 changes: 12 additions & 0 deletions trunk/net/ipv4/ipip.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
if (skb->protocol != htons(ETH_P_IP))
goto tx_error;

if (skb->ip_summed == CHECKSUM_PARTIAL &&
skb_checksum_help(skb))
goto tx_error;

if (tos & 1)
tos = old_iph->tos;

Expand Down Expand Up @@ -773,6 +777,11 @@ static void ipip_dev_free(struct net_device *dev)
free_netdev(dev);
}

#define IPIP_FEATURES (NETIF_F_SG | \
NETIF_F_FRAGLIST | \
NETIF_F_HIGHDMA | \
NETIF_F_HW_CSUM)

static void ipip_tunnel_setup(struct net_device *dev)
{
dev->netdev_ops = &ipip_netdev_ops;
Expand All @@ -787,6 +796,9 @@ static void ipip_tunnel_setup(struct net_device *dev)
dev->features |= NETIF_F_NETNS_LOCAL;
dev->features |= NETIF_F_LLTX;
dev->priv_flags &= ~IFF_XMIT_DST_RELEASE;

dev->features |= IPIP_FEATURES;
dev->hw_features |= IPIP_FEATURES;
}

static int ipip_tunnel_init(struct net_device *dev)
Expand Down

0 comments on commit 7ff665f

Please sign in to comment.