If a packet is neither GSO nor CHECKSUM_PARTIAL then the
GRE GSO compatibility code can use an uninitialized IP ID.
CC: Pravin Shelar <pshelar@nicira.com>
Reported-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Jesse Gross <jesse@nicira.com>
int rpl_ip_local_out(struct sk_buff *skb)
{
int ret = NETDEV_TX_OK;
int rpl_ip_local_out(struct sk_buff *skb)
{
int ret = NETDEV_TX_OK;
if (skb_is_gso(skb)) {
struct iphdr *iph;
if (skb_is_gso(skb)) {
struct iphdr *iph;
err = skb_checksum_help(skb);
if (unlikely(err))
return 0;
err = skb_checksum_help(skb);
if (unlikely(err))
return 0;