mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
tcp: Access &tcp_hashinfo via net.
We will soon introduce an optional per-netns ehash. This means we cannot use tcp_hashinfo directly in most places. Instead, access it via net->ipv4.tcp_death_row.hashinfo. The access will be valid only while initialising tcp_hashinfo itself and creating/destroying each netns. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
429e42c1c5
commit
4461568aa4
@@ -1069,8 +1069,7 @@ static void chtls_pass_accept_rpl(struct sk_buff *skb,
|
||||
cxgb4_l2t_send(csk->egress_dev, skb, csk->l2t_entry);
|
||||
}
|
||||
|
||||
static void inet_inherit_port(struct inet_hashinfo *hash_info,
|
||||
struct sock *lsk, struct sock *newsk)
|
||||
static void inet_inherit_port(struct sock *lsk, struct sock *newsk)
|
||||
{
|
||||
local_bh_disable();
|
||||
__inet_inherit_port(lsk, newsk);
|
||||
@@ -1240,7 +1239,7 @@ static struct sock *chtls_recv_sock(struct sock *lsk,
|
||||
ipv4.sysctl_tcp_window_scaling),
|
||||
tp->window_clamp);
|
||||
neigh_release(n);
|
||||
inet_inherit_port(&tcp_hashinfo, lsk, newsk);
|
||||
inet_inherit_port(lsk, newsk);
|
||||
csk_set_flag(csk, CSK_CONN_INLINE);
|
||||
bh_unlock_sock(newsk); /* tcp_create_openreq_child ->sk_clone_lock */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user