Search Linux Wireless

[RFC v1 211/256] cl8k: add tx/sw_txhdr.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Viktor Barna <viktor.barna@xxxxxxxxxx>

(Part of the split. Please, take a look at the cover letter for more
details).

Signed-off-by: Viktor Barna <viktor.barna@xxxxxxxxxx>
---
 .../net/wireless/celeno/cl8k/tx/sw_txhdr.h    | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 drivers/net/wireless/celeno/cl8k/tx/sw_txhdr.h

diff --git a/drivers/net/wireless/celeno/cl8k/tx/sw_txhdr.h b/drivers/net/wireless/celeno/cl8k/tx/sw_txhdr.h
new file mode 100644
index 000000000000..3374439b0de4
--- /dev/null
+++ b/drivers/net/wireless/celeno/cl8k/tx/sw_txhdr.h
@@ -0,0 +1,45 @@
+/* SPDX-License-Identifier: MIT */
+/* Copyright(c) 2019-2021, Celeno Communications Ltd. */
+
+#ifndef CL_SW_TXHDR_H
+#define CL_SW_TXHDR_H
+
+#include "utils/utils.h"
+#include "tx/tx_amsdu.h"
+
+struct cl_sw_txhdr {
+       struct list_head list_pool;
+       struct list_head tx_queue_list;
+       struct list_head cfm_list;
+       struct ieee80211_hdr *hdr80211;
+       struct cl_tx_queue *tx_queue;
+       struct cl_sta *cl_sta;
+       struct cl_vif *cl_vif;
+       struct cl_amsdu_txhdr amsdu_txhdr;
+       u8 hw_queue            : 3,
+          is_bcn              : 1,
+          tid                 : 4;
+       u8 ac                  : 2,
+          is_sw_amsdu         : 1,
+          sw_amsdu_packet_cnt : 4,
+          rsv                 : 1;
+       /*
+        * singles queue index used to push the txdesc to the ipc layer
+        * this issue solve race condition in which we
+        * CFM of packet that associated with disconnected STA and has invalid
+        * cl_sta pointerinside this struct
+        */
+       u8 sta_idx;
+       __le16 fc;
+       struct sk_buff *skb;
+       struct txdesc txdesc;
+       size_t map_len;
+       u16 total_pkt_len;
+};
+
+int cl_sw_txhdr_init(struct cl_hw *cl_hw);
+void cl_sw_txhdr_deinit(struct cl_hw *cl_hw);
+struct cl_sw_txhdr *cl_sw_txhdr_alloc(struct cl_hw *cl_hw);
+void cl_sw_txhdr_free(struct cl_hw *cl_hw, struct cl_sw_txhdr *sw_txhdr);
+
+#endif /* CL_SW_TXHDR_H */
--
2.30.0

________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any retransmission, dissemination, copying or other use of, or taking of any action in reliance upon this information is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Nothing contained herein shall be deemed as a representation, warranty or a commitment by Celeno. No warranties are expressed or implied, including, but not limited to, any implied warranties of non-infringement, merchantability and fitness for a particular purpose.
________________________________





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux