Message ID | 9c1619337f0fa54112c0fe6f0e0100ded392ac3e.1595431172.git.pabeni@redhat.com |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
Series | [net-next] mptcp: zero token hash at creation time. | expand |
From: Paolo Abeni <pabeni@redhat.com> Date: Wed, 22 Jul 2020 17:20:50 +0200 > 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: 2c5ebd001d4f ("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> Applied, thanks Paolo.
diff --git a/net/mptcp/token.c b/net/mptcp/token.c index b25b390dbbff..97cfc45bcc4f 100644 --- a/net/mptcp/token.c +++ b/net/mptcp/token.c @@ -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,