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:

committed by
nshrivas

부모
2b07141773
커밋
8a4812f7fc
@@ -1453,9 +1453,23 @@ void __qdf_nbuf_unmap_tso_segment(qdf_device_t osdev,
|
||||
bool is_last_seg);
|
||||
|
||||
#ifdef FEATURE_TSO
|
||||
/**
|
||||
* __qdf_nbuf_get_tcp_payload_len() - function to return the tcp
|
||||
* payload len
|
||||
* @skb: buffer
|
||||
*
|
||||
* Return: size
|
||||
*/
|
||||
size_t __qdf_nbuf_get_tcp_payload_len(struct sk_buff *skb);
|
||||
uint32_t __qdf_nbuf_get_tso_num_seg(struct sk_buff *skb);
|
||||
|
||||
#else
|
||||
static inline
|
||||
size_t __qdf_nbuf_get_tcp_payload_len(struct sk_buff *skb)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline uint32_t __qdf_nbuf_get_tso_num_seg(struct sk_buff *skb)
|
||||
{
|
||||
return 0;
|
||||
|
@@ -3138,6 +3138,19 @@ last_seg_free_first_frag:
|
||||
}
|
||||
qdf_export_symbol(__qdf_nbuf_unmap_tso_segment);
|
||||
|
||||
size_t __qdf_nbuf_get_tcp_payload_len(struct sk_buff *skb)
|
||||
{
|
||||
size_t packet_len;
|
||||
|
||||
packet_len = skb->len -
|
||||
((skb_transport_header(skb) - skb_mac_header(skb)) +
|
||||
tcp_hdrlen(skb));
|
||||
|
||||
return packet_len;
|
||||
}
|
||||
|
||||
qdf_export_symbol(__qdf_nbuf_get_tcp_payload_len);
|
||||
|
||||
/**
|
||||
* __qdf_nbuf_get_tso_num_seg() - function to divide a TSO nbuf
|
||||
* into segments
|
||||
|
Reference in New Issue
Block a user