]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/net/bonding/bond_main.c
[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
[mirror_ubuntu-zesty-kernel.git] / drivers / net / bonding / bond_main.c
index e4724d874e7c5cb5ee90acd72b6ebca2000bcbc3..7f11388893fc613dc9867d6173d62f1c131442bb 100644 (file)
@@ -3476,7 +3476,7 @@ static int bond_xmit_hash_policy_l34(struct sk_buff *skb,
                                    struct net_device *bond_dev, int count)
 {
        struct ethhdr *data = (struct ethhdr *)skb->data;
-       struct iphdr *iph = skb->nh.iph;
+       struct iphdr *iph = ip_hdr(skb);
        u16 *layer4hdr = (u16 *)((u32 *)iph + iph->ihl);
        int layer4_xor = 0;