]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: eliminate redundant fields in struct tipc_sock
authorJon Maloy <jmaloy@redhat.com>
Wed, 2 Jun 2021 17:44:24 +0000 (13:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 21:06:39 +0000 (14:06 -0700)
commit25a6c036982eb00b1b31fe29fb8879fdbbb0392b
treebe04beeb1f38a0f2feab54ffe183f5a67e0b2a0a
parentc26445c3f32f1aa6467a7f1a858de78bcd83a1fb
tipc: eliminate redundant fields in struct tipc_sock

We eliminate the redundant fields conn_type and conn_instance in
struct tipc_sock. On the connecting side, this information is already
present in the unused (after the connection is established) part of
the pre-allocated header, and on the accepting side, we put it there
when the new socket is created.

Reviewed-by: Xin Long <lucien.xin@gmail.com>
Tested-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c