mptcp: consolidate in_opt sub-options fields in a bitmask
authorPaolo Abeni <pabeni@redhat.com>
Fri, 27 Aug 2021 00:44:52 +0000 (17:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 08:45:07 +0000 (09:45 +0100)
commit74c7dfbee3e185b3c3a03f194e25689ed037fa3c
treedc45f79abe722e5809c9e6299b2da18dc3081e2b
parenta086aebae0ebe37e93ed8f6e686ca0d5c4375b44
mptcp: consolidate in_opt sub-options fields in a bitmask

This makes input options processing more consistent with
output ones and will simplify the next patch.

Also avoid clearing the suboption field after processing
it, since it's not needed.

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