From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <christian.ehrhardt@canonical.com>
Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com
 [209.85.220.180]) by dpdk.org (Postfix) with ESMTP id 973D847CE
 for <dev@dpdk.org>; Mon, 13 Jun 2016 09:35:11 +0200 (CEST)
Received: by mail-qk0-f180.google.com with SMTP id p10so34674027qke.3
 for <dev@dpdk.org>; Mon, 13 Jun 2016 00:35:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=canonical-com.20150623.gappssmtp.com; s=20150623;
 h=mime-version:from:date:message-id:subject:to;
 bh=hgOtxs9TZwomHa1hZc1fiD74+ZKdhzcvjXYk7uQH6sQ=;
 b=vQ7exajvWCh7bH9QRCSMQjy0Ii5WkWPfhtyacDMYpstdNI/31gCggQLnj3SYEyDSkw
 hbKE7Ziloe2eh+8sof9YN0RxwvlIcfYn/z+D5eQ0mBWWyoaKiuoMsNsspOHTEv+Oa/gy
 qIbuBKkdtPD6JELIJ3Nrnl9x+FEPnhzIkbta+7oF7qj5c0XDY9HThLZ2bd1R3m1hyDSo
 7g6/xFG/6yHhKiPsyJU6DnDzVz8FDTfrrdRjJvs+g1lQo7M0pdd0AGhWebTnDypgW3HA
 qrsx74MZP6YozHfUVIZ3EVjbfifWxQ+e5I9GK98oYr5xhX2k1XiPLPXD/Yr1OXKoZGVl
 lD7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=hgOtxs9TZwomHa1hZc1fiD74+ZKdhzcvjXYk7uQH6sQ=;
 b=BY4w385T/C1eWJwUAju4y42LTUJ/2kzzYywC5c86VV79QRfW5SRUceUzwu67Oge7KQ
 RUYM48/3NRMxZ+mCXZWjXAYzbWQE58rq8lhMNYvHOIZzYEudpDcrwK1Gpnw+h5zCQdtT
 7xX80KQGEl/TopSdDe+/8bWWkTDfi8Nqzqj0ysZb7jso7V43ppAT3v27A+A2rzAl/IXa
 1q8shWU0X5BhXZ2VswpOqNqZisClwZTZcozlYIC8iaezQCoJrG1lpnEO5vOzSm7WZM4Z
 1iiboKhG/gAbID6O34x6jQdWgSBJmoV92/OtKvMNmnzUg/kwx53xgSfkEzdbBX2E0I8Z
 Yu/w==
X-Gm-Message-State: ALyK8tJZdS3C62d1ZJCJeQoDXQelmAuH06E9B+Ue+RqyYSG88cUFAAtjjM4ghct4sEniXYTiUZzq9N/GOaYCOUYH
X-Received: by 10.55.161.204 with SMTP id k195mr13423305qke.193.1465803311009; 
 Mon, 13 Jun 2016 00:35:11 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.55.162.9 with HTTP; Mon, 13 Jun 2016 00:34:51 -0700 (PDT)
From: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Date: Mon, 13 Jun 2016 09:34:51 +0200
Message-ID: <CAATJJ0+9SWu_Wht3ij58kmFwC5Poim-xJVaayJpJ0XeFDrtXFg@mail.gmail.com>
To: David Marchand <david.marchand@6wind.com>, dev <dev@dpdk.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [dpdk-dev] Question regarding mempool changes impact to XEN PMD
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Jun 2016 07:35:11 -0000

Hi David,
it seems to be the first time I compiled with
CONFIG_RTE_LIBRTE_PMD_XENVIRT=3Dy sinec the bigger mempool changes around
"587d684d doc: update release notes about mempool allocation".

I've seen related patch to mempool / xen in that regard "c042ba20 mempool:
rework support of Xen dom0"

But with above config symbol enabled I got:
drivers/net/xenvirt/rte_xen_lib.c: In function =E2=80=98grant_gntalloc_mbuf=
_pool=E2=80=99:
drivers/net/xenvirt/rte_xen_lib.c:440:69: error: =E2=80=98struct rte_mempoo=
l=E2=80=99 has
no member named =E2=80=98elt_va_start=E2=80=99
  if (snprintf(val_str, sizeof(val_str), "%"PRIxPTR,
(uintptr_t)mpool->elt_va_start) =3D=3D -1)
                                                                     ^
  SYMLINK-FILE include/rte_eth_bond.h
mk/internal/rte.compile-pre.mk:126: recipe for target 'rte_xen_lib.o' faile=
d
make[4]: *** [rte_xen_lib.o] Error 1
make[4]: *** Waiting for unfinished jobs....

The change around the mempools is complex, so I don't see on the first look
if that needs a minor or major rework in the xen sources.
I mean I don't want it to compile, but to work and that could be more than
just fixing that changed structure :-)

So I wanted to ask if you as author would see if it is a trivial change
that has to be made?


Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd