Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2)  * net/tipc/trace.c: TIPC tracepoints code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  * Copyright (c) 2018, Ericsson AB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * Redistribution and use in source and binary forms, with or without
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  * modification, are permitted provided that the following conditions are met:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * 1. Redistributions of source code must retain the above copyright
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  *    notice, this list of conditions and the following disclaimer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  * 2. Redistributions in binary form must reproduce the above copyright
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  *    notice, this list of conditions and the following disclaimer in the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  *    documentation and/or other materials provided with the distribution.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15)  * 3. Neither the names of the copyright holders nor the names of its
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16)  *    contributors may be used to endorse or promote products derived from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17)  *    this software without specific prior written permission.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19)  * Alternatively, this software may be distributed under the terms of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)  * GNU General Public License ("GPL") version 2 as published by the Free
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)  * Software Foundation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "ASIS"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,THE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26)  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27)  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31)  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33)  * POSSIBILITY OF SUCH DAMAGE.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) #define CREATE_TRACE_POINTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #include "trace.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40)  * socket tuples for filtering in socket traces:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41)  * (portid, sock type, name type, name lower, name upper)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) unsigned long sysctl_tipc_sk_filter[5] __read_mostly = {0, };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46)  * tipc_skb_dump - dump TIPC skb data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47)  * @skb: skb to be dumped
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48)  * @more: dump more?
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49)  *        - false: dump only tipc msg data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50)  *        - true: dump kernel-related skb data and tipc cb[] array as well
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51)  * @buf: returned buffer of dump data in format
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) int tipc_skb_dump(struct sk_buff *skb, bool more, char *buf)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	int i = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	size_t sz = (more) ? SKB_LMAX : SKB_LMIN;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	struct tipc_msg *hdr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	struct tipc_skb_cb *skbcb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	if (!skb) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 		i += scnprintf(buf, sz, "msg: (null)\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 		return i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	hdr = buf_msg(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	skbcb = TIPC_SKB_CB(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	/* tipc msg data section */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	i += scnprintf(buf, sz, "msg: %u", msg_user(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	i += scnprintf(buf + i, sz - i, " %u", msg_type(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	i += scnprintf(buf + i, sz - i, " %u", msg_hdr_sz(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	i += scnprintf(buf + i, sz - i, " %u", msg_data_sz(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	i += scnprintf(buf + i, sz - i, " %x", msg_orignode(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	i += scnprintf(buf + i, sz - i, " %x", msg_destnode(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	i += scnprintf(buf + i, sz - i, " %u", msg_seqno(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	i += scnprintf(buf + i, sz - i, " %u", msg_ack(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	i += scnprintf(buf + i, sz - i, " %u", msg_bcast_ack(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	switch (msg_user(hdr)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	case LINK_PROTOCOL:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 		i += scnprintf(buf + i, sz - i, " %c", msg_net_plane(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 		i += scnprintf(buf + i, sz - i, " %u", msg_probe(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 		i += scnprintf(buf + i, sz - i, " %u", msg_peer_stopping(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 		i += scnprintf(buf + i, sz - i, " %u", msg_session(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 		i += scnprintf(buf + i, sz - i, " %u", msg_next_sent(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 		i += scnprintf(buf + i, sz - i, " %u", msg_seq_gap(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 		i += scnprintf(buf + i, sz - i, " %u", msg_bc_snd_nxt(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 		i += scnprintf(buf + i, sz - i, " %u", msg_bc_gap(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 		break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	case TIPC_LOW_IMPORTANCE:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	case TIPC_MEDIUM_IMPORTANCE:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	case TIPC_HIGH_IMPORTANCE:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	case TIPC_CRITICAL_IMPORTANCE:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	case CONN_MANAGER:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	case SOCK_WAKEUP:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 		i += scnprintf(buf + i, sz - i, " | %u", msg_origport(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 		i += scnprintf(buf + i, sz - i, " %u", msg_destport(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 		switch (msg_type(hdr)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 		case TIPC_NAMED_MSG:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 			i += scnprintf(buf + i, sz - i, " %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 				       msg_nametype(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 			i += scnprintf(buf + i, sz - i, " %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 				       msg_nameinst(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 		case TIPC_MCAST_MSG:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 			i += scnprintf(buf + i, sz - i, " %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 				       msg_nametype(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 			i += scnprintf(buf + i, sz - i, " %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 				       msg_namelower(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 			i += scnprintf(buf + i, sz - i, " %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 				       msg_nameupper(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 		default:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 		i += scnprintf(buf + i, sz - i, " | %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 			       msg_src_droppable(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 		i += scnprintf(buf + i, sz - i, " %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 			       msg_dest_droppable(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 		i += scnprintf(buf + i, sz - i, " %u", msg_errcode(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 		i += scnprintf(buf + i, sz - i, " %u", msg_reroute_cnt(hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 		break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	default:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 		/* need more? */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 		break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	i += scnprintf(buf + i, sz - i, "\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	if (!more)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 		return i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	/* kernel-related skb data section */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	i += scnprintf(buf + i, sz - i, "skb: %s",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 		       (skb->dev) ? skb->dev->name : "n/a");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	i += scnprintf(buf + i, sz - i, " %u", skb->len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	i += scnprintf(buf + i, sz - i, " %u", skb->data_len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	i += scnprintf(buf + i, sz - i, " %u", skb->hdr_len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	i += scnprintf(buf + i, sz - i, " %u", skb->truesize);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	i += scnprintf(buf + i, sz - i, " %u", skb_cloned(skb));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	i += scnprintf(buf + i, sz - i, " %p", skb->sk);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	i += scnprintf(buf + i, sz - i, " %u", skb_shinfo(skb)->nr_frags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	i += scnprintf(buf + i, sz - i, " %llx",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 		       ktime_to_ms(skb_get_ktime(skb)));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	i += scnprintf(buf + i, sz - i, " %llx\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 		       ktime_to_ms(skb_hwtstamps(skb)->hwtstamp));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	/* tipc skb cb[] data section */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	i += scnprintf(buf + i, sz - i, "cb[]: %u", skbcb->bytes_read);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	i += scnprintf(buf + i, sz - i, " %u", skbcb->orig_member);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	i += scnprintf(buf + i, sz - i, " %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 		       jiffies_to_msecs(skbcb->nxt_retr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	i += scnprintf(buf + i, sz - i, " %u", skbcb->validated);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	i += scnprintf(buf + i, sz - i, " %u", skbcb->chain_imp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	i += scnprintf(buf + i, sz - i, " %u\n", skbcb->ackers);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	return i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)  * tipc_list_dump - dump TIPC skb list/queue
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160)  * @list: list of skbs to be dumped
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161)  * @more: dump more?
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162)  *        - false: dump only the head & tail skbs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)  *        - true: dump the first & last 5 skbs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164)  * @buf: returned buffer of dump data in format
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) int tipc_list_dump(struct sk_buff_head *list, bool more, char *buf)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	int i = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	size_t sz = (more) ? LIST_LMAX : LIST_LMIN;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	u32 count, len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	struct sk_buff *hskb, *tskb, *skb, *tmp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	if (!list) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 		i += scnprintf(buf, sz, "(null)\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 		return i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	len = skb_queue_len(list);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	i += scnprintf(buf, sz, "len = %d\n", len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	if (!len)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 		return i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	if (!more) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 		hskb = skb_peek(list);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 		i += scnprintf(buf + i, sz - i, "  head ");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 		i += tipc_skb_dump(hskb, false, buf + i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 		if (len > 1) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 			tskb = skb_peek_tail(list);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 			i += scnprintf(buf + i, sz - i, "  tail ");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 			i += tipc_skb_dump(tskb, false, buf + i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	} else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 		count = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 		skb_queue_walk_safe(list, skb, tmp) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 			count++;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 			if (count == 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 				i += scnprintf(buf + i, sz - i, "  .\n  .\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 			if (count > 5 && count <= len - 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 				continue;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 			i += scnprintf(buf + i, sz - i, "  #%d ", count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 			i += tipc_skb_dump(skb, false, buf + i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	return i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) }