From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 9B1D3567C for ; Mon, 6 Mar 2017 11:00:56 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id l37so20982898wrc.3 for ; Mon, 06 Mar 2017 02:00:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=79RRN8d/TJIy4tKhoYMf1RpZVzbeB6YFMPGRz9dUVHM=; b=qg6s7FLMSw1YvhDTmsPHEojO5LZIElrzxdWjOsYQCskJBQdrNg9qcfyoI6ESJcPh/R sgE2OP+kF5HyQ6tiBnYM4yMgTJj4ot8fvtO5CQ+lhte8Zjljo3eEPzDnodmsG9seHMD6 9mknTllenHAGg0JiU/kQANc0vJ1uL9pCVBsNPQtMc0TOZ0nFZqtiUiatUtJxV0Neyc98 eL/r5RpL2T5ol0Hu82ARUDjKvrjbyNgdzccPfpcdVIbbr0qWi+2Xe+7BSGa0PJUWKsJI jbEdn5N3Cs1wEHXBUpYf4cKUrkt0UBA9SfYxaK0Mc5GWaAVMnNCeg7VpYB79P+mjNRg4 Lo3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=79RRN8d/TJIy4tKhoYMf1RpZVzbeB6YFMPGRz9dUVHM=; b=KlugFTVxLVbiaYYsZmjBBHKdXi/xSrelcvNhxA4vqCwqKdnx+kKhpTRpcvxsik2aCQ TeW+WRLlIm6mbpy7IPDPJqotajleNFZjDyQqPnIEMzNZNu+GBp3Rz2YL2aqycQBBVewr cXQlH258Ucw1LRyclAd9Figl3BkEMW5hHPEOnSFrQmoIoPkamEswifwqa+e7+tj30jiP SMAOaahAG8fb7WR9p3cM12owgzfPh7y6ZE5781srqec0kU99785lpCxLzsGu+SDZLuyF K49FGwpFEp4+3Mh4lPNIUMwLdYPQFCdDJnUfCSBDkL6SY38jzU2Aee50h4mawwaP7NXm YEqA== X-Gm-Message-State: AMke39kXuVvi0xmjlrVOgntVCO7kBVjCZ8DH0TD0bJs+6yz5o4rhNh8a90Lj4QU6Fg+N7A== X-Received: by 10.223.162.130 with SMTP id s2mr13874567wra.149.1488794456229; Mon, 06 Mar 2017 02:00:56 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id u145sm3829237wmu.1.2017.03.06.02.00.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 02:00:55 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Date: Mon, 6 Mar 2017 11:00:02 +0100 Message-Id: <1488794430-25179-11-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488794430-25179-1-git-send-email-jblunck@infradead.org> References: <1488794430-25179-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH 10/38] app/test: don't short-circuit null device creation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 10:00:56 -0000 A virtual device should get initialized through the rte_eal_vdev_init() function to properly initialize the driver. Signed-off-by: Jan Blunck --- drivers/net/null/rte_eth_null.c | 1 + test/test/test_link_bonding_rssconf.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index f4242b0..b856073 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -50,6 +50,7 @@ static unsigned default_packet_copy; static const char *valid_arguments[] = { ETH_NULL_PACKET_SIZE_ARG, ETH_NULL_PACKET_COPY_ARG, + "driver", NULL }; diff --git a/test/test/test_link_bonding_rssconf.c b/test/test/test_link_bonding_rssconf.c index 34f1c16..1023f7f 100644 --- a/test/test/test_link_bonding_rssconf.c +++ b/test/test/test_link_bonding_rssconf.c @@ -552,7 +552,8 @@ test_setup(void) port_id = rte_eth_dev_count(); snprintf(name, sizeof(name), SLAVE_DEV_NAME_FMT, port_id); - retval = eth_dev_null_create(name, 0, 64, 0); + retval = rte_eal_vdev_init(name, + "driver=net_null,size=64,copy=0"); TEST_ASSERT_SUCCESS(retval, "Failed to create null device '%s'\n", name); -- 2.7.4