소스 검색

qcacmn: Change flow_idx_invalid to flow_idx_valid

Change flow idx invalid to flow_idx_valid.
This change is made so that flows for which this field is not present
are identified as invalid flows and not forwarded to PPE.

Change-Id: I92c82bb0ef57012b2b884fe3fd18344b523a3f51
CRs-Fixed: 3390588
Nandha Kishore Easwaran 2 년 전
부모
커밋
96c2363f18
4개의 변경된 파일18개의 추가작업 그리고 18개의 파일을 삭제
  1. 2 2
      dp/wifi3.0/be/dp_be_rx.c
  2. 7 7
      qdf/inc/i_qdf_nbuf_api_w.h
  3. 2 2
      qdf/linux/src/i_qdf_nbuf.h
  4. 7 7
      qdf/linux/src/i_qdf_nbuf_w.h

+ 2 - 2
dp/wifi3.0/be/dp_be_rx.c

@@ -45,8 +45,8 @@
 static inline void
 dp_rx_update_flow_info(qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr)
 {
-	qdf_nbuf_set_rx_flow_idx_invalid(nbuf,
-				 hal_rx_msdu_flow_idx_invalid_be(rx_tlv_hdr));
+	qdf_nbuf_set_rx_flow_idx_valid(nbuf,
+				 !hal_rx_msdu_flow_idx_invalid_be(rx_tlv_hdr));
 	qdf_nbuf_set_rx_flow_idx_timeout(nbuf,
 				 hal_rx_msdu_flow_idx_timeout_be(rx_tlv_hdr));
 }

+ 7 - 7
qdf/inc/i_qdf_nbuf_api_w.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2014-2017,2019-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -112,26 +112,26 @@ static inline uint16_t qdf_nbuf_get_rx_flow_tag(qdf_nbuf_t buf)
 }
 
 /**
- * qdf_nbuf_set_rx_flow_idx_invalid() - set given value in flow idx invalid
+ * qdf_nbuf_set_rx_flow_idx_valid() - set given value in flow idx valid
  * of buf(skb->cb)
  * @buf: Network buffer
  * @val: Value of Rx flow tag to be set in the nbuf
  * Return: None
  */
-static inline void qdf_nbuf_set_rx_flow_idx_invalid(qdf_nbuf_t buf, uint8_t val)
+static inline void qdf_nbuf_set_rx_flow_idx_valid(qdf_nbuf_t buf, uint8_t val)
 {
-	__qdf_nbuf_set_rx_flow_idx_invalid(buf, val);
+	__qdf_nbuf_set_rx_flow_idx_valid(buf, val);
 }
 
 /**
- * qdf_nbuf_get_rx_flow_idx_invalid() - Get the value of flow_idx_invalid
+ * qdf_nbuf_get_rx_flow_idx_valid() - Get the value of flow_idx_valid
  * field of buf(skb->cb)
  * @buf: Network buffer
  * Return: Value of the Rx flow tag in the nbuf
  */
-static inline uint8_t qdf_nbuf_get_rx_flow_idx_invalid(qdf_nbuf_t buf)
+static inline uint8_t qdf_nbuf_get_rx_flow_idx_valid(qdf_nbuf_t buf)
 {
-	return __qdf_nbuf_get_rx_flow_idx_invalid(buf);
+	return __qdf_nbuf_get_rx_flow_idx_valid(buf);
 }
 
 /**

+ 2 - 2
qdf/linux/src/i_qdf_nbuf.h

@@ -147,7 +147,7 @@ typedef union {
  * @rx.dev.priv_cb_w.peer_id: peer_id for RX packet
  * @rx.dev.priv_cb_w.flag_intra_bss: flag to indicate this is intra bss packet
  * @rx.dev.priv_cb_w.protocol_tag: protocol tag set by app for rcvd packet type
- * @rx.dev.priv_cb_w.flow_idx_invalid: flow entry is not found
+ * @rx.dev.priv_cb_w.flow_idx_valid: flow entry is found
  * @rx.dev.priv_cb_w.flow_idx_timeout: flow entry search timed out
  * @rx.dev.priv_cb_w.rsvd: rerserved bits
  * @rx.dev.priv_cb_w.flow_tag: flow tag set by application for 5 tuples rcvd
@@ -268,7 +268,7 @@ struct qdf_nbuf_cb {
 						 ipa_smmu_map : 1;
 					uint16_t peer_id;
 					uint8_t protocol_tag;
-					uint8_t flow_idx_invalid: 1,
+					uint8_t flow_idx_valid: 1,
 						flow_idx_timeout: 1,
 						rsvd:6;
 					uint16_t flow_tag;

+ 7 - 7
qdf/linux/src/i_qdf_nbuf_w.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -102,15 +102,15 @@
 #define __qdf_nbuf_get_rx_flow_tag(skb) \
 		(QDF_NBUF_CB_RX_FLOW_TAG((skb)))
 
-#define QDF_NBUF_CB_RX_FLOW_IDX_INVALID(skb) \
+#define QDF_NBUF_CB_RX_FLOW_IDX_VALID(skb) \
 		(((struct qdf_nbuf_cb *) \
-		((skb)->cb))->u.rx.dev.priv_cb_w.flow_idx_invalid)
+		((skb)->cb))->u.rx.dev.priv_cb_w.flow_idx_valid)
 
-#define __qdf_nbuf_set_rx_flow_idx_invalid(skb, val) \
-		((QDF_NBUF_CB_RX_FLOW_IDX_INVALID((skb))) = val)
+#define __qdf_nbuf_set_rx_flow_idx_valid(skb, val) \
+		((QDF_NBUF_CB_RX_FLOW_IDX_VALID((skb))) = val)
 
-#define __qdf_nbuf_get_rx_flow_idx_invalid(skb) \
-		(QDF_NBUF_CB_RX_FLOW_IDX_INVALID((skb)))
+#define __qdf_nbuf_get_rx_flow_idx_valid(skb) \
+		(QDF_NBUF_CB_RX_FLOW_IDX_VALID((skb)))
 
 #define QDF_NBUF_CB_RX_FLOW_IDX_TIMEOUT(skb) \
 		(((struct qdf_nbuf_cb *) \