]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Fix SDP build issue in 2.6.22-rc7 kernel. There are skbuff.h changes.
authorJim Mott <jim@mellanox.com>
Mon, 16 Jul 2007 12:27:12 +0000 (05:27 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:08 +0000 (05:04 -0700)
drivers/infiniband/ulp/sdp/sdp_bcopy.c
drivers/infiniband/ulp/sdp/sdp_main.c

index ac06b42a33fc5f24740e59449d2c3b965db667a3..d33525df746fee67cfa5875db0461e4756c285d2 100644 (file)
@@ -524,7 +524,7 @@ static void sdp_handle_wc(struct sdp_sock *ssk, struct ib_wc *wc)
                        skb->data = skb->head;
                        skb->tail = skb->head + skb_headlen(skb);
                        h = (struct sdp_bsdh *)skb->data;
-                       skb->h.raw = skb->data;
+                       skb_reset_transport_header(skb);
                        ssk->mseq_ack = ntohl(h->mseq);
                        if (ssk->mseq_ack != (int)wc->wr_id)
                                printk("SDP BUG! mseq %d != wrid %d\n",
index ee6721dc22cda85f5fe3aaacd6703bcf260d7afa..1570c8155c59f72bf874a24d58cdb664c735ef52 100644 (file)
@@ -691,7 +691,7 @@ static int sdp_ioctl(struct sock *sk, int cmd, unsigned long arg)
                        /* Subtract 1, if FIN is in queue. */
                        if (answ && !skb_queue_empty(&sk->sk_receive_queue))
                                answ -=
-                       ((struct sk_buff *)sk->sk_receive_queue.prev)->h.raw[0]
+                       (skb_transport_header(sk->sk_receive_queue.prev))[0]
                        == SDP_MID_DISCONN ? 1 : 0;
                } else
                        answ = ssk->urg_seq - ssk->copied_seq;
@@ -1341,7 +1341,7 @@ static int sdp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
                        if (!skb)
                                break;
 
-                       if (skb->h.raw[0] == SDP_MID_DISCONN)
+                       if ((skb_transport_header(skb))[0] == SDP_MID_DISCONN)
                                goto found_fin_ok;
 
                        if (before(*seq, TCP_SKB_CB(skb)->seq)) {