qcacmn: Enhance txrx_stats interface to accept multiple args

1. Enhance CDP and DP txrx_stats interface to accept multiple
   args. these agruments are passed to htt without any
   interpretation.
2. Add reset stats support

Change-Id: I65db494824d03097e20dffc828bea380b16d411f
CRs-Fixed: 2136793
这个提交包含在:
Om Prakash Tripathi
2017-08-23 22:51:28 +05:30
提交者 snandini
父节点 d9bf209f70
当前提交 03efb6a7b6
修改 4 个文件,包含 87 行新增10 行删除

查看文件

@@ -865,6 +865,7 @@ static inline void cdp_flush_cache_rx_queue(ol_txrx_soc_handle soc)
/**
* cdp_txrx_stats(): function to map to host and firmware statistics
* Deprecated, use cdp_txrx_stats_request() instead.
* @soc: soc handle
* @vdev: virtual device
* @stats: statistics option
@@ -889,6 +890,31 @@ int cdp_txrx_stats(ol_txrx_soc_handle soc, struct cdp_vdev *vdev,
return soc->ops->cmn_drv_ops->txrx_stats(vdev, stats);
}
/**
* cdp_txrx_stats_request(): function to map to host and firmware statistics
* @soc: soc handle
* @vdev: virtual device
* @req: stats request container
*
* return: status
*/
static inline
int cdp_txrx_stats_request(ol_txrx_soc_handle soc, struct cdp_vdev *vdev,
struct cdp_txrx_stats_req *req)
{
if (!soc || !soc->ops || !soc->ops->cmn_drv_ops || !req) {
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
"%s: Invalid Instance:", __func__);
QDF_ASSERT(0);
return 0;
}
if (soc->ops->cmn_drv_ops->txrx_stats_request)
return soc->ops->cmn_drv_ops->txrx_stats_request(vdev, req);
return 0;
}
/**
* cdp_txrx_intr_attach(): function to attach and configure interrupt
* @soc: soc handle