Skip to content

Commit d2d21f1

Browse files
geliangtangdavem330
authored andcommitted
mptcp: update MIB_RMSUBFLOW in cmd_sf_destroy
This patch increases MPTCP_MIB_RMSUBFLOW mib counter in userspace pm destroy subflow function mptcp_nl_cmd_sf_destroy() when removing subflow. Fixes: 702c2f6 ("mptcp: netlink: allow userspace-driven subflow establishment") Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 843b5e7 commit d2d21f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/mptcp/pm_userspace.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include "protocol.h"
8+
#include "mib.h"
89

910
void mptcp_free_local_addr_list(struct mptcp_sock *msk)
1011
{
@@ -410,6 +411,7 @@ int mptcp_nl_cmd_sf_destroy(struct sk_buff *skb, struct genl_info *info)
410411

411412
mptcp_subflow_shutdown(sk, ssk, RCV_SHUTDOWN | SEND_SHUTDOWN);
412413
mptcp_close_ssk(sk, ssk, subflow);
414+
MPTCP_INC_STATS(sock_net(sk), MPTCP_MIB_RMSUBFLOW);
413415
err = 0;
414416
} else {
415417
err = -ESRCH;

0 commit comments

Comments
 (0)