qcacmn: Assign lmac id on tx packet enqueue
On napier AX, HK2.0 ast search is tied to lmac_id. This ast search feature is added to support DBDC repeater usecase. Assign lmac id 3 to search by default on all macs until more formal per pdev changes are made. This enables 2g. Change-Id: Ia06d9243bddd3f4943426d6b0de3f452a252d819 CRs-fixed: 2198431
Esse commit está contido em:

commit de
nshrivas

pai
cfcb8b4de0
commit
56c28c0cd1
@@ -843,6 +843,8 @@ static QDF_STATUS dp_tx_hw_enqueue(struct dp_soc *soc, struct dp_vdev *vdev,
|
|||||||
hal_tx_desc_set_buf_length(hal_tx_desc_cached, length);
|
hal_tx_desc_set_buf_length(hal_tx_desc_cached, length);
|
||||||
hal_tx_desc_set_buf_offset(hal_tx_desc_cached, tx_desc->pkt_offset);
|
hal_tx_desc_set_buf_offset(hal_tx_desc_cached, tx_desc->pkt_offset);
|
||||||
hal_tx_desc_set_encap_type(hal_tx_desc_cached, tx_desc->tx_encap_type);
|
hal_tx_desc_set_encap_type(hal_tx_desc_cached, tx_desc->tx_encap_type);
|
||||||
|
hal_tx_desc_set_lmac_id(hal_tx_desc_cached,
|
||||||
|
HAL_TX_DESC_DEFAULT_LMAC_ID);
|
||||||
hal_tx_desc_set_dscp_tid_table_id(hal_tx_desc_cached,
|
hal_tx_desc_set_dscp_tid_table_id(hal_tx_desc_cached,
|
||||||
vdev->dscp_tid_map_id);
|
vdev->dscp_tid_map_id);
|
||||||
hal_tx_desc_set_encrypt_type(hal_tx_desc_cached,
|
hal_tx_desc_set_encrypt_type(hal_tx_desc_cached,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -114,6 +114,7 @@ do { \
|
|||||||
|
|
||||||
#define HAL_TX_DESC_ADDRX_EN 0x1
|
#define HAL_TX_DESC_ADDRX_EN 0x1
|
||||||
#define HAL_TX_DESC_ADDRY_EN 0x2
|
#define HAL_TX_DESC_ADDRY_EN 0x2
|
||||||
|
#define HAL_TX_DESC_DEFAULT_LMAC_ID 0x3
|
||||||
|
|
||||||
enum hal_tx_ret_buf_manager {
|
enum hal_tx_ret_buf_manager {
|
||||||
HAL_WBM_SW0_BM_ID = 3,
|
HAL_WBM_SW0_BM_ID = 3,
|
||||||
@@ -515,6 +516,30 @@ static inline void hal_tx_desc_set_hlos_tid(void *desc,
|
|||||||
HAL_TX_SM(TCL_DATA_CMD_4, HLOS_TID_OVERWRITE, 1);
|
HAL_TX_SM(TCL_DATA_CMD_4, HLOS_TID_OVERWRITE, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef QCA_WIFI_QCA6290_11AX
|
||||||
|
/**
|
||||||
|
* hal_tx_desc_set_lmac_id - Set the lmac_id value
|
||||||
|
* @desc: Handle to Tx Descriptor
|
||||||
|
* @lmac_id: mac Id to ast matching
|
||||||
|
* b00 – mac 0
|
||||||
|
* b01 – mac 1
|
||||||
|
* b10 – mac 2
|
||||||
|
* b11 – all macs (legacy HK way)
|
||||||
|
*
|
||||||
|
* Return: void
|
||||||
|
*/
|
||||||
|
static inline void hal_tx_desc_set_lmac_id(void *desc,
|
||||||
|
uint8_t lmac_id)
|
||||||
|
{
|
||||||
|
HAL_SET_FLD(desc, TCL_DATA_CMD_4, LMAC_ID) |=
|
||||||
|
HAL_TX_SM(TCL_DATA_CMD_4, LMAC_ID, lmac_id);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline void hal_tx_desc_set_lmac_id(void *desc,
|
||||||
|
uint8_t lmac_id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* hal_tx_desc_sync - Commit the descriptor to Hardware
|
* hal_tx_desc_sync - Commit the descriptor to Hardware
|
||||||
* @hal_tx_des_cached: Cached descriptor that software maintains
|
* @hal_tx_des_cached: Cached descriptor that software maintains
|
||||||
|
Referência em uma nova issue
Block a user