From patchwork Mon Mar 9 11:12:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenz Bauer X-Patchwork-Id: 11426737 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F06314B7 for ; Mon, 9 Mar 2020 11:13:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 465EA2051A for ; Mon, 9 Mar 2020 11:13:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="vhJLcMYm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726997AbgCILNa (ORCPT ); Mon, 9 Mar 2020 07:13:30 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50648 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbgCILN3 (ORCPT ); Mon, 9 Mar 2020 07:13:29 -0400 Received: by mail-wm1-f68.google.com with SMTP id a5so9392806wmb.0 for ; Mon, 09 Mar 2020 04:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QaTFcTkFq4Xguxn8bSzfnksfS0c2jnlyVSoCBPs8eek=; b=vhJLcMYmm/qr33TiAo7JT5z9HUaVRDrZxOEz87v6imXUfpQppv5xXULXiHOZUArRRp FFGy2atvM1OycOehbNrLU6P63rckxQ5xm5mpMolVJvbPuKMVwijc1yTXJj+7Q6XXNB9u mCjeJOvp1kRypn4zZL6FicO2iv+f6FuzwaSm0= 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:mime-version:content-transfer-encoding; bh=QaTFcTkFq4Xguxn8bSzfnksfS0c2jnlyVSoCBPs8eek=; b=d7N76+ACmQqwul25ssHrWZxESiqxbJ+KhcJMw10R6LJS8Dia6vFzPCwdiydcPZEdnu FmdDeNKNUQJOzgmxVgc2sIey2zDEX+rhZTazBJIjYUcBtBelYxtmshLB7ZiTgRt601T1 pxwcH34OBE+cp5zlEtUXjBA70xEadNA6r2lTa3/wlQZMT+QQvo9CQVA0S4/19/aQL7Sa nSARcLFgTqq5YTlnTieX+aoJAdO6uVUq73XmsiCB1OTEG1J0dhtnrGuxoM59J8fRdelo 3zYuuUcjnQHKTMahOaMADRHU+pC1uyjgwqvNG15k3A3KEQ73WPqZ+HGWrsXrLaM2sL+x KIWg== X-Gm-Message-State: ANhLgQ23pzYQVvA5y5KIrbLcuXJp7z1yOLo05rOhSyOzC5SVejNzIq/4 riqJr5XiI4WuxUZNnpEj2AODAg== X-Google-Smtp-Source: ADFU+vtelcGYQQ7cq2t6WKsONlaRaq72BxVgq3eY1uel/I49QzMryenNk1JX3ZTxqPj2w/PQTT0LSA== X-Received: by 2002:a05:600c:2214:: with SMTP id z20mr18926382wml.57.1583752408076; Mon, 09 Mar 2020 04:13:28 -0700 (PDT) Received: from localhost.localdomain ([2a06:98c0:1000:8250:3dcc:c1d:7f05:4873]) by smtp.gmail.com with ESMTPSA id a5sm25732846wmb.37.2020.03.09.04.13.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 04:13:27 -0700 (PDT) From: Lorenz Bauer To: Shuah Khan , Alexei Starovoitov , Daniel Borkmann Cc: kernel-team@cloudflare.com, Lorenz Bauer , Jakub Sitnicki , John Fastabend , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next v4 11/12] selftests: bpf: enable UDP sockmap reuseport tests Date: Mon, 9 Mar 2020 11:12:42 +0000 Message-Id: <20200309111243.6982-12-lmb@cloudflare.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200309111243.6982-1-lmb@cloudflare.com> References: <20200309111243.6982-1-lmb@cloudflare.com> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Remove the guard that disables UDP tests now that sockmap has support for them. Signed-off-by: Lorenz Bauer Reviewed-by: Jakub Sitnicki Acked-by: John Fastabend --- tools/testing/selftests/bpf/prog_tests/select_reuseport.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/select_reuseport.c b/tools/testing/selftests/bpf/prog_tests/select_reuseport.c index a1dd13b34d4b..821b4146b7b6 100644 --- a/tools/testing/selftests/bpf/prog_tests/select_reuseport.c +++ b/tools/testing/selftests/bpf/prog_tests/select_reuseport.c @@ -805,12 +805,6 @@ static void test_config(int sotype, sa_family_t family, bool inany) char s[MAX_TEST_NAME]; const struct test *t; - /* SOCKMAP/SOCKHASH don't support UDP yet */ - if (sotype == SOCK_DGRAM && - (inner_map_type == BPF_MAP_TYPE_SOCKMAP || - inner_map_type == BPF_MAP_TYPE_SOCKHASH)) - return; - for (t = tests; t < tests + ARRAY_SIZE(tests); t++) { if (t->need_sotype && t->need_sotype != sotype) continue; /* test not compatible with socket type */