qcacmn: Cleanup cdp_fc_get_tx_resource [PEER_ID_PHASE1]
Cleanup cdp_fc_get_tx_resource to be peer mac address based from local peer id based. Change-Id: I241377c75f09e9f0e177a167905cd9461ffcd088 CRs-Fixed: 2508146
This commit is contained in:

committed by
nshrivas

parent
ad85368f00
commit
8a0b6e961c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. 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
|
||||
@@ -166,7 +166,8 @@ cdp_fc_deregister(ol_txrx_soc_handle soc, uint8_t vdev_id)
|
||||
/**
|
||||
* cdp_fc_get_tx_resource() - get data path resource count
|
||||
* @soc - data path soc handle
|
||||
* @sta_id - local peer id
|
||||
* @pdev - datapath pdev instance
|
||||
* @peer_addr - peer mac address
|
||||
* @low_watermark - low resource threshold
|
||||
* @high_watermark_offset - high resource threshold
|
||||
*
|
||||
@@ -176,8 +177,10 @@ cdp_fc_deregister(ol_txrx_soc_handle soc, uint8_t vdev_id)
|
||||
* false resource is not avaialbe
|
||||
*/
|
||||
static inline bool
|
||||
cdp_fc_get_tx_resource(ol_txrx_soc_handle soc, uint8_t sta_id,
|
||||
unsigned int low_watermark, unsigned int high_watermark_offset)
|
||||
cdp_fc_get_tx_resource(ol_txrx_soc_handle soc, struct cdp_pdev *pdev,
|
||||
struct qdf_mac_addr peer_addr,
|
||||
unsigned int low_watermark,
|
||||
unsigned int high_watermark_offset)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||
@@ -190,7 +193,7 @@ cdp_fc_get_tx_resource(ol_txrx_soc_handle soc, uint8_t sta_id,
|
||||
!soc->ops->l_flowctl_ops->get_tx_resource)
|
||||
return false;
|
||||
|
||||
return soc->ops->l_flowctl_ops->get_tx_resource(sta_id,
|
||||
return soc->ops->l_flowctl_ops->get_tx_resource(pdev, peer_addr,
|
||||
low_watermark, high_watermark_offset);
|
||||
}
|
||||
|
||||
|
@@ -1268,7 +1268,8 @@ struct cdp_lflowctl_ops {
|
||||
#endif /* QCA_HL_NETDEV_FLOW_CONTROL */
|
||||
int (*deregister_tx_flow_control_cb)(uint8_t vdev_id);
|
||||
void (*flow_control_cb)(struct cdp_vdev *vdev, bool tx_resume);
|
||||
bool (*get_tx_resource)(uint8_t sta_id,
|
||||
bool (*get_tx_resource)(struct cdp_pdev *pdev,
|
||||
struct qdf_mac_addr peer_addr,
|
||||
unsigned int low_watermark,
|
||||
unsigned int high_watermark_offset);
|
||||
int (*ll_set_tx_pause_q_depth)(uint8_t vdev_id, int pause_q_depth);
|
||||
|
Reference in New Issue
Block a user