]> err.no Git - linux-2.6/commitdiff
ehea: Fix skb header access
authorThomas Klein <osstklei@de.ibm.com>
Wed, 2 May 2007 14:07:05 +0000 (16:07 +0200)
committerJeff Garzik <jeff@garzik.org>
Tue, 8 May 2007 05:16:24 +0000 (01:16 -0400)
Adapt to new skb header access functions.

Signed-off-by: Thomas Klein <tklein@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ehea/ehea_main.c

index c7a5614e66c01b6d928521cb609296d97c923662..721164874a8001bb4c04b42208915bbaff505b3e 100644 (file)
@@ -1803,10 +1803,10 @@ static inline int ehea_hash_skb(struct sk_buff *skb, int num_qps)
        u32 tmp;
 
        if ((skb->protocol == htons(ETH_P_IP)) &&
-           (skb->nh.iph->protocol == IPPROTO_TCP)) {
-               tcp = (struct tcphdr*)(skb->nh.raw + (skb->nh.iph->ihl * 4));
+           (ip_hdr(skb)->protocol == IPPROTO_TCP)) {
+               tcp = (struct tcphdr*)(skb_network_header(skb) + (ip_hdr(skb)->ihl * 4));
                tmp = (tcp->source + (tcp->dest << 16)) % 31;
-               tmp += skb->nh.iph->daddr % 31;
+               tmp += ip_hdr(skb)->daddr % 31;
                return tmp % num_qps;
        }
        else