qcacmn: Update netdevice stats to reflect ifconfig counters

netdevice_stats structure tx/rx/drop/error counters are assigned
proper values

Change-Id: I8e123a810a02292339a34b54bfebe3a56ae99dbd
This commit is contained in:
Anish Nataraj
2018-03-14 14:27:13 +05:30
committed by nshrivas
parent 0573462cb2
commit f12b0a3463
4 changed files with 48 additions and 13 deletions

View File

@@ -138,11 +138,7 @@ struct cdp_cmn_ops {
void (*txrx_vdev_tx_unlock)(struct cdp_vdev *vdev);
void (*txrx_ath_getstats)(struct cdp_pdev *pdev,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
struct rtnl_link_stats64 *stats);
#else
struct net_device_stats *stats);
#endif
struct cdp_dev_stats *stats);
void (*txrx_set_gid_flag)(struct cdp_pdev *pdev, u_int8_t *mem_status,
u_int8_t *user_position);