* [dpdk-dev] DPDK v2.1.0 with tilegx problem
@ 2015-09-05 1:48 Arthas
2015-09-07 8:51 ` Mcnamara, John
2015-09-07 8:51 ` Arthas
0 siblings, 2 replies; 5+ messages in thread
From: Arthas @ 2015-09-05 1:48 UTC (permalink / raw)
To: dev
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] DPDK v2.1.0 with tilegx problem
2015-09-05 1:48 [dpdk-dev] DPDK v2.1.0 with tilegx problem 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
1 sibling, 2 replies; 5+ messages in thread
From: Mcnamara, John @ 2015-09-07 8:51 UTC (permalink / raw)
To: Arthas, dev; +Cc: Cyril Chemparathy
CCing the Tile-GX maintainers.
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Arthas
> Sent: Saturday, September 5, 2015 2:49 AM
> To: dev
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] DPDK v2.1.0 with tilegx problem
2015-09-07 8:51 ` Mcnamara, John
@ 2015-09-07 9:12 ` Tony Lu
2015-09-07 9:24 ` Thomas Monjalon
1 sibling, 0 replies; 5+ messages in thread
From: Tony Lu @ 2015-09-07 9:12 UTC (permalink / raw)
To: 'Mcnamara, John', 'Arthas', 'dev'
>-----Original Message-----
>From: Mcnamara, John [mailto:john.mcnamara@intel.com]
>Sent: Monday, September 07, 2015 4:52 PM
>To: Arthas; dev
>Cc: Zhigang Lu; Cyril Chemparathy; Zhigang Lu
>Subject: RE: [dpdk-dev] DPDK v2.1.0 with tilegx problem
>
>CCing the Tile-GX maintainers.
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Arthas
>> Sent: Saturday, September 5, 2015 2:49 AM
>> To: dev
>> 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.
>>
We need to use TileraMDE-4.3.3 and later versions which include the
definition
of gxio_mpipe_link_enumerate_mac.
Thanks
-Zhigang
>> Did someon got this problem?
>>
>> Regards,
>> Arthas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] DPDK v2.1.0 with tilegx problem
2015-09-07 8:51 ` Mcnamara, John
2015-09-07 9:12 ` Tony Lu
@ 2015-09-07 9:24 ` Thomas Monjalon
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2015-09-07 9:24 UTC (permalink / raw)
To: Mcnamara, John; +Cc: dev
2015-09-07 08:51, Mcnamara, John:
> CCing the Tile-GX maintainers.
The TILE-Gx maintainer is Zhigang Lu.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] DPDK v2.1.0 with tilegx problem
2015-09-05 1:48 [dpdk-dev] DPDK v2.1.0 with tilegx problem Arthas
2015-09-07 8:51 ` Mcnamara, John
@ 2015-09-07 8:51 ` Arthas
1 sibling, 0 replies; 5+ messages in thread
From: Arthas @ 2015-09-07 8:51 UTC (permalink / raw)
To: Arthas, dev
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-07 9:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-05 1:48 [dpdk-dev] DPDK v2.1.0 with tilegx problem 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 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).