Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp584449rdb; Thu, 19 Oct 2023 12:51:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwM/hbG8fbeLipwRVlXMhrjZyciapNVe5GAyt7WAG30+71vwVc38MvSSgxqkY0LMl61Bnz X-Received: by 2002:a05:6a20:914e:b0:173:318:b1ec with SMTP id x14-20020a056a20914e00b001730318b1ecmr3479323pzc.35.1697745085939; Thu, 19 Oct 2023 12:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697745085; cv=none; d=google.com; s=arc-20160816; b=JmkRS/aEL77q8NglxSCZZHIpm+BTKCJ/2f/1x7EDCOFAMF44xcyVqhkeY3FCcDsCwo Z1rVKDWxEKv+BMP/Rths7QN/Z0OJaSMEXppLz8TJAHCHlPKF76FwMGVqBSwIoLO5g59M TPptUmUvA3TkBh7+Vy5vJT0iM5tsqmdE8njV0h2/XCtL8HjKnQvgHBxZwf82EpkZtCmX /7gUQRCduiYBwS9p5Kfosyq9OTF8LTPa2TWZpdXVL5PC94TkAiOtPlosgInqK4IyuPDn i2MbT4Z+AiuPgMWux291IEEK+y8HanPzJvIzCshpZfRSrVUoAA3YVrnTdvZhzpX+5tay vxeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=2J4Oasusyhp2LFkadlAimpdKLPnFnJeRghNdrohws88=; fh=lwPWp9Tw7mxZGOoLcAgv9yf08VlTjqGi1TQMIf1meps=; b=IKiIA3l+dp3hwkcMt49EvmmHB+C0sjfAv2t+weXulsGyWfWfYswFnyVLiUjNVFhgRn sWj+bVxBfvGXhcaL9ChSLtdr/2v0hUDzHS9/GDW0mYpNGA6UhWDsVGCLpUM/3qWsu9PE KR/9PGS/HOOk2fGfwy3dFVSeAyt1gZemPpkulvkypluWVSWD0hS/UYbdES7CguWUktu4 JIl6EK0DcwSJz8Pti+2GnsRDzs5yFM9Iqz0YAg+3PzPshgXdsvc2RfSvYEyBzZgsvy/d qMUQZRvwmhznrG1UnqHn4fSeCwHDtlbynYohu9mAIHobnWSlAh2K4SkrpilziZvYdcFK is8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CqTNJDoo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u70-20020a638549000000b005898db9d66esi288117pgd.625.2023.10.19.12.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 12:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CqTNJDoo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C0820827B4BF; Thu, 19 Oct 2023 12:51:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346531AbjJSTvQ (ORCPT + 99 others); Thu, 19 Oct 2023 15:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346514AbjJSTvO (ORCPT ); Thu, 19 Oct 2023 15:51:14 -0400 Received: from out-210.mta1.migadu.com (out-210.mta1.migadu.com [IPv6:2001:41d0:203:375::d2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD08114 for ; Thu, 19 Oct 2023 12:51:11 -0700 (PDT) Message-ID: <16e8546f-9da6-8bac-ad9e-5d38918d0783@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1697745069; 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=2J4Oasusyhp2LFkadlAimpdKLPnFnJeRghNdrohws88=; b=CqTNJDoo/g34rriKps/fD8ErECUtOj6Xrq/jQDMyhCrYa72Hpi8zKa3WL4MScM4/G9Y1Sj HF4kGzlskoVdmhUkgBBWm2kfHDLtdouadrDyGZfB7GdQ0DH+GGDQpCkGlMCFtJnLUh38+I onKyOcWJRp2MHnxp2VPK/5+082OseQo= Date: Thu, 19 Oct 2023 12:51:02 -0700 MIME-Version: 1.0 Subject: Re: [PATCH v7 11/11] selftests/bpf/sockopt: Add io_uring support Content-Language: en-US To: Breno Leitao Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, io-uring@vger.kernel.org, =?UTF-8?Q?Daniel_M=c3=bcller?= , "open list:KERNEL SELFTEST FRAMEWORK" , sdf@google.com, axboe@kernel.dk, asml.silence@gmail.com, willemdebruijn.kernel@gmail.com, kuba@kernel.org, pabeni@redhat.com, krisman@suse.de, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , Yonghong Song , John Fastabend , KP Singh , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan References: <20231016134750.1381153-1-leitao@debian.org> <20231016134750.1381153-12-leitao@debian.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20231016134750.1381153-12-leitao@debian.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 12:51:21 -0700 (PDT) On 10/16/23 6:47 AM, Breno Leitao wrote: > Expand the sockopt test to use also check for io_uring {g,s}etsockopt > commands operations. > > This patch starts by marking each test if they support io_uring support > or not. > > Right now, io_uring cmd getsockopt() has a limitation of only > accepting level == SOL_SOCKET, otherwise it returns -EOPNOTSUPP. Since > there aren't any test exercising getsockopt(level == SOL_SOCKET), this > patch changes two tests to use level == SOL_SOCKET, they are > "getsockopt: support smaller ctx->optlen" and "getsockopt: read > ctx->optlen". > There is no limitation for the setsockopt() part. > > Later, each test runs using regular {g,s}etsockopt systemcalls, and, if > liburing is supported, execute the same test (again), but calling > liburing {g,s}setsockopt commands. > > This patch also changes the level of two tests to use SOL_SOCKET for the > following two tests. This is going to help to exercise the io_uring > subsystem: > * getsockopt: read ctx->optlen > * getsockopt: support smaller ctx->optlen Acked-by: Martin KaFai Lau