mptcp: reset the packet scheduler on incoming MP_PRIO
authorPaolo Abeni <pabeni@redhat.com>
Fri, 8 Apr 2022 19:45:55 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 10:55:53 +0000 (11:55 +0100)
commit43f5b111d1ff16161ce60e19aeddb999cb6f0b01
tree01d06078d894393c44c35ae025494bdbd1baaf27
parent65a569b03ca832ebc93ce45a7466137e2bb62254
mptcp: reset the packet scheduler on incoming MP_PRIO

When an incoming MP_PRIO option changes the backup
status of any subflow, we need to reset the packet
scheduler status, or the next send could keep using
the previously selected subflow, without taking in account
the new priorities.

Reported-by: Davide Caratti <dcaratti@redhat.com>
Fixes: 40453a5c61f4 ("mptcp: add the incoming MP_PRIO support")
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/pm.c
net/mptcp/protocol.c
net/mptcp/protocol.h