From: Arthas <kangzy1982@qq.com>
To: Arthas <kangzy1982@qq.com>, dev <dev@dpdk.org>
Subject: Re: [dpdk-dev] DPDK v2.1.0 with tilegx problem
Date: Mon, 7 Sep 2015 16:51:47 +0800 [thread overview]
Message-ID: <tencent_4FD37F1F2EE8B05B7F93A0E3@qq.com> (raw)
In-Reply-To: <tencent_644FF3F32397EDF608409E10@qq.com>
This problem had solved! My tilegx libgxio don't support 'gxio_mpipe_link_enumerate_mac', only provide API ''gxio_mpipe_link_enumerate', add new api 'gxio_mpipe_link_enumerate_mac' for libgxio and compile ok! :)
/*
typedef struct
{
/** The address. */
uint8_t mac[6];
}
_gxio_mpipe_link_mac_t;
/tilegx/src/sys/hv/include/hv/drv_mpipe_intf.h
*/
int
gxio_mpipe_link_enumerate_mac(int idx, char* link_name, uint8_t *hw)
{
int rv;
_gxio_mpipe_link_name_t name;
_gxio_mpipe_link_mac_t mac;
gxio_mpipe_context_t* context = _gxio_get_link_context();
if (!context)
return GXIO_ERR_NO_DEVICE;
rv = gxio_mpipe_info_enumerate_aux(context, idx, &name, &mac);
if (rv >= 0) {
strncpy(link_name, name.name, sizeof (name.name));
memcpy(hw, &mac, sizeof(_gxio_mpipe_link_mac_t));
}
return rv;
}
Regards,
Arthas
------------------ Original ------------------
From: "Arthas";<kangzy1982@qq.com>;
Date: Sat, Sep 5, 2015 09:48 AM
To: "dev"<dev@dpdk.org>;
Subject: [dpdk-dev] DPDK v2.1.0 with tilegx problem
Hi, I'm working on tilegx platform. but when I compiled DPDK 2.1.0 with tilegx target. I got a error.
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:182: error: 'GXIO_MPIPE_IQUEUE_ENTRY_128' undeclared here (not in a function)
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:182: error: array index in initializer not of integer type
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:182: error: (near initialization for 'mpipe_iqueue_sizes')
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:183: error: 'GXIO_MPIPE_IQUEUE_ENTRY_512' undeclared here (not in a function)
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:183: error: array index in initializer not of integer type
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:183: error: (near initialization for 'mpipe_iqueue_sizes')
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:184: error: 'GXIO_MPIPE_IQUEUE_ENTRY_2K' undeclared here (not in a function)
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:184: error: array index in initializer not of integer type
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:184: error: (near initialization for 'mpipe_iqueue_sizes')
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:185: error: 'GXIO_MPIPE_IQUEUE_ENTRY_64K' undeclared here (not in a function)
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:185: error: array index in initializer not of integer type
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:185: error: (near initialization for 'mpipe_iqueue_sizes')
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c: In function 'mpipe_link_mac':
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:1545: warning: implicit declaration of function 'gxio_mpipe_link_enumerate_mac'
/DPDK/dpdk-v2.1.0/drivers/net/mpipe/mpipe_tilegx.c:1545: warning: nested extern declaration of 'gxio_mpipe_link_enumerate_mac'
My tilegx MDE version is TileraMDE-4.2.4.174600, but I can't found any definition of GXIO_MPIPE_IQUEUE_ENTRY_128/512/2K/64K.
only found gxio_mpipe_link_enumerate_mac is a kernel global symbol.
Did someon got this problem?
Regards,
Arthas
prev parent reply other threads:[~2015-09-07 8:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-05 1:48 Arthas
2015-09-07 8:51 ` Mcnamara, John
2015-09-07 9:12 ` Tony Lu
2015-09-07 9:24 ` Thomas Monjalon
2015-09-07 8:51 ` Arthas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_4FD37F1F2EE8B05B7F93A0E3@qq.com \
--to=kangzy1982@qq.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).