From patchwork Fri May 18 22:27:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 136381 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1787333lji; Fri, 18 May 2018 15:28:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZonyC3O35XaEhvBbzwnj8DfjFT5tqEjhK72K0t6tw9qMR4at3+SR+sSKQSbMUp0jYQ9uGeq X-Received: by 2002:a17:902:3343:: with SMTP id a61-v6mr11119188plc.241.1526682498547; Fri, 18 May 2018 15:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526682498; cv=none; d=google.com; s=arc-20160816; b=q12mDy+Dpb2S0xdmngFbpD5QbRVckXC+TPJkGFueDNylplSAHCjxQnSu7ADW/cWZNS 1c03w/IjJk9tML1R9eDrB5AmNxWGW0fxZ+LuXbAHAqwlPdC3oqU1/tr7oCDneGloxeME DYNlM4CHmIGgz4o6rWP4c5MaJcTfHR5nUdXaAP6+0/3WIz+W5/5K2Qhxi/2+aXTgRWJy Wmyd2KTO7Tm6wDCbikNRFumMkrZ4vpi3w6U8d4g4OtLogqkqmeI14czrilDAZTWRddzW O8f8q7hael1bhjMVtLs8N56q48ve57LVKah6aljP7PJo1EeBeH3qgVgMqUbGDuOj8rmm CpyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tdko+fepjOQJtYj2BDc6xovqTL/aK2aVMiuZGzKnbHw=; b=SWgQ/y/CGIO0xqI/gkP6It9izhN/1wdVicYw949d1CQObWg2qP5oy59fQD+ltFfol5 E8P9wDElFG70dAEyKdpElwKbCORljVbrUSHl+V3EHKDs/UzDFLHhVPAvIaEWtkL01eit oVQE3O3wVeBdLgywkGGnGFz7VpgGdGevzDiOp9LrcvkUjkHjcVtODo/HaYws9QOKGanh N06pKyrNscnERvrF4Z1d2cbghTwJT3PF0erzH0XJgV/EvGZ6Rm5/DgjE462KPnxFJaux CXPr7xZLnWdd7Pc1O04R2zPIOc44ipeveMzlqNwP3AIYqzzRcx37R+WRZBHKXV6ms4Cp lASw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FNtLWe0M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7-v6si8540756pfl.223.2018.05.18.15.28.18; Fri, 18 May 2018 15:28:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FNtLWe0M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291AbeERW2O (ORCPT + 29 others); Fri, 18 May 2018 18:28:14 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40355 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbeERW2K (ORCPT ); Fri, 18 May 2018 18:28:10 -0400 Received: by mail-lf0-f67.google.com with SMTP id u140-v6so3813489lff.7 for ; Fri, 18 May 2018 15:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tdko+fepjOQJtYj2BDc6xovqTL/aK2aVMiuZGzKnbHw=; b=FNtLWe0MzlVRjZAXXYK13BGoJ+PpptLevkUGYqfHI26oM91/19n2h/XCMd2wob9xtw g1z0hxWjcQHfDsx+OmINYFkYeTCI7nj7IkZtbznEWRoHvW30Jz2SKJjpaGQ4KBKt+SOK xYOBBxsgdRoPXKHlUWRTBigHi2SAN+NSjGPHk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tdko+fepjOQJtYj2BDc6xovqTL/aK2aVMiuZGzKnbHw=; b=M8uPXt817V5HnN9dkZ3GeK/qbxMdvYnmIDEluv+YZk0b/pA/yib7msAhapGZMH2L/8 R8dO2SEB2L7gYMTyPqnbUF0e82v9MHOMH5Z9AEM1WinZ4hZFZn7oeNGRCE7JuMwtJaA6 /y/Ed9j6CxRepAB3bEg9NRR7hdOnEvzX02hfVWvxW41JtAwzSYh7/AQS7w+RBVw5t3Sn UYIXwprAho9hGP6/mYaj8TtocBvXAaC+NGbo5KAL1ZBlqbmZJmm5dOoLUE9wO5pnxodt KGzfsdwxb0DSqCGpDnuahys+XbY31eJf9UjRABmQ2NDgmcACZnLip9oMQgQVa+qhfTN2 TG0Q== X-Gm-Message-State: ALKqPwcbz5UMQDaqGYpndgcNX9XZDaM/DQEefEswCWq7hWByQu5is8ur PVbyEqNRpt5lXeDu62v6GZVWSw== X-Received: by 2002:a19:94c7:: with SMTP id o68-v6mr23249984lfk.111.1526682489452; Fri, 18 May 2018 15:28:09 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id v14-v6sm2088233lfi.66.2018.05.18.15.28.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 15:28:08 -0700 (PDT) From: Anders Roxell To: davem@davemloft.net, shuah@kernel.org Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH v2] selftests: net: reuseport_bpf_numa: don't fail if no numa support Date: Sat, 19 May 2018 00:27:37 +0200 Message-Id: <20180518222737.16006-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180306151004.31336-1-anders.roxell@linaro.org> References: <20180306151004.31336-1-anders.roxell@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reuseport_bpf_numa test case fails there's no numa support. The test shouldn't fail if there's no support it should be skipped. Fixes: 3c2c3c16aaf6 ("reuseport, bpf: add test case for bpf_get_numa_node_id") Signed-off-by: Anders Roxell --- tools/testing/selftests/net/reuseport_bpf_numa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/tools/testing/selftests/net/reuseport_bpf_numa.c b/tools/testing/selftests/net/reuseport_bpf_numa.c index 365c32e84189..c9f478b40996 100644 --- a/tools/testing/selftests/net/reuseport_bpf_numa.c +++ b/tools/testing/selftests/net/reuseport_bpf_numa.c @@ -23,6 +23,8 @@ #include #include +#include "../kselftest.h" + static const int PORT = 8888; static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) @@ -229,7 +231,7 @@ int main(void) int *rcv_fd, nodes; if (numa_available() < 0) - error(1, errno, "no numa api support"); + ksft_exit_skip("no numa api support\n"); nodes = numa_max_node() + 1;