Skip to content

Commit 8f867d5

Browse files
matttbeintel-lab-lkp
authored andcommitted
mptcp: pm: remove '_nl' from mptcp_pm_nl_rm_addr_or_subflow
Currently, in-kernel PM specific helpers are prefixed with 'mptcp_pm_nl_'. But here 'mptcp_pm_nl_rm_addr_or_subflow' and 'mptcp_pm_nl_rm_addr_received' are not specific to this PM: the latter is called from the PM worker, and used by both the in-kernel and userspace PMs. To avoid confusions, the '_nl' bit has been removed from the name. No behavioural changes intended. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent e06f8ed commit 8f867d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

net/mptcp/pm_netlink.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -838,9 +838,9 @@ int mptcp_pm_mp_prio_send_ack(struct mptcp_sock *msk,
838838
return -EINVAL;
839839
}
840840

841-
static void mptcp_pm_nl_rm_addr_or_subflow(struct mptcp_sock *msk,
842-
const struct mptcp_rm_list *rm_list,
843-
enum linux_mptcp_mib_field rm_type)
841+
static void mptcp_pm_rm_addr_or_subflow(struct mptcp_sock *msk,
842+
const struct mptcp_rm_list *rm_list,
843+
enum linux_mptcp_mib_field rm_type)
844844
{
845845
struct mptcp_subflow_context *subflow, *tmp;
846846
struct sock *sk = (struct sock *)msk;
@@ -913,15 +913,15 @@ static void mptcp_pm_nl_rm_addr_or_subflow(struct mptcp_sock *msk,
913913
}
914914
}
915915

916-
static void mptcp_pm_nl_rm_addr_received(struct mptcp_sock *msk)
916+
static void mptcp_pm_rm_addr_recv(struct mptcp_sock *msk)
917917
{
918-
mptcp_pm_nl_rm_addr_or_subflow(msk, &msk->pm.rm_list_rx, MPTCP_MIB_RMADDR);
918+
mptcp_pm_rm_addr_or_subflow(msk, &msk->pm.rm_list_rx, MPTCP_MIB_RMADDR);
919919
}
920920

921921
static void mptcp_pm_nl_rm_subflow_received(struct mptcp_sock *msk,
922922
const struct mptcp_rm_list *rm_list)
923923
{
924-
mptcp_pm_nl_rm_addr_or_subflow(msk, rm_list, MPTCP_MIB_RMSUBFLOW);
924+
mptcp_pm_rm_addr_or_subflow(msk, rm_list, MPTCP_MIB_RMSUBFLOW);
925925
}
926926

927927
void mptcp_pm_worker(struct mptcp_sock *msk)
@@ -946,7 +946,7 @@ void mptcp_pm_worker(struct mptcp_sock *msk)
946946
}
947947
if (pm->status & BIT(MPTCP_PM_RM_ADDR_RECEIVED)) {
948948
pm->status &= ~BIT(MPTCP_PM_RM_ADDR_RECEIVED);
949-
mptcp_pm_nl_rm_addr_received(msk);
949+
mptcp_pm_rm_addr_recv(msk);
950950
}
951951
if (pm->status & BIT(MPTCP_PM_ESTABLISHED)) {
952952
pm->status &= ~BIT(MPTCP_PM_ESTABLISHED);

0 commit comments

Comments
 (0)