]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: better binary layout for mptcp_options_received
authorPaolo Abeni <pabeni@redhat.com>
Fri, 27 Aug 2021 00:44:51 +0000 (17:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 08:45:07 +0000 (09:45 +0100)
commit08c94ab519725723a1b5cadbb26f9e2739eedff4
treecdc17ec37fc91fbabed2c3f0181294cd37516ddb
parentfc6610472d79ae7d1bc7484e2c5455b3fbd38a2b
mptcp: better binary layout for mptcp_options_received

This change reorder the mptcp_options_received fields
to shrink the structure a bit and to ensure the most
frequently used fields are all in the first cacheline.

Sub-opt specific flags are moved out of the suboptions area,
and we must now explicitly set them when the relevant
suboption is parsed.

There is a notable exception: 'csum_reqd' is used by both DSS
and MPC suboptions, and keeping such field in the suboptions
flag area will simplfy the next patch.

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>
net/mptcp/options.c
net/mptcp/protocol.h