Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1702776pxb; Thu, 16 Sep 2021 13:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDzmmf4gcAW1ydUp2nVzsjBpzxWs8RKrKhiTZOPRQSXcEeciBb/mHzGnH0bo0LwscGrihs X-Received: by 2002:a5d:8b59:: with SMTP id c25mr5794653iot.190.1631823879169; Thu, 16 Sep 2021 13:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631823879; cv=none; d=google.com; s=arc-20160816; b=O1z8lm5sIcrMMLnSFF2zZNrH/WyR6uxKFF5wVhhC649gHXy2mdG3+SgJBYsu1GV4+2 VWk4zxFJ8wRFNoqg3PLPDrymrNpJkWkHjcF0dM+9UaZq7aU4bitEDpEZg1yyugtxNOVV hAvNK3BS7qg2bm8Xxi4bNE98WcgGJxmhiylBmuEnPrSV2IGwcoPlV2WqRuM5ZnQ3nStM gFRBmcRGo9izgrcKxYDSMctDgmIWim5SDNLi5egmpSSBtmbR/YghM+n2/g9tqsAMH6kv lqPAHnaQDG1HizQtQzOMIsQHXdquuOT6LrgUTnrD9CPKrEv0Cnh0/Pp2DcWZugXzUE80 AovQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0jW/+Y0BeTYZvS9qWV/M6R8/voD/k1VQap4VskqBB64=; b=nrmoJSOF+ZmQMoiY1AbxmdgwoQ56G97Kn2YtPOaYIGK0n9e1Er72EuEYXOT6b6cM7y RKrHMaal24m9p23Xue9A3d3OOPbWjzyIiMjX72PgsCPijGyuI06sFhgRSn+1TBN6eemT XOtrUH2SWgPmq3Q4kcK0rEz+f8Z+S5M5B+3RhB81Aqm5i+UOQ23QRF0bRLM++9HOEvLj 55uO6pW3Hvrx2DL4qXNN4wC9KgAN4QSnFJYb3PmQeSJTWDtup9KhTl72NSluAzZV5tUF EFeypnhkUQNh+jAjbxf+ne8G7Kn8HlPHAItMerJchcQTthr46jHc9E9zUvMnz92uAglI nl4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZCH1knFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si4539731ilu.53.2021.09.16.13.24.26; Thu, 16 Sep 2021 13:24:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZCH1knFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233284AbhIPQ1B (ORCPT + 99 others); Thu, 16 Sep 2021 12:27:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237311AbhIPQRZ (ORCPT ); Thu, 16 Sep 2021 12:17:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF63C61279; Thu, 16 Sep 2021 16:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808745; bh=35mbzRvU6JfJ7yvh2CXrenvC6BWUwLp9YJcEV3nMwhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZCH1knFUQQiUQ6SbhsBe2kEyrZdSZzh74GqBzgFqRBsFBN26o0e6oKqvfGIU6Zpd/ OKYEVCzwKbCcGzIhOWY4qkZ/o38X8KG6bgtDXdT7GUMl3/GJLLUjaf3nECmeV06XZo xIVs8Z+LoHVUNx2ds1c/IKiBBpDxEmZFvoCPucYg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jussi Maki , Daniel Borkmann , Andrii Nakryiko , Sasha Levin Subject: [PATCH 5.10 205/306] selftests/bpf: Fix xdp_tx.c prog section name Date: Thu, 16 Sep 2021 17:59:10 +0200 Message-Id: <20210916155801.035633109@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jussi Maki [ Upstream commit 95413846cca37f20000dd095cf6d91f8777129d7 ] The program type cannot be deduced from 'tx' which causes an invalid argument error when trying to load xdp_tx.o using the skeleton. Rename the section name to "xdp" so that libbpf can deduce the type. Signed-off-by: Jussi Maki Signed-off-by: Daniel Borkmann Acked-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20210731055738.16820-7-joamaki@gmail.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/progs/xdp_tx.c | 2 +- tools/testing/selftests/bpf/test_xdp_veth.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/progs/xdp_tx.c b/tools/testing/selftests/bpf/progs/xdp_tx.c index 94e6c2b281cb..5f725c720e00 100644 --- a/tools/testing/selftests/bpf/progs/xdp_tx.c +++ b/tools/testing/selftests/bpf/progs/xdp_tx.c @@ -3,7 +3,7 @@ #include #include -SEC("tx") +SEC("xdp") int xdp_tx(struct xdp_md *xdp) { return XDP_TX; diff --git a/tools/testing/selftests/bpf/test_xdp_veth.sh b/tools/testing/selftests/bpf/test_xdp_veth.sh index ba8ffcdaac30..995278e684b6 100755 --- a/tools/testing/selftests/bpf/test_xdp_veth.sh +++ b/tools/testing/selftests/bpf/test_xdp_veth.sh @@ -108,7 +108,7 @@ ip link set dev veth2 xdp pinned $BPF_DIR/progs/redirect_map_1 ip link set dev veth3 xdp pinned $BPF_DIR/progs/redirect_map_2 ip -n ns1 link set dev veth11 xdp obj xdp_dummy.o sec xdp_dummy -ip -n ns2 link set dev veth22 xdp obj xdp_tx.o sec tx +ip -n ns2 link set dev veth22 xdp obj xdp_tx.o sec xdp ip -n ns3 link set dev veth33 xdp obj xdp_dummy.o sec xdp_dummy trap cleanup EXIT -- 2.30.2