mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
mptcp: add tracepoint in get_mapping_status
This patch added a tracepoint in the mapping status function get_mapping_status() to dump every mpext field. Suggested-by: Paolo Abeni <pabeni@redhat.com> Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e10a989209
commit
0918e34b85
2 changed files with 55 additions and 3 deletions
|
@ -25,6 +25,8 @@
|
|||
#include "protocol.h"
|
||||
#include "mib.h"
|
||||
|
||||
#include <trace/events/mptcp.h>
|
||||
|
||||
static void mptcp_subflow_ops_undo_override(struct sock *ssk);
|
||||
|
||||
static void SUBFLOW_REQ_INC_STATS(struct request_sock *req,
|
||||
|
@ -862,9 +864,7 @@ static enum mapping_status get_mapping_status(struct sock *ssk,
|
|||
goto validate_seq;
|
||||
}
|
||||
|
||||
pr_debug("seq=%llu is64=%d ssn=%u data_len=%u data_fin=%d",
|
||||
mpext->data_seq, mpext->dsn64, mpext->subflow_seq,
|
||||
mpext->data_len, mpext->data_fin);
|
||||
trace_get_mapping_status(mpext);
|
||||
|
||||
data_len = mpext->data_len;
|
||||
if (data_len == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue