OSDN Git Service

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)
commit14623e005a1e74864afca1261a3aa8e6e8017df9
treebe04beeb1f38a0f2feab54ffe183f5a67e0b2a0a
parenteda1bc65b0dc1b03006e427430ba23746ec44714
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