clearing mptcpRX options
Paolo Abeni
hi all,
currently we hook mptcp rx option clearing inside tcp_clear_options(). It looks like it's not enough, as tcp_clear_options() is not called before each tcp_parse_options().
Overall effect I can observe is that mptcp_incoming_options() sees opt_rx->mptcp.mp_capable == 1, while the current packet does not carry any MP_CAPABLE option.
Am I missing anything important here?!?
A trivial fix would be moving:
#if IS_ENABLED(CONFIG_MPTCP)
opt_rx->mptcp.mp_capable = 0;
opt_rx->mptcp.mp_join = 0;
opt_rx->mptcp.add_addr = 0;
opt_rx->mptcp.rm_addr = 0;
opt_rx->mptcp.dss = 0;+#endif
from tcp_clear_options() to tcp_parse_options(), but I feel dizzy to touch the TCP code again. Perhaps we should consider aliasing/unioning the above fields with a single 'sub_opts' byte so we can clear them at once?
Additionally, it now looks like to me that the TCP code stores very little per packet information in 'opt_rx'. Should we try to move most MPTCP per packet information out of mptcp_options_received, too ?!?
Thanks,
Paolo