Commit 401e3030 authored by Geliang Tang's avatar Geliang Tang Committed by David S. Miller

mptcp: dump csum fields in mptcp_dump_mpext

In mptcp_dump_mpext, dump the csum fields, csum and csum_reqd in struct
mptcp_dump_mpext too.
Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fc3c82ee
...@@ -73,6 +73,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, ...@@ -73,6 +73,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext,
__field(u64, data_seq) __field(u64, data_seq)
__field(u32, subflow_seq) __field(u32, subflow_seq)
__field(u16, data_len) __field(u16, data_len)
__field(u16, csum)
__field(u8, use_map) __field(u8, use_map)
__field(u8, dsn64) __field(u8, dsn64)
__field(u8, data_fin) __field(u8, data_fin)
...@@ -82,6 +83,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, ...@@ -82,6 +83,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext,
__field(u8, frozen) __field(u8, frozen)
__field(u8, reset_transient) __field(u8, reset_transient)
__field(u8, reset_reason) __field(u8, reset_reason)
__field(u8, csum_reqd)
), ),
TP_fast_assign( TP_fast_assign(
...@@ -89,6 +91,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, ...@@ -89,6 +91,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext,
__entry->data_seq = mpext->data_seq; __entry->data_seq = mpext->data_seq;
__entry->subflow_seq = mpext->subflow_seq; __entry->subflow_seq = mpext->subflow_seq;
__entry->data_len = mpext->data_len; __entry->data_len = mpext->data_len;
__entry->csum = (__force u16)mpext->csum;
__entry->use_map = mpext->use_map; __entry->use_map = mpext->use_map;
__entry->dsn64 = mpext->dsn64; __entry->dsn64 = mpext->dsn64;
__entry->data_fin = mpext->data_fin; __entry->data_fin = mpext->data_fin;
...@@ -98,16 +101,18 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, ...@@ -98,16 +101,18 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext,
__entry->frozen = mpext->frozen; __entry->frozen = mpext->frozen;
__entry->reset_transient = mpext->reset_transient; __entry->reset_transient = mpext->reset_transient;
__entry->reset_reason = mpext->reset_reason; __entry->reset_reason = mpext->reset_reason;
__entry->csum_reqd = mpext->csum_reqd;
), ),
TP_printk("data_ack=%llu data_seq=%llu subflow_seq=%u data_len=%u use_map=%u dsn64=%u data_fin=%u use_ack=%u ack64=%u mpc_map=%u frozen=%u reset_transient=%u reset_reason=%u", TP_printk("data_ack=%llu data_seq=%llu subflow_seq=%u data_len=%u csum=%x use_map=%u dsn64=%u data_fin=%u use_ack=%u ack64=%u mpc_map=%u frozen=%u reset_transient=%u reset_reason=%u csum_reqd=%u",
__entry->data_ack, __entry->data_seq, __entry->data_ack, __entry->data_seq,
__entry->subflow_seq, __entry->data_len, __entry->subflow_seq, __entry->data_len,
__entry->use_map, __entry->dsn64, __entry->csum, __entry->use_map,
__entry->data_fin, __entry->use_ack, __entry->dsn64, __entry->data_fin,
__entry->ack64, __entry->mpc_map, __entry->use_ack, __entry->ack64,
__entry->frozen, __entry->reset_transient, __entry->mpc_map, __entry->frozen,
__entry->reset_reason) __entry->reset_transient, __entry->reset_reason,
__entry->csum_reqd)
); );
DEFINE_EVENT(mptcp_dump_mpext, get_mapping_status, DEFINE_EVENT(mptcp_dump_mpext, get_mapping_status,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment