From patchwork Thu Feb 15 17:35:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 772939 Delivered-To: patch@linaro.org Received: by 2002:adf:9dc2:0:b0:33b:4db1:f5b3 with SMTP id q2csp955185wre; Thu, 15 Feb 2024 09:41:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWa7qBl2PJx/FNBoB8a8VdcoInWboyjuERLnSObPPR6HmABVLhLtnd+2FIlnPA7rQYTy1a1YXeDEGcUx0v5OMhB X-Google-Smtp-Source: AGHT+IHK6s3J+KTLYXgudgYnsVogDYV4orE6JdjxMsHeRMNMhHlrE0mi3cEDuBVcvucFp/alibqF X-Received: by 2002:adf:e8c9:0:b0:33b:66c2:9735 with SMTP id k9-20020adfe8c9000000b0033b66c29735mr2142795wrn.18.1708018874252; Thu, 15 Feb 2024 09:41:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708018874; cv=none; d=google.com; s=arc-20160816; b=XAXa/8Ju5vwKbSp2E9aYdNjKqA1l9PnhnlQV38K6swv/On5MN1S2bMOj5ll4bZIiRP u9q2PY65TTCysR0+DI0IgBvGLrYeZJo8CiEDjNvIwpAMqbUPChH4UoRVCbXz6z0n7N9j JAFlzNCxchiJuwcweiXXIMrPBtQO8Er4iHpLKBUn4NnH0qF1sxxXgQD009TfqevUDCaG gDOTS900yF3VmRNGXna7bPf9963GoE+wGb8ZDTx5YrzH1BncMuqHNYVIqEzLaK3V1rmV O9eqWHymC5om9e1rqD7KIgUDrJG2h5t2i2sV5P0kNaL7wrAm8cPLH4+Gz8Q5eS+9ZP4f OPXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=t74q4lHJfmRE6xLpC3azh8koFmuAF2w+Csg2/m3aH1I=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=FLwPb8aRmHFhg5r/fUaNoI+2ZI/slDieOmakZ/x0uuIEvqPy57qkMsAlgfCmHgvOU8 amYraxRoJ88qw/6ThYrSQbozuT1l5tysbkNxIm/gO5o8xw6gcaKw5ktC6FYWDfP431hL BBFchdxWpcQTRSWEdNf0Njcn+FesbiZdLNzFdAaRfCr9MQ0x2JKqCX32hT2r4kToavnB kRRnzHtGO7hESBmBTZi+O1Q0WmJkJ8o37AiHI7Lj4NDtZCGvj+HsacetzHalEjJosVkU kdsXqKDzAGAs0OwbMW/iR4UjwU+VzReFQkEdR2Tj+7axl+H8gGC/rnqHyCik7V61+Z7w CKqw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yyUzQUMd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c18-20020adfe712000000b0033b6585ab4bsi982549wrm.787.2024.02.15.09.41.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2024 09:41:14 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yyUzQUMd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rafex-0000eH-NQ; Thu, 15 Feb 2024 12:36:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rafeL-0007z9-UF for qemu-devel@nongnu.org; Thu, 15 Feb 2024 12:35:54 -0500 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rafeG-0003xN-Lk for qemu-devel@nongnu.org; Thu, 15 Feb 2024 12:35:53 -0500 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2d0cdbd67f0so15801341fa.3 for ; Thu, 15 Feb 2024 09:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708018546; x=1708623346; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=t74q4lHJfmRE6xLpC3azh8koFmuAF2w+Csg2/m3aH1I=; b=yyUzQUMdy9t8P7Go1WZnnq1xpJsG78l+1A+zRn/vpsuTvbfOYNSLqT60EMJ9wlNhbI GuSE0CC78xckj4xY7ZeSob1QnVLbXRbAGuoTD0uTT2KjBPETfLDfAjT20nldWHWxz3w7 TLUmHMKCPk4KB4XQx1foUp88gaEHnYwCkiO6QvPvWCtZHqXEVyohDzCErFgwsrIJtHN6 2fWcrkVyoGklPi3Sc4QC4ovlZV5NNxuec5hxVz2QrnhX754tsazkBbt5l7iy9W1Sr+tC baTwBg/f4YaPvyGrlhwGqB/65YcM/ND6AdMVK1yvRoUjxHCnqr7YRIRFlUy/ZjxegHsN 5zEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708018546; x=1708623346; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t74q4lHJfmRE6xLpC3azh8koFmuAF2w+Csg2/m3aH1I=; b=SoHSXZssf9uxNHL5DJooWLd4zjoa3zAiaKGGs5kx86ovNDRGvIVXA/H+SvSg3aujVI GjIvyywlxdTxZiBMLgnwy3KJZvdbhd36acI0Irp1ytnA2jI1FuD9sZ0fNEKwe8vSZCVB WLrIW4L6cwP/yTFrFlfqdTpAg/wAr/FOsTInTf5MtfFQgfRyc/3JvmWLWEcS1XV8JNLI YU4r5TgGhARXEBtzR2keWiuUQQPWK+6M2YeQaVrx1cSK8oQvChibFF+UQNB6nVxAUCdM mwlNwKCyYNVoYhIxRSvhwIZUHX61HoU+MDKxPl8zMQfCy5bS7CkmNap7I+0XiwPasHE7 MaKA== X-Gm-Message-State: AOJu0YyWZY2c/XwATRJRYQ0et1iot3LsrbXXuZf9RlO2XjzZfwOJVfGb RT3vkY9pP+cAWlcGPpWKAgK1DYRIejuu+wRThY7qBNMeyXA/mAph6eO3Ukwpl+vws/BfYZFNWTT 9 X-Received: by 2002:a2e:80da:0:b0:2d0:9fb2:2c79 with SMTP id r26-20020a2e80da000000b002d09fb22c79mr2135678ljg.3.1708018546072; Thu, 15 Feb 2024 09:35:46 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id q16-20020adfea10000000b0033cfa00e497sm2384129wrm.64.2024.02.15.09.35.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:35:45 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 15/35] tests/qtest/npcm7xx_emc-test: Connect all NICs to a backend Date: Thu, 15 Feb 2024 17:35:18 +0000 Message-Id: <20240215173538.2430599-16-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240215173538.2430599-1-peter.maydell@linaro.org> References: <20240215173538.2430599-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=peter.maydell@linaro.org; helo=mail-lj1-x22b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Currently QEMU will warn if there is a NIC on the board that is not connected to a backend. By default the '-nic user' will get used for all NICs, but if you manually connect a specific NIC to a specific backend, then the other NICs on the board have no backend and will be warned about: qemu-system-arm: warning: nic npcm7xx-emc.1 has no peer qemu-system-arm: warning: nic npcm-gmac.0 has no peer qemu-system-arm: warning: nic npcm-gmac.1 has no peer So suppress those warnings by manually connecting every NIC on the board to some backend. Signed-off-by: Peter Maydell Reviewed-by: David Woodhouse Reviewed-by: Thomas Huth Message-id: 20240206171231.396392-3-peter.maydell@linaro.org --- tests/qtest/npcm7xx_emc-test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/qtest/npcm7xx_emc-test.c b/tests/qtest/npcm7xx_emc-test.c index f7646fae2c9..63f6cadb5cc 100644 --- a/tests/qtest/npcm7xx_emc-test.c +++ b/tests/qtest/npcm7xx_emc-test.c @@ -228,7 +228,10 @@ static int *packet_test_init(int module_num, GString *cmd_line) * KISS and use -nic. The driver accepts 'emc0' and 'emc1' as aliases * in the 'model' field to specify the device to match. */ - g_string_append_printf(cmd_line, " -nic socket,fd=%d,model=emc%d ", + g_string_append_printf(cmd_line, " -nic socket,fd=%d,model=emc%d " + "-nic user,model=npcm7xx-emc " + "-nic user,model=npcm-gmac " + "-nic user,model=npcm-gmac", test_sockets[1], module_num); g_test_queue_destroy(packet_test_clear, test_sockets);