mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 16:15:05 -04:00
Phonet: use atomic for packet TX window
GPRS TX flow control won't need to lock the underlying socket anymore. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
57c81fffc8
commit
be677730a0
@@ -35,12 +35,12 @@ struct pep_sock {
|
||||
struct sock *listener;
|
||||
struct sk_buff_head ctrlreq_queue;
|
||||
#define PNPIPE_CTRLREQ_MAX 10
|
||||
atomic_t tx_credits;
|
||||
int ifindex;
|
||||
u16 peer_type; /* peer type/subtype */
|
||||
u8 pipe_handle;
|
||||
|
||||
u8 rx_credits;
|
||||
u8 tx_credits;
|
||||
u8 rx_fc; /* RX flow control */
|
||||
u8 tx_fc; /* TX flow control */
|
||||
u8 init_enable; /* auto-enable at creation */
|
||||
|
||||
Reference in New Issue
Block a user