mptcp: zero token hash at creation time.
Otherwise the 'chain_len' filed will carry random values,
some token creation calls will fail due to excessive chain
length, causing unexpected fallback to TCP.
Fixes: 2c5ebd001d
("mptcp: refactor token container")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bb809a047e
commit
6ab301c98f
|
@ -368,7 +368,7 @@ void __init mptcp_token_init(void)
|
|||
sizeof(struct token_bucket),
|
||||
0,
|
||||
20,/* one slot per 1MB of memory */
|
||||
0,
|
||||
HASH_ZERO,
|
||||
NULL,
|
||||
&token_mask,
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue