diff options
author | Paolo Abeni | 2022-06-27 18:02:39 -0700 |
---|---|---|
committer | Jakub Kicinski | 2022-06-28 20:45:42 -0700 |
commit | f745a3ebdfb9041d3a55e66eb345895cd8ecc90c (patch) | |
tree | a9a75478a269f03eda15ee62589df57680c7c9a9 /net/mptcp/protocol.h | |
parent | d51991e2e31477853e5b9c1005ac617707077286 (diff) |
mptcp: consistent map handling on failure
When the MPTCP receive path reach a non fatal fall-back condition, e.g.
when the MPC sockets must fall-back to TCP, the existing code is a little
self-inconsistent: it reports that new data is available - return true -
but sets the MPC flag to the opposite value.
As the consequence read operations in some exceptional scenario may block
unexpectedly.
Address the issue setting the correct MPC read status. Additionally avoid
some code duplication in the fatal fall-back scenario.
Fixes: 9c81be0dbc89 ("mptcp: add MP_FAIL response support")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/protocol.h')
0 files changed, 0 insertions, 0 deletions