From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by mail.toke.dk (Postfix) with ESMTPS id 549A79D9243 for ; Wed, 4 Jan 2023 23:00:02 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=dX9/YJtN Received: by mail-pg1-x54a.google.com with SMTP id e5-20020a63f545000000b0049b36d5a272so10308199pgk.12 for ; Wed, 04 Jan 2023 14:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Du1KYnr7Moi/U3hIPL9DDDUf7OPxblLIVYbFH0ndSJg=; b=dX9/YJtNyGeKKa0nnE3YWk6KO4f9TGdhpOOWy6B2Tc9yjA3CCGwQlPSd/qFGK+YFGk ZeD6Sz/HbfH7O3/0xJQiWOIgq7vQ5ktOboMNbj4rNJSH/F83tSz4W1Ph+6p/SMNM68JA EbDQHwj7fmY28ReJ4WD+YWFxxbB8OOaYPkBeKBqucdOjWRdEUspw7Kqbripe4sa+TBdo 64JjLu4fLEnym/QoFhcuusSzhKFPTmYY+CISVrUEDp7rIsQKleRzvtxJSzLQlMpXCGgn a4P3MqvkaveNH9ExkW3YzeummR2zvXhP1LwkQteO5R4oGChOgjq8JyGoIZGCjiJz/bbn e+vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Du1KYnr7Moi/U3hIPL9DDDUf7OPxblLIVYbFH0ndSJg=; b=bRpbSpWdDz9V4Jl2a4JqKAcolAhKqr6SPOrcBHDbudJzeV1XGgi0JBQBj32OX9QOJ1 hTq4UwRtjslH6yE/AEP60WqPbI2Yrs/XKwADz3GnSC3WLqmqCi4h3c3DYhmdyiCCziJI jJNyCGCXAhx1ldfrX7agSL/hgNq+FqdN2b7u65DKykeoHWhQdQwhi2UWCEw/qJQgC46z 8BaDE4GV6kysHIcCmix5gaeZ/sA3tGAxF9DkCSenMrBG1ZHT49y8qjb8GvbPGAC+fH52 78dSx+HC0JcE9P81XS16KSb+L/zsHp3po57HU7aVIWruV+mhE3ClGh436cdaSAZz7dBB elHw== X-Gm-Message-State: AFqh2kqYggPQz3onApicBekZn6NYeVXWVVEoY7LghpfFWXtdXOBxCjcV EuuLiSPO+4VA22sXRjIDLlvgduM= X-Google-Smtp-Source: AMrXdXvgPzPZlj9zlTaz+injXnQyhiKiUk7C9NXLy6CLELc1kWeX+qDF4jggMOCHj+VIIhXtxnCvQZc= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a62:33c7:0:b0:581:2379:f591 with SMTP id z190-20020a6233c7000000b005812379f591mr1844670pfz.38.1672869600858; Wed, 04 Jan 2023 14:00:00 -0800 (PST) Date: Wed, 4 Jan 2023 13:59:38 -0800 In-Reply-To: <20230104215949.529093-1-sdf@google.com> Mime-Version: 1.0 References: <20230104215949.529093-1-sdf@google.com> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog Message-ID: <20230104215949.529093-7-sdf@google.com> From: Stanislav Fomichev To: bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: VW2L4STWAOCSZT2TPTNRTUPDXI3LNCRL X-Message-ID-Hash: VW2L4STWAOCSZT2TPTNRTUPDXI3LNCRL X-MailFrom: 34Pa1YwMKCck7suv33v0t.r31Cs4-wx287Cs4-463ytr8.2t8@flex--sdf.bounces.google.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: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org X-Mailman-Version: 3.3.7 Precedence: list Subject: [xdp-hints] [PATCH bpf-next v6 06/17] selftests/bpf: Update expected test_offload.py messages List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Generic check has a different error message, update the selftest. Cc: John Fastabend Cc: David Ahern Cc: Martin KaFai Lau Cc: Jakub Kicinski Cc: Willem de Bruijn Cc: Jesper Dangaard Brouer Cc: Anatoly Burakov Cc: Alexander Lobakin Cc: Magnus Karlsson Cc: Maryam Tahhan Cc: xdp-hints@xdp-project.net Cc: netdev@vger.kernel.org Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/bpf/test_offload.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/bpf/test_offload.py b/tools/testing/selftests/bpf/test_offload.py index 7cb1bc05e5cf..40cba8d368d9 100755 --- a/tools/testing/selftests/bpf/test_offload.py +++ b/tools/testing/selftests/bpf/test_offload.py @@ -1039,7 +1039,7 @@ netns = [] offload = bpf_pinned("/sys/fs/bpf/offload") ret, _, err = sim.set_xdp(offload, "drv", fail=False, include_stderr=True) fail(ret == 0, "attached offloaded XDP program to drv") - check_extack(err, "Using device-bound program without HW_MODE flag is not supported.", args) + check_extack(err, "Using offloaded program without HW_MODE flag is not supported.", args) rm("/sys/fs/bpf/offload") sim.wait_for_flush() @@ -1088,12 +1088,12 @@ netns = [] ret, _, err = sim.set_xdp(pinned, "offload", fail=False, include_stderr=True) fail(ret == 0, "Pinned program loaded for a different device accepted") - check_extack_nsim(err, "program bound to different dev.", args) + check_extack(err, "Program bound to different device.", args) simdev2.remove() ret, _, err = sim.set_xdp(pinned, "offload", fail=False, include_stderr=True) fail(ret == 0, "Pinned program loaded for a removed device accepted") - check_extack_nsim(err, "xdpoffload of non-bound program.", args) + check_extack(err, "Program bound to different device.", args) rm(pin_file) bpftool_prog_list_wait(expected=0) @@ -1334,12 +1334,12 @@ netns = [] ret, _, err = simA.set_xdp(progB, "offload", force=True, JSON=False, fail=False, include_stderr=True) fail(ret == 0, "cross-ASIC program allowed") - check_extack_nsim(err, "program bound to different dev.", args) + check_extack(err, "Program bound to different device.", args) for d in simdevB.nsims: ret, _, err = d.set_xdp(progA, "offload", force=True, JSON=False, fail=False, include_stderr=True) fail(ret == 0, "cross-ASIC program allowed") - check_extack_nsim(err, "program bound to different dev.", args) + check_extack(err, "Program bound to different device.", args) start_test("Test multi-dev ASIC cross-dev map reuse...") -- 2.39.0.314.g84b9a713c41-goog