From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f196.google.com (mail-wj0-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id BA7E328F3 for ; Tue, 10 Jan 2017 13:10:03 +0100 (CET) Received: by mail-wj0-f196.google.com with SMTP id ey1so8270081wjd.2 for ; Tue, 10 Jan 2017 04:10:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=evWwjt78iohDdXu9ZE0cgAFwCDrQY0UxSotJ1Bnzl28=; b=YY28XMXHZhQ7GqULmpXgSKHKsfDIIaUEXdbfgIa4S3B/2uLWn5Dv2eL9Llk0R5GPwx jPyL3s+Nx2a5cURz+qXVFm/U7qsWDFT4mB3wqgdbm4OHT0jAZTSW/Jn25/nZTksLEaQ5 8Jt9MhpjQpMxUsiTEu5nUAIL5ZGPBuDA5qx5I2FA0oo5wO2hJLn1Vsy8aQEDlLO5MrWW o0eCKNka/ZJJpKA5bZPX7I6ktLVAltWNLkut5Th+zT3ImwPNoU3lx6VYjSXEUbItwm74 oIL2AWAW9Ep2gaynaC+ZOKeuOvej+W+AofTpT0z4isdbp/S79Pe3gde60WS6v7/Lcn9n JYyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=evWwjt78iohDdXu9ZE0cgAFwCDrQY0UxSotJ1Bnzl28=; b=K8C6G5wOmaIJrby+Sl3wNF38ie/5ck8AEFVdJiY7XXSIFJFIBUIK43RpRW9di43/j3 4dMoT9N/bT8EluShUkTnNzRxyuEZR8igxDt6bblvY2eH02kpaF9jd01OsB6eZwTZgsng fDF3ULqR2UQJpvw5swcf9vRpj8NkFD/t7fUp1o5nSpblbzHbhwVl6WGyHriejJ9z81XE dQzVjjI3zhdMgy+3RCtO09ImGS6MDXm1vkd/J+07H5ZZlszI9qc7pyWS17wZ4wyQnCI7 s3GPU1egW5X84l5a+qKmPg/QSkVCagqM0vGB5xSPSsuekwsVsVHLyC4Z3I9E86052jiF tCyw== X-Gm-Message-State: AIkVDXITswxKEtoUmY268oaCIei+dbmUrGpgGzOf2L310PtmHlOCHd3bBVEJjjKeqEr3tH+XK/gmoY6SgWf8MQ== X-Received: by 10.195.30.165 with SMTP id kf5mr1580043wjd.41.1484050203493; Tue, 10 Jan 2017 04:10:03 -0800 (PST) MIME-Version: 1.0 Sender: jblunck@gmail.com Received: by 10.28.63.83 with HTTP; Tue, 10 Jan 2017 04:10:02 -0800 (PST) In-Reply-To: <20170107181756.1944-4-sthemmin@microsoft.com> References: <20170107181756.1944-1-sthemmin@microsoft.com> <20170107181756.1944-4-sthemmin@microsoft.com> From: Jan Blunck Date: Tue, 10 Jan 2017 13:10:02 +0100 X-Google-Sender-Auth: cpGQwMvjkHFvfjSF1lLR6hze1xA Message-ID: To: Stephen Hemminger Cc: dev@dpdk.org, Stephen Hemminger Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [PATCH 3/8] vmxnet3: don't refer to eth_dev->pci_dev 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, 10 Jan 2017 12:10:03 -0000 On Sat, Jan 7, 2017 at 7:17 PM, Stephen Hemminger wrote: > Fix the vmxnet3 code to just use it's own name when forming zone name. > > Signed-off-by: Stephen Hemminger > --- > drivers/net/vmxnet3/vmxnet3_rxtx.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/vmxnet3/vmxnet3_rxtx.c b/drivers/net/vmxnet3/vmxnet3_rxtx.c > index 36513693..8df4c8ea 100644 > --- a/drivers/net/vmxnet3/vmxnet3_rxtx.c > +++ b/drivers/net/vmxnet3/vmxnet3_rxtx.c > @@ -849,9 +849,8 @@ ring_dma_zone_reserve(struct rte_eth_dev *dev, const char *ring_name, > char z_name[RTE_MEMZONE_NAMESIZE]; > const struct rte_memzone *mz; > > - snprintf(z_name, sizeof(z_name), "%s_%s_%d_%d", > - dev->driver->pci_drv.driver.name, ring_name, > - dev->data->port_id, queue_id); > + snprintf(z_name, sizeof(z_name), "vmxnet3_%s_%d_%d", > + ring_name, dev->data->port_id, queue_id); The driver is called 'net_vmxnet3'. > > mz = rte_memzone_lookup(z_name); > if (mz) > -- > 2.11.0 >