qcacmn: Enable TSO Stats for Lithium based products

Add support to account for TSO jumbo packets on the
Tx path and print the statistics using dumpStats 3.

Change-Id: I6cc446df5c84e3ac436d922935fcd559e0704ec5
CRs-Fixed: 2356244
This commit is contained in:
Venkata Sharath Chandra Manchala
2018-10-05 13:04:18 -07:00
committed by nshrivas
parent 2b07141773
commit 8a4812f7fc
11 changed files with 544 additions and 38 deletions

View File

@@ -3148,6 +3148,17 @@ static inline void qdf_nbuf_unmap_tso_segment(qdf_device_t osdev,
return __qdf_nbuf_unmap_tso_segment(osdev, tso_seg, is_last_seg);
}
/**
* qdf_nbuf_get_tcp_payload_len() - function to return the tso payload len
* @nbuf: network buffer
*
* Return: size of the tso packet
*/
static inline size_t qdf_nbuf_get_tcp_payload_len(qdf_nbuf_t nbuf)
{
return __qdf_nbuf_get_tcp_payload_len(nbuf);
}
/**
* qdf_nbuf_get_tso_num_seg() - function to calculate the number
* of TCP segments within the TSO jumbo packet