Skip to content

Commit e06f8ed

Browse files
matttbeintel-lab-lkp
authored andcommitted
mptcp: pm: remove '_nl' from mptcp_pm_nl_work
Currently, in-kernel PM specific helpers are prefixed with 'mptcp_pm_nl_'. But here 'mptcp_pm_nl_work' is not specific to this PM: it is called from the core to call helpers, some of them needed by both the in-kernel and userspace PMs. To avoid confusions, the '_nl' bit has been removed from the name. Also used 'worker' instead of 'work', similar to protocol.c's worker. No behavioural changes intended. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent fa4515b commit e06f8ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

net/mptcp/pm_netlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ static void mptcp_pm_nl_rm_subflow_received(struct mptcp_sock *msk,
924924
mptcp_pm_nl_rm_addr_or_subflow(msk, rm_list, MPTCP_MIB_RMSUBFLOW);
925925
}
926926

927-
void mptcp_pm_nl_work(struct mptcp_sock *msk)
927+
void mptcp_pm_worker(struct mptcp_sock *msk)
928928
{
929929
struct mptcp_pm_data *pm = &msk->pm;
930930

net/mptcp/protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2681,7 +2681,7 @@ static void mptcp_worker(struct work_struct *work)
26812681

26822682
mptcp_check_fastclose(msk);
26832683

2684-
mptcp_pm_nl_work(msk);
2684+
mptcp_pm_worker(msk);
26852685

26862686
mptcp_check_send_data_fin(sk);
26872687
mptcp_check_data_fin_ack(sk);

net/mptcp/protocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ static inline u8 subflow_get_local_id(const struct mptcp_subflow_context *subflo
11521152
}
11531153

11541154
void __init mptcp_pm_nl_init(void);
1155-
void mptcp_pm_nl_work(struct mptcp_sock *msk);
1155+
void mptcp_pm_worker(struct mptcp_sock *msk);
11561156
unsigned int mptcp_pm_get_add_addr_signal_max(const struct mptcp_sock *msk);
11571157
unsigned int mptcp_pm_get_add_addr_accept_max(const struct mptcp_sock *msk);
11581158
unsigned int mptcp_pm_get_subflows_max(const struct mptcp_sock *msk);

0 commit comments

Comments
 (0)