mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-08 09:18:29 +00:00
net: thunderx: Fix TSO packet statistic
Fixing TSO packages not being counted. Signed-off-by: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c62cd3c451
commit
2cb468e01e
@ -1064,6 +1064,7 @@ static int nicvf_sq_append_tso(struct nicvf *nic, struct snd_queue *sq,
|
|||||||
/* Inform HW to xmit all TSO segments */
|
/* Inform HW to xmit all TSO segments */
|
||||||
nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_DOOR,
|
nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_DOOR,
|
||||||
skb_get_queue_mapping(skb), desc_cnt);
|
skb_get_queue_mapping(skb), desc_cnt);
|
||||||
|
nic->drv_stats.tx_tso++;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user