On Mon, Feb 26, 2024 at 10:56:21PM +0100, Matthieu Baerts (NGI0) wrote: > From: Geliang Tang <tanggeliang@xxxxxxxxxx> > > Just the same as userspace PM, a new parameter needs_id is added for > in-kernel PM mptcp_pm_nl_append_new_local_addr() too. > > Add a new helper mptcp_pm_has_addr_attr_id() to check whether an address > ID is set from PM or not. > > In mptcp_pm_nl_get_local_id(), needs_id is always true, but in > mptcp_pm_nl_add_addr_doit(), pass mptcp_pm_has_addr_attr_id() to > needs_it. > > Fixes: efd5a4c04e18 ("mptcp: add the address ID assignment bitmap") > Cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Geliang Tang <tanggeliang@xxxxxxxxxx> > Reviewed-by: Mat Martineau <martineau@xxxxxxxxxx> > Signed-off-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx> > Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> > (cherry picked from commit 584f3894262634596532cf43a5e782e34a0ce374) > Signed-off-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx> > --- > Notes: > - conflicts in pm_netlink.c because the new helper function expected to > be on top of mptcp_pm_nl_add_addr_doit() which has been recently > renamed in commit 1e07938e29c5 ("net: mptcp: rename netlink handlers > to mptcp_pm_nl_<blah>_{doit,dumpit}"). > - use mptcp_pm_addr_policy instead of mptcp_pm_address_nl_policy, the > new name after commit 1d0507f46843 ("net: mptcp: convert netlink from > small_ops to ops"). > --- > net/mptcp/pm_netlink.c | 24 +++++++++++++++++++----- > 1 file changed, 19 insertions(+), 5 deletions(-) Don't we also need a 5.15.y version of this commit? All of the backports you sent are now queued up, thanks! greg k-h