Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]>
---

 Compile-tested only.

 drivers/net/ehea/ehea_main.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -1799,14 +1799,15 @@ static void ehea_xmit3(struct sk_buff *skb, struct 
net_device *dev,
 
 static inline int ehea_hash_skb(struct sk_buff *skb, int num_qps)
 {
+       struct iphdr *iph = ip_hdr(skb);
        struct tcphdr *tcp;
        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));
+           (iph->protocol == IPPROTO_TCP)) {
+               tcp = (struct tcphdr*)(skb_network_header(skb) + iph->ihl * 4);
                tmp = (tcp->source + (tcp->dest << 16)) % 31;
-               tmp += skb->nh.iph->daddr % 31;
+               tmp += iph->daddr % 31;
                return tmp % num_qps;
        }
        else

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to