Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp233330lqh; Mon, 6 May 2024 18:13:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcM5E6jsPzHjENncNLt2itnwaCveR3eZzv8KHjlDhaDiM1QptF+04fbqtMuwa7FO2VuTHT4jiPFInnmpeRakOpIhoH66WyTpGWYCS+mQ== X-Google-Smtp-Source: AGHT+IHoGB/zjTomxqFm3floNP269Fl5k+Up4ZUml7ShFlC0wdzB/ROZPsXeCa6vp4gHdpbOzq6V X-Received: by 2002:a05:6830:6b87:b0:6f0:39d2:69ca with SMTP id dd7-20020a0568306b8700b006f039d269camr6975880otb.19.1715044385767; Mon, 06 May 2024 18:13:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715044385; cv=pass; d=google.com; s=arc-20160816; b=SV4ZCpXsY9G9sb6Up7ioKxnoPiMKDcMcF8lsy/f3zDIDG3TDusEbZZQvkaNjd7PafX PmNOkIh/sOWTIGU/aU86mIpuFfd6ZOM7cjAXhzwnHd+flPXkAG71zkrLNQYpRplWH5LU LgU0ojgGcrQTTRhUOzUSxFr2LzFj042tkON9l6WmSfZiGPsLJ/YU+JDg1TPRM5E6FGsF WteXutGFE3Ixlg4AVDRhxgrbw5q/Pgr29oVqwdhOZ3/PS0d8TdkZeJLq6MibyuEJxPok xMzjNvuJeTA1Ya+DqU0be/r/hO9AsaWWE7qE9/h9wj/8XQIDj6PiT7ynmT5/Q2nmTF8i r2PA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=KOq49SD4QEfkeCsH41jACtzIfIA3+3m0bWQE57ILn7c=; fh=7Vek+laWpHf1S6HEVZZEPfG2Q3rOwUwKKSawt39Omr0=; b=wIXIEl3X4seQiDbno0UV/VDS4/DP58gEo7D3ib0ruOIz9FJpPDc6lraNXbozYiYY8x AkFw8wTvB5Xrlhhzkfsx4AkGUm0ftI1hmzsFdVRPK1wKYveJvfjDA7qNmV0fI9qfHPLh TaCSgB7m+hqh9f1GyLpax062VZ+w1pANfQZfW82WjGctyGCm3FtSN/RV7FVXLYXZ2YsL grLal9Y4pclB5jExA81kb3jxPYRDM93deDFc/IW5/QoR8hnTFE3BBe2PM4YGPDImkw2q dDfp8lLjpR1qHPgxsltJXD+hvQ84gBMNMQxw58IVd5jf13jOwlVLtMR2myMYa1sU1FWj kWiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PN4PZtao; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l190-20020a6388c7000000b0061b489b5345si8402417pgd.291.2024.05.06.18.13.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 18:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PN4PZtao; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5A3D8283830 for ; Tue, 7 May 2024 01:13:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 377CC3FE4; Tue, 7 May 2024 01:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PN4PZtao" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5807F19E; Tue, 7 May 2024 01:12:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715044376; cv=none; b=kXk1tbY7mqRaoK1n9Sl7CcYFVQkKJZJodxIwi0X4WlcfV2sX5BFGMPe4rr19fMLWf5ytRFU+dz1eJCD2k9/4wM2F0uKWxHIZiDzvn7qFb5PwhorB2Qksj2Ruu+3J2z8cxVqovYf64FYZVzNx7mh0oo9EGBKPRcOc/d+evn+aC2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715044376; c=relaxed/simple; bh=GHWqAsOdX5dGe3K6Z1eepgzRll/70gW0FYVGWvCPvEQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WMdyZmwzwX19ycZpvLlR6naugoh8WYOWqJlAGCA9IkisNDKHss2xTn4bD62ZaSeZscsqH0zcJ3IdP9szaNnp8AkQoAv2Hsc0vVMuL+Bq1ISOrUR5Rv/Q+pluK5lrzpVgKpYRitZaiuEEipako5HHPW3zldbIZdaz2KLgq7sew3Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PN4PZtao; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93A23C116B1; Tue, 7 May 2024 01:12:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715044376; bh=GHWqAsOdX5dGe3K6Z1eepgzRll/70gW0FYVGWvCPvEQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PN4PZtao7rnNksupi4w8fkBRG7e0f4Z9i7i2IdGHY6e6qUv2J7OSD31264BPDH46a SFUaQ/Ci2qlyraviF+uYTG2ahVAPRYXMWFe0IUHcIt91/7CKeDJa2ryed8MRLWgrdW zjKFFKFoQMwplNsiWccDAkGD+7gzK4lauxdlLIdHb78P+kvFIuxyMiMg9jSqtddrC3 SVtdpmEQX7JFu8+6WkwMYu1cOfSJqXqFVlGIbSOQNkzJUIg5aduYLyp8uIlp4aL+Ew M/UAi2RIOJEG1m8O/5SpNjC1BEmXUrkFGH+kX+3PQERQ7pEaw1u8Ln1rQnwbsXvTM+ BSeLT06GkrOPw== Date: Mon, 6 May 2024 18:12:54 -0700 From: Jakub Kicinski To: Joe Damato Cc: linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, nalramli@fastly.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , Shuah Khan Subject: Re: [PATCH net-next v2] selftest: epoll_busy_poll: epoll busy poll tests Message-ID: <20240506181254.09f10699@kernel.org> In-Reply-To: <20240506205326.70502-1-jdamato@fastly.com> References: <20240506205326.70502-1-jdamato@fastly.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 6 May 2024 20:53:22 +0000 Joe Damato wrote: > Add a simple test for the epoll busy poll ioctls, using the kernel > selftest harness. > > This test ensures that the ioctls have the expected return codes and > that the kernel properly gets and sets epoll busy poll parameters. > > The test can be expanded in the future to do real busy polling (provided > another machine to act as the client is available). Hm, we get: # timeout set to 3600 # selftests: net: epoll_busy_poll # TAP version 13 # 1..5 # # Starting 5 tests from 2 test cases. # # RUN invalid_fd.test_invalid_fd ... # # OK invalid_fd.test_invalid_fd # ok 1 invalid_fd.test_invalid_fd # # RUN epoll_busy_poll.test_get_params ... # # OK epoll_busy_poll.test_get_params # ok 2 epoll_busy_poll.test_get_params # # RUN epoll_busy_poll.test_set_invalid ... # # epoll_busy_poll.c:204:test_set_invalid:Expected -1 (-1) == ret (0) # # epoll_busy_poll.c:205:test_set_invalid:EPIOCSPARAMS should error busy_poll_budget > NAPI_POLL_WEIGHT # # epoll_busy_poll.c:207:test_set_invalid:Expected EPERM (1) == errno (22) # # epoll_busy_poll.c:208:test_set_invalid:EPIOCSPARAMS errno should be EPERM busy_poll_budget > NAPI_POLL_WEIGHT # # test_set_invalid: Test failed # # FAIL epoll_busy_poll.test_set_invalid # not ok 3 epoll_busy_poll.test_set_invalid # # RUN epoll_busy_poll.test_set_and_get_valid ... # # OK epoll_busy_poll.test_set_and_get_valid # ok 4 epoll_busy_poll.test_set_and_get_valid # # RUN epoll_busy_poll.test_invalid_ioctl ... # # OK epoll_busy_poll.test_invalid_ioctl # ok 5 epoll_busy_poll.test_invalid_ioctl https://netdev-3.bots.linux.dev/vmksft-net/results/584001/98-epoll-busy-poll/stdout