From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mail.toke.dk (Postfix) with ESMTPS id 6A5A29E63AF for ; Wed, 1 Feb 2023 18:31:52 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eFJWVpmP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675272710; 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; bh=5X1LhIlH+FTe7KXfPlTsNNBHQmiO7Yhp41s5mysUZys=; b=eFJWVpmPjQhnwH+MX1gDXrkcksuw97BRGkqAxwmDHhjUP5xkxx2vNVfGXmo1UNHlX1YzTP 6t+DdjRpil/nJWLv9F4pz1/nDk2w8cVSEuXQMFUk3zJrCodhGL2afqk5yO2NGsk1VfbFfs BuFVYo/u4/UYQXyEBSTCKgeS3Xhy+jg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-62-VbRmtSLFOpW7LAw_BFKHYQ-1; Wed, 01 Feb 2023 12:31:48 -0500 X-MC-Unique: VbRmtSLFOpW7LAw_BFKHYQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0F0F4857A94; Wed, 1 Feb 2023 17:31:47 +0000 (UTC) Received: from firesoul.localdomain (ovpn-208-9.brq.redhat.com [10.40.208.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 996A0492B01; Wed, 1 Feb 2023 17:31:46 +0000 (UTC) Received: from [192.168.42.3] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id 3DD2D300005EE; Wed, 1 Feb 2023 18:31:45 +0100 (CET) From: Jesper Dangaard Brouer To: bpf@vger.kernel.org, Stanislav Fomichev Date: Wed, 01 Feb 2023 18:31:45 +0100 Message-ID: <167527267453.937063.6000918625343592629.stgit@firesoul> User-Agent: StGit/1.4 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 Message-ID-Hash: YBWFEHDS3GZE7WSWOJ6D5JC3GQD3OEJD X-Message-ID-Hash: YBWFEHDS3GZE7WSWOJ6D5JC3GQD3OEJD X-MailFrom: brouer@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Jesper Dangaard Brouer , netdev@vger.kernel.org, martin.lau@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, dsahern@gmail.com, willemb@google.com, void@manifault.com, kuba@kernel.org, xdp-hints@xdp-project.net X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] [PATCH bpf-next V2 0/4] selftests/bpf: xdp_hw_metadata fixes series List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This series contains a number of small fixes to the BPF selftest xdp_hw_metadata that I've run into when using it for testing XDP hardware hints on different NIC hardware. Fixes: 297a3f124155 ("selftests/bpf: Simple program to dump XDP RX metadata") Signed-off-by: Jesper Dangaard Brouer --- Jesper Dangaard Brouer (4): selftests/bpf: xdp_hw_metadata clear metadata when -EOPNOTSUPP selftests/bpf: xdp_hw_metadata cleanup cause segfault selftests/bpf: xdp_hw_metadata correct status value in error(3) selftests/bpf: xdp_hw_metadata use strncpy for ifname .../selftests/bpf/progs/xdp_hw_metadata.c | 6 +++- tools/testing/selftests/bpf/xdp_hw_metadata.c | 34 +++++++++---------- 2 files changed, 22 insertions(+), 18 deletions(-) --