diff options
| author | Gerrit Renker <[email protected]> | 2010-10-27 19:16:25 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-10-28 17:27:00 +0000 |
| commit | fe84f4140f0d24deca8591e38926b95cfd097e62 (patch) | |
| tree | 5b4c809f131105fddb533776632ff1d546b604a7 /net/dccp/ccids/ccid2.c | |
| parent | igbvf: fix panic on load (diff) | |
| download | kernel-fe84f4140f0d24deca8591e38926b95cfd097e62.tar.gz kernel-fe84f4140f0d24deca8591e38926b95cfd097e62.zip | |
dccp: Return-value convention of hc_tx_send_packet()
This patch reorganises the return value convention of the CCID TX sending
function, to permit more flexible schemes, as required by subsequent patches.
Currently the convention is
* values < 0 mean error,
* a value == 0 means "send now", and
* a value x > 0 means "send in x milliseconds".
The patch provides symbolic constants and a function to interpret return values.
In addition, it caps the maximum positive return value to 0xFFFF milliseconds,
corresponding to 65.535 seconds. This is possible since in CCID-3/4 the
maximum possible inter-packet gap is fixed at t_mbi = 64 sec.
Signed-off-by: Gerrit Renker <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dccp/ccids/ccid2.c')
0 files changed, 0 insertions, 0 deletions
