• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Header file for DHD TPA (Traffic Pattern Analyzer)
3  *
4  * Provides type definitions and function prototypes to call into
5  * DHD's QOS on Socket Flow module.
6  *
7  * Copyright (C) 2020, Broadcom.
8  *
9  *      Unless you and Broadcom execute a separate written software license
10  * agreement governing use of this software, this software is licensed to you
11  * under the terms of the GNU General Public License version 2 (the "GPL"),
12  * available at http://www.broadcom.com/licenses/GPLv2.php, with the
13  * following added to such license:
14  *
15  *      As a special exception, the copyright holders of this software give you
16  * permission to link this software with independent modules, and to copy and
17  * distribute the resulting executable under terms of your choice, provided that
18  * you also meet, for each linked independent module, the terms and conditions of
19  * the license of that module.  An independent module is a module which is not
20  * derived from this software.  The special exception does not apply to any
21  * modifications of the software.
22  *
23  *
24  * <<Broadcom-WL-IPTag/Open:>>
25  *
26  * $Id$
27  *
28  */
29 
30 #ifndef _DHD_LINUX_TPA_H_
31 #define _DHD_LINUX_TPA_H_
32 
33 struct dhd_sock_flow_info;
34 /* Feature Disabled dummy implementations */
35 
dhd_init_sock_flows_buf(dhd_info_t * dhd,uint watchdog_ms)36 inline int dhd_init_sock_flows_buf(dhd_info_t *dhd, uint watchdog_ms)
37 {
38 		BCM_REFERENCE(dhd);
39 		return BCME_UNSUPPORTED;
40 }
41 
dhd_deinit_sock_flows_buf(dhd_info_t * dhd)42 inline int dhd_deinit_sock_flows_buf(dhd_info_t *dhd)
43 {
44 		BCM_REFERENCE(dhd);
45 		return BCME_UNSUPPORTED;
46 }
47 
dhd_update_sock_flows(dhd_info_t * dhd,struct sk_buff * skb)48 inline void dhd_update_sock_flows(dhd_info_t *dhd, struct sk_buff *skb)
49 {
50 		BCM_REFERENCE(dhd);
51 		BCM_REFERENCE(skb);
52 		return;
53 }
54 
dhd_analyze_sock_flows(dhd_info_t * dhd,uint32 watchdog_ms)55 inline void dhd_analyze_sock_flows(dhd_info_t *dhd, uint32 watchdog_ms)
56 {
57 	BCM_REFERENCE(dhd);
58 	BCM_REFERENCE(dhd_watchdog_ms);
59 	return;
60 }
61 
dhd_sock_qos_update_bus_flowid(dhd_info_t * dhd,void * pktbuf,uint32 bus_flow_id)62 inline void dhd_sock_qos_update_bus_flowid(dhd_info_t *dhd, void *pktbuf,
63 	uint32 bus_flow_id)
64 {
65 	BCM_REFERENCE(dhd);
66 	BCM_REFERENCE(pktbuf);
67 	BCM_REFERENCE(bus_flow_id);
68 }
69 #endif /* _DHD_LINUX_TPA_H_ */
70