From: Gerrit Renker Date: Wed, 27 Oct 2010 19:16:25 +0000 (+0000) Subject: dccp: Return-value convention of hc_tx_send_packet() X-Git-Tag: v2.6.37-rc1~32^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe84f4140f0d24deca8591e38926b95cfd097e62;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed