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) /* SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2019 Facebook
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * This program is free software; you can redistribute it and/or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * modify it under the terms of version 2 of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * License as published by the Free Software Foundation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Include file for Host Bandwidth Management (HBM) programs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct hbm_vqueue {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	struct bpf_spin_lock lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	/* 4 byte hole */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	unsigned long long lasttime;	/* In ns */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	int credit;			/* In bytes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	unsigned int rate;		/* In bytes per NS << 20 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct hbm_queue_stats {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	unsigned long rate;		/* in Mbps*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	unsigned long stats:1,		/* get HBM stats (marked, dropped,..) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 		loopback:1,		/* also limit flows using loopback */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 		no_cn:1;		/* do not use cn flags */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	unsigned long long pkts_marked;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	unsigned long long bytes_marked;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	unsigned long long pkts_dropped;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	unsigned long long bytes_dropped;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	unsigned long long pkts_total;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	unsigned long long bytes_total;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	unsigned long long firstPacketTime;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	unsigned long long lastPacketTime;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	unsigned long long pkts_ecn_ce;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	unsigned long long returnValCount[4];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	unsigned long long sum_cwnd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	unsigned long long sum_rtt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	unsigned long long sum_cwnd_cnt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	long long sum_credit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) };