[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120806.172402.650900841805469227.davem@davemloft.net>
Date: Mon, 06 Aug 2012 17:24:02 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: brutus@...gle.com
Cc: edumazet@...gle.com, netdev@...r.kernel.org
Subject: Re: [RFC][PATCH v2] net-tcp: TCP/IP stack bypass for loopback
connections
From: "Bruce \"Brutus\" Curtis" <brutus@...gle.com>
Date: Mon, 6 Aug 2012 17:13:49 -0700
> + /*
> + * If friends haven't been made yet, our sk_friend
> + * still == NULL, then update with the ACK's friend
> + * value (the listen()er's sock addr) which is used
> + * as a place holder.
> + */
> + atomic_long_cmpxchg(&sk->sk_friend, 0,
> + (u64)skb->friend);
You probably want plain:
cmpxchg(&sk->sk_friend, NULL, skb->friend);
here.
Rather than using an expression that implies an equivalence between
the types 'long' and 'void *'
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists