qcacmn: Remove SCS database from dp_peer structure

Set function pointer for SCS peer lookup and rule handler.

Add a new module id for SCS.

SCS database maintained in dp_peer structure is redundant as
same info is maintained in control peer. Therefore remove
SCS database from dp_peer structure and also remove APIs
which access/update this database.

Change-Id: I951f12de487a4be3ae169d1e309352e4e5031fc9
CRs-Fixed: 3226693
This commit is contained in:
Harsh Kumar Bijlani
2022-06-20 22:30:01 +05:30
committed by Madan Koyyalamudi
parent ad57ba6d68
commit 81d963fc50
7 changed files with 22 additions and 309 deletions

View File

@@ -524,74 +524,6 @@ struct cdp_rx_mic_err_info {
uint16_t vdev_id;
};
#ifdef WLAN_SUPPORT_SCS
/* SCS Procedure data structures
*/
#define IEEE80211_SCS_MAX_SIZE 10
#define IEEE80211_IPV4_LEN 4
#define IEEE80211_IPV6_LEN 16
struct cdp_tclas_tuple_ipv4 {
u_int8_t version;
uint8_t src_ip[IEEE80211_IPV4_LEN];
uint8_t dst_ip[IEEE80211_IPV4_LEN];
u_int16_t src_port;
u_int16_t dst_port;
u_int8_t dscp;
u_int8_t protocol;
u_int8_t reserved;
} __packed;
struct cdp_tclas_tuple_ipv6 {
u_int8_t version;
u_int8_t src_ip[IEEE80211_IPV6_LEN];
u_int8_t dst_ip[IEEE80211_IPV6_LEN];
u_int16_t src_port;
u_int16_t dst_port;
u_int8_t type4_dscp;
u_int8_t next_header;
u_int8_t flow_label[3];
} __packed;
struct cdp_tclas_tuple_ipsec {
u_int8_t protocol_number;
u_int8_t protocol_instance;
u_int8_t filter_len;
u_int8_t *filter_mask;
u_int8_t *filter_val;
} __packed;
struct cdp_tclas_tuple {
uint8_t type;
uint8_t mask;
union {
union {
struct cdp_tclas_tuple_ipv4 v4;
struct cdp_tclas_tuple_ipv6 v6;
} type4;
struct cdp_tclas_tuple_ipsec ips;
} tclas;
} __packed;
/**
* struct cdp_scs_params - SCS parameters
* obtained from handshake
* @scsid - SCS ID
* @access_priority - User Access Priority
* containing tid value.
* @tclas_elements - Number of TCLAS elements
* @tclas - TCLAS tuple parameters
* @tclas_processing - TCLAS processing value
*/
struct cdp_scs_params {
uint8_t scsid;
uint8_t access_priority;
uint8_t tclas_elements;
struct cdp_tclas_tuple tclas[IEEE80211_SCS_MAX_SIZE];
uint8_t tclas_process;
};
#endif
#ifdef WLAN_SUPPORT_MSCS
/**
* struct cdp_mscs_params - MSCS parameters obtained