From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 8D6B4D1E6 for ; Tue, 11 Apr 2017 17:45:13 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id u2so4130714wmu.0 for ; Tue, 11 Apr 2017 08:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=0HMDjbY+Dnx70ar/4dVQLv/nlgIRnxBitGGBV3bNoVE=; b=ddYn19+q/1yci2eLYc0AoY+fyvUtliwlKzOV7zZLRIBL9EvdRM+fr5weHYZjipIGSI ibxUgIYMyhVZTtrV/Fe4bqgcCV+LUgbDVADfVXCe9ctmosDzv8Ms4wN3iFpqLrP6b9GF vUHDNwdCLMCs4uthQTHMBj3bVyhDZanFirFs+9RGVT9R6viVN8LcaoO/Sga/8a2m7MZT HYXVtgdGLQkdsLc4MIFU+YOXJVAkZEgBHeHuSm3ibs5NNNQwn8jwB4n5tkamB1VakmaC W3w/FGiKQZU50QlLMmuKquGFijZIktt8OtcIHtfmQ7yikow1OxWc8HDuYykVc0vzaI/R enjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=0HMDjbY+Dnx70ar/4dVQLv/nlgIRnxBitGGBV3bNoVE=; b=Tt2E5F/rzkv03hwd+yE6IjbdzlyWYo6rMNTuJ6m3/YvCs97PVy2R3r5a6hC65LJFkP XLIafaggGmDWTKcwXt6Y7H+nC9ewgb3/CoDou49Ngmzo8a6c2LpdcKz1kyejUblbtOid bmcpnkFWudNNsDW88yYQ5Ol6pzdCptNIatt0g7/OKb9VDZcpGyicFllopDE9vlM54G6U t5yt4SvzWarZtd8f8I9LPRNGCs3FJyV5U2vGsRhGkO7B/HbGTtmoNgcSRA3i8y/X3ZKv YLUGkXoUKRls0Q0qmctAKD7NO5X1qXTDImWHRHKp2rPHOQ5QHUtEN6wYt1C+0BwKQPkc CezA== X-Gm-Message-State: AN3rC/54HxHKbN1qaIeHinn7iWA5Cgk2NSYSeAWiggMZGvNKyeEZp+NM jHfacXRDbLNcaW3j X-Received: by 10.28.7.13 with SMTP id 13mr15442237wmh.16.1491925513178; Tue, 11 Apr 2017 08:45:13 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id u63sm2933738wmu.22.2017.04.11.08.45.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Apr 2017 08:45:12 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Jan Blunck Date: Tue, 11 Apr 2017 17:44:16 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: <1488794430-25179-1-git-send-email-jblunck@infradead.org> In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 09/42] 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: Tue, 11 Apr 2017 15:45:13 -0000 From: Jan Blunck 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 a7b57bc..4a0d07d 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 9034f62..3a2cac3 100644 --- a/test/test/test_link_bonding_rssconf.c +++ b/test/test/test_link_bonding_rssconf.c @@ -551,7 +551,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.1.4