Skip to content

Commit 104125b

Browse files
geliangtangdavem330
authored andcommitted
mptcp: add mib for infinite map sending
This patch adds a new mib named MPTCP_MIB_INFINITEMAPTX, increase it when a infinite mapping has been sent out. Signed-off-by: Geliang Tang <geliang.tang@suse.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f8d4bca commit 104125b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

net/mptcp/mib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ static const struct snmp_mib mptcp_snmp_list[] = {
2424
SNMP_MIB_ITEM("MPJoinAckRx", MPTCP_MIB_JOINACKRX),
2525
SNMP_MIB_ITEM("MPJoinAckHMacFailure", MPTCP_MIB_JOINACKMAC),
2626
SNMP_MIB_ITEM("DSSNotMatching", MPTCP_MIB_DSSNOMATCH),
27+
SNMP_MIB_ITEM("InfiniteMapTx", MPTCP_MIB_INFINITEMAPTX),
2728
SNMP_MIB_ITEM("InfiniteMapRx", MPTCP_MIB_INFINITEMAPRX),
2829
SNMP_MIB_ITEM("DSSNoMatchTCP", MPTCP_MIB_DSSTCPMISMATCH),
2930
SNMP_MIB_ITEM("DataCsumErr", MPTCP_MIB_DATACSUMERR),

net/mptcp/mib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ enum linux_mptcp_mib_field {
1717
MPTCP_MIB_JOINACKRX, /* Received an ACK + MP_JOIN */
1818
MPTCP_MIB_JOINACKMAC, /* HMAC was wrong on ACK + MP_JOIN */
1919
MPTCP_MIB_DSSNOMATCH, /* Received a new mapping that did not match the previous one */
20+
MPTCP_MIB_INFINITEMAPTX, /* Sent an infinite mapping */
2021
MPTCP_MIB_INFINITEMAPRX, /* Received an infinite mapping */
2122
MPTCP_MIB_DSSTCPMISMATCH, /* DSS-mapping did not map with TCP's sequence numbers */
2223
MPTCP_MIB_DATACSUMERR, /* The data checksum fail */

net/mptcp/protocol.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,7 @@ static void mptcp_update_infinite_map(struct mptcp_sock *msk,
12391239
mpext->infinite_map = 1;
12401240
mpext->data_len = 0;
12411241

1242+
MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_INFINITEMAPTX);
12421243
mptcp_subflow_ctx(ssk)->send_infinite_map = 0;
12431244
pr_fallback(msk);
12441245
__mptcp_do_fallback(msk);

0 commit comments

Comments
 (0)