[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b1ad8fb5-fe95-f344-f691-dae6c5114810@gnuweeb.org>
Date: Sat, 19 Nov 2022 19:47:57 +0700
From: Ammar Faizi <ammarfaizi2@...weeb.org>
To: Stefan Roesch <shr@...kernel.io>,
Facebook Kernel Team <kernel-team@...com>
Cc: Jens Axboe <axboe@...nel.dk>,
Olivier Langlois <olivier@...llion01.com>,
netdev Mailing List <netdev@...r.kernel.org>,
io-uring Mailing List <io-uring@...r.kernel.org>,
Jakub Kicinski <kuba@...nel.org>
Subject: Re: [RFC PATCH v4 3/4] liburing: add example programs for napi busy
poll
On 11/19/22 11:11 AM, Stefan Roesch wrote:
> +void recordRTT(struct ctx *ctx)
> +{
> + struct timespec startTs = ctx->ts;
> +
> + // Send next ping.
> + sendPing(ctx);
> +
> + // Store round-trip time.
> + ctx->rtt[ctx->rtt_index] = diffTimespec(&ctx->ts, &startTs);
> + ctx->rtt_index++;
> +}
Use tabs for indentation, not spaces.
--
Ammar Faizi
Powered by blists - more mailing lists