On 18.5.2023. 10:46, Jan Klemkow wrote: > On Thu, May 18, 2023 at 12:01:44AM +0200, Alexander Bluhm wrote: >> On Tue, May 16, 2023 at 09:11:48PM +0200, Jan Klemkow wrote: >>> @@ -412,6 +412,10 @@ tcp_stats(char *name) >>> p(tcps_outhwtso, "\t\t%u output TSO packet%s hardware processed\n"); >>> p(tcps_outpkttso, "\t\t%u output TSO packet%s generated\n"); >>> p(tcps_outbadtso, "\t\t%u output TSO packet%s dropped\n"); >>> + p(tcps_inhwlro, "\t\t%u input LRO generated packet%s from hardware\n"); >>> + p(tcps_inpktlro, "\t\t%u input LRO coalesced packet%s from hardware\n"); >> ... coalesced packet%s by hardware > done > >>> + p(tcps_inbadlro, "\t\t%u input bad LRO packet%s from hardware\n"); >>> + >> Move this down to the "packets received" section. You included it >> in "packets sent". > done > >>> + /* >>> + * This function iterates over interleaved descriptors. >>> + * Thus, we reuse ph_mss as global segment counter per >>> + * TCP connection, insteat of introducing a new variable >> s/insteat/instead/ > done > > ok? > > Thanks, > Jan
Hi, this diff smc4# netstat -sp tcp | egrep "TSO|LRO" 48 output TSO packets software chopped 776036704 output TSO packets hardware processed 3907800204 output TSO packets generated 0 output TSO packets dropped 152169317 input LRO generated packets by hardware 981432700 input LRO coalesced packets by hardware 0 input bad LRO packets from hardware vs old diff smc4# netstat -sp tcp | egrep "TSO|LRO" 10843097 output TSO packets software chopped 0 output TSO packets hardware processed 136103193 output TSO packets generated 0 output TSO packets dropped 4940412 input LRO generated packets from hardware 74984192 input LRO coalesced packets from hardware 0 input bad LRO packets from hardware