]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: shrink mptcp_out_options struct
authorPaolo Abeni <pabeni@redhat.com>
Tue, 24 Aug 2021 23:26:14 +0000 (16:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 10:02:34 +0000 (11:02 +0100)
commit7e86d0a119b91215b142e6fc5db713b967c1e38f
tree7ea30ec79213588b734c1d1e5bcf338244f8f798
parente8d770ee0139e62a01ab71e48ee62af0c9f3f927
mptcp: shrink mptcp_out_options struct

After the previous patch we can alias with a union several
fields in mptcp_out_options. Such struct is stack allocated and
memset() for each plain TCP out packet. Every saved byted counts.

Before:
pahole -EC mptcp_out_options
 # ...
/* size: 136, cachelines: 3, members: 17 */

After:
pahole -EC mptcp_out_options
 # ...
/* size: 56, cachelines: 1, members: 9 */

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/mptcp.h