qcacmn: avoid vdev stats aggregate for every ppdu stats event

Avoid vdev aggregate stats for every ppdu stats event as it is
consuming high CPU in veriwave max clients testcase. Instead
aggregate the stats when ifconfig athX command is issued. Add
CDP API to aggregate and update stats called when needed

Change-Id: I801d5f8fab0c275942b77a9975293f95bd4026b0
CRs-Fixed: 2220704
This commit is contained in:
Chaithanya Garrepalli
2018-04-09 12:34:20 +05:30
committed by nshrivas
szülő 46ffb86105
commit 2faa46fbfb
5 fájl változott, egészen pontosan 54 új sor hozzáadva és 11 régi sor törölve

Fájl megtekintése

@@ -1498,17 +1498,18 @@ void cdp_vdev_tx_unlock(ol_txrx_soc_handle soc,
/**
* cdp_ath_getstats() - get updated athstats
* @soc: opaque soc handle
* @pdev: data path pdev handle
* @net_device_stats: interface stats
* @rtnl_link_stats64: device statistics structure
* @dev: dp interface handle
* @stats: cdp network device stats structure
* @type: device type pdev/vdev
*
* Return: void
*/
static inline void cdp_ath_getstats(ol_txrx_soc_handle soc,
struct cdp_pdev *pdev, struct cdp_dev_stats *stats)
void *dev, struct cdp_dev_stats *stats,
uint8_t type)
{
if (soc && soc->ops && soc->ops->cmn_drv_ops->txrx_ath_getstats)
soc->ops->cmn_drv_ops->txrx_ath_getstats(pdev, stats);
soc->ops->cmn_drv_ops->txrx_ath_getstats(dev, stats, type);
}
/**