From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by dpdk.org (Postfix) with ESMTP id CEB5B8DB1 for ; Sun, 4 Oct 2015 20:44:04 +0200 (CEST) Received: by obbzf10 with SMTP id zf10so114398577obb.2 for ; Sun, 04 Oct 2015 11:44:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ruq8wPek9CuH1fhWgyJS87DRryjyFj3/Au8vYIP104s=; b=fn7XyWyL8BNwRbsklp9uji8szLRqRDyKgASyLSd7yw3OENkH3SChlvF8gJxb8LgGVM TvzAnxGcXLJCCG/SVGTukfaMdXdQEK/nqEjVJO9qaD0x8Oa15Qda51xvFvvSU+28s/Xl rmVOBMuYsk1ec/PpqjEHlaYJMgyEQXl0a49a6L+CvdbZFyOHCnuQPQlQ4l3YhGNvsbKK qhg/1GC6mlaz60t4tWYC0cjGdygw9FBy9h2kAsLStUQ7zKvLBFDofc21oh3KCqOOo1fb J3LIx5kxdpxSYNJAL4XJk+Oc0tLvrY7DRlMrAmIqkdHPl8hwCFpVoE5EmQ0tPLUpu7+Q IGyw== X-Gm-Message-State: ALoCoQm/Bbv+3p5uyKV550f4WgL2++viG/t/mkKyh01Kg8uQ0+shlQ/+MFYgpIQodkENtSTySwAU MIME-Version: 1.0 X-Received: by 10.182.241.41 with SMTP id wf9mr14598310obc.76.1443984244181; Sun, 04 Oct 2015 11:44:04 -0700 (PDT) Received: by 10.76.131.166 with HTTP; Sun, 4 Oct 2015 11:44:04 -0700 (PDT) In-Reply-To: <1443487487-31915-7-git-send-email-stephen@networkplumber.org> References: <1443487487-31915-1-git-send-email-stephen@networkplumber.org> <1443487487-31915-7-git-send-email-stephen@networkplumber.org> Date: Sun, 4 Oct 2015 20:44:04 +0200 Message-ID: From: David Marchand To: Stephen Hemminger Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 6/6] fm10k: use rte_eth_dma_zone_reserve X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2015 18:44:05 -0000 On Tue, Sep 29, 2015 at 2:44 AM, Stephen Hemminger < stephen@networkplumber.org> wrote: > Adapt to Xen at runtime. > > Signed-off-by: Stephen Hemminger > --- > drivers/net/fm10k/fm10k_ethdev.c | 47 > +++++----------------------------------- > 1 file changed, 6 insertions(+), 41 deletions(-) > > diff --git a/drivers/net/fm10k/fm10k_ethdev.c > b/drivers/net/fm10k/fm10k_ethdev.c > index a69c990..571f5f0 100644 > --- a/drivers/net/fm10k/fm10k_ethdev.c > +++ b/drivers/net/fm10k/fm10k_ethdev.c > [snip] > @@ -1327,11 +1299,8 @@ fm10k_rx_queue_setup(struct rte_eth_dev *dev, > uint16_t queue_id, > return (-ENOMEM); > } > q->hw_ring = mz->addr; > -#ifdef RTE_LIBRTE_XEN_DOM0 > q->hw_ring_phys_addr = rte_mem_phy2mch(mz->memseg_id, > mz->phys_addr); > -#else > q->hw_ring_phys_addr = mz->phys_addr; > -#endif > > dev->data->rx_queues[queue_id] = q; > return 0; > "else" part has been forgotten. -- David Marchand