From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=linux.dev (client-ip=188.165.223.204; helo=out2.migadu.com; envelope-from=martin.lau@linux.dev; receiver=) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=RTXXh5k1 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by mail.toke.dk (Postfix) with ESMTPS id 44B2A9D8AFD for ; Wed, 4 Jan 2023 03:05:42 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1672797941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l6FK8fxQs0Li6/NLpmqWpkSek5USo3mefm4+LR8SZbw=; b=RTXXh5k1+OFsl/fP6roHOnjVfs9Ei2NzSFZJY1eNOwSi+VJK4h5cJNQ1jsjRbcbqXtomDs 5SlAQSeTTsgU5XYUQenmDy5aJliiPVr/oa08ib7FyxfhJPfMjL6n3hTPR2v1JnhM11ZUKg UCLij+k83FITN0kcA2B/p8ZAn62cYPc= Date: Tue, 3 Jan 2023 18:05:25 -0800 MIME-Version: 1.0 Content-Language: en-US To: Stanislav Fomichev References: <20221220222043.3348718-1-sdf@google.com> <20221220222043.3348718-12-sdf@google.com> <18bed458-0128-d434-8b7a-bf676a0ea863@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Message-ID-Hash: KAV5FBIXWSAYB7FJQ6LTIHAFK5SH75V5 X-Message-ID-Hash: KAV5FBIXWSAYB7FJQ6LTIHAFK5SH75V5 X-MailFrom: martin.lau@linux.dev X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, haoluo@google.com, jolsa@kernel.org, David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org, bpf@vger.kernel.org X-Mailman-Version: 3.3.7 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next v5 11/17] selftests/bpf: Verify xdp_metadata xdp->af_xdp path List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 12/22/22 8:06 PM, Stanislav Fomichev wrote: >>> + /* First half of umem is for TX. This way address matches 1-to-1 >>> + * to the completion queue index. >>> + */ >>> + >>> + for (i = 0; i < UMEM_NUM / 2; i++) { >>> + addr = i * UMEM_FRAME_SIZE; >>> + printf("%p: tx_desc[%d] -> %lx\n", xsk, i, addr); >> Do you still need this verbose printf which is in a loop? Also, how about other >> printf in this test? > In case we'd ever need to debug this test, those printfs shouldn't > hurt, right? Or are you concerned about this test polluting the output > with something like 'test_progs -v -v' ? > Asking just in case it was some left over from the earlier rfc that is no longer needed. I think only failure test get logged in CI, so I don't mind to leave them here if they will be useful to debug other earlier/later ASSERTs.