Skip to content

Commit 2cb468e

Browse files
Sunil Gouthamdavem330
authored andcommitted
net: thunderx: Fix TSO packet statistic
Fixing TSO packages not being counted. Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: Aleksey Makarov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c62cd3c commit 2cb468e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/cavium/thunder/nicvf_queues.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ static int nicvf_sq_append_tso(struct nicvf *nic, struct snd_queue *sq,
10641064
/* Inform HW to xmit all TSO segments */
10651065
nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_DOOR,
10661066
skb_get_queue_mapping(skb), desc_cnt);
1067+
nic->drv_stats.tx_tso++;
10671068
return 1;
10681069
}
10691070

0 commit comments

Comments
 (0)