Dmitry Eremin-Solenikov(lumag) replied on github web page:

platform/linux-generic/pktio/dpdk.c
line 52
@@ -123,8 +123,8 @@ static unsigned cache_size(uint32_t num)
 static inline uint16_t mbuf_data_off(struct rte_mbuf *mbuf,
                                     odp_packet_hdr_t *pkt_hdr)
 {
-       return (uint64_t)pkt_hdr->buf_hdr.seg[0].data -
-                       (uint64_t)mbuf->buf_addr;
+       return (unsigned long)pkt_hdr->buf_hdr.seg[0].data -
+                       (unsigned long)mbuf->buf_addr;
 }


Comment:
ack

> Dmitry Eremin-Solenikov(lumag) wrote:
> Good question. For more or less typical case (non-system DPDK) this would 
> require adding two flags (`--enable-dpdk-support 
> --with-dpdk-path=PATH_TO_DPDK`).


>> Matias Elo(matiaselo) wrote:
>> uintptr_t would be a more suitable type here.


>>> Matias Elo(matiaselo) wrote:
>>> If I understood this correctly, a user would have to use 
>>> '--with-dpdk-path=system' configure option for this to work. Wouldn't a 
>>> more standard way of doing this be to add e.g. '--enable-dpdk-support' flag 
>>> in the same manner as with netmap pktio?


https://github.com/Linaro/odp/pull/321#discussion_r154632254
updated_at 2017-12-04 12:18:04

Reply via email to