diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-12-17 15:48:31 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-17 15:48:31 -0800 |
commit | be677730a0ccb6bedced6f65f2ba8f57a3c607ba (patch) | |
tree | 3885b6ed60b72696a8b0102f7f1b85d0dd27617e /include/net/phonet | |
parent | 57c81fffc863fb4c1804bc963bcbfb82d736c6df (diff) |
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>
Diffstat (limited to 'include/net/phonet')
-rw-r--r-- | include/net/phonet/pep.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/phonet/pep.h b/include/net/phonet/pep.h index fcd793030e4..4c61cdce4e5 100644 --- a/include/net/phonet/pep.h +++ b/include/net/phonet/pep.h @@ -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 */ |