lkml.org 
[lkml]   [2003]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] compile fix for br2684
Date
From
In message <Pine.LNX.4.44.0304162107370.12494-100000@chimarrao.boston.redhat.com>,Rik van Riel writes:
>It looks like the recent ATM updates forgot br2684.c, here is
>the patch needed to make that driver compile.

forgive me, but i didnt think the recvq to sk->receive_queue changes were
in the 2.4 kernel series yet?

>--- linux-2.4.20/net/atm/br2684.c.compile 2003-04-16 20:41:05.000000000 -0400
>+++ linux-2.4.20/net/atm/br2684.c 2003-04-16 20:42:05.000000000 -0400
>@@ -188,7 +188,7 @@ static int br2684_xmit_vcc(struct sk_buf
> dev_kfree_skb(skb);
> return 0;
> }
>- atomic_add(skb->truesize, &atmvcc->tx_inuse);
>+ atomic_add(skb->truesize, &atmvcc->sk->wmem_alloc);
> ATM_SKB(skb)->iovcnt = 0;
> ATM_SKB(skb)->atm_options = atmvcc->atm_options;
> brdev->stats.tx_packets++;
>@@ -551,7 +551,7 @@ Note: we do not have explicit unassign,
> barrier();
> atmvcc->push = br2684_push;
> skb_queue_head_init(&copy);
>- skb_migrate(&atmvcc->recvq, &copy);
>+ skb_migrate(&atmvcc->sk->receive_queue, &copy);
> while ((skb = skb_dequeue(&copy))) {
> BRPRIV(skb->dev)->stats.rx_bytes -= skb->len;
> BRPRIV(skb->dev)->stats.rx_packets--;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.019 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site