diff options
author | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-11-06 18:14:35 +0000 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-11-06 18:21:37 +0000 |
commit | 760ea9eb4a59fd2b541c6c13ad3a57513587b8d4 (patch) | |
tree | a846a578f238647ec191a0c99aa962e7dcab7285 /platform/linux-dpdk | |
parent | fd553bd19e82f680d2b7996ae1adffb7e4e6e840 (diff) |
linux-dpdk: buffer: remove limitations due to DPDK 1.7.1 bugs
It was forgotten at the time of upgrade to 2.1.0.
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Diffstat (limited to 'platform/linux-dpdk')
-rw-r--r-- | platform/linux-dpdk/README | 5 | ||||
-rw-r--r-- | platform/linux-dpdk/odp_buffer.c | 6 |
2 files changed, 1 insertions, 10 deletions
diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index eaec725fa..ccb0245d1 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -98,11 +98,6 @@ Note: to use odp-dpdk without DPDK supported NIC's enable pcap pmd: Note: if non-intel SFP's are used in IXGBE, then: sed -ri 's,(CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=).*,\1y,' .config -Note: a few other configs are also needed for the moment: - sed -ri 's,(CONFIG_RTE_MBUF_SCATTER_GATHER=).*,\1n,' .config - sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_BOND=).*,\1n,' .config - sed -ri 's,(CONFIG_RTE_LIBRTE_IP_FRAG=).*,\1n,' .config - make install T=x86_64-native-linuxapp-gcc EXTRA_CFLAGS="-fPIC" If "conflicting types for skb_set_hash" error happens during DPDK diff --git a/platform/linux-dpdk/odp_buffer.c b/platform/linux-dpdk/odp_buffer.c index c82db63cd..cf308e9ee 100644 --- a/platform/linux-dpdk/odp_buffer.c +++ b/platform/linux-dpdk/odp_buffer.c @@ -83,13 +83,9 @@ int odp_buffer_snprint(char *str, uint32_t n, odp_buffer_t buf) " addr %p\n", hdr->mb.buf_addr); len += snprintf(&str[len], n-len, " size %u\n", hdr->mb.buf_len); -/* - * Comment this out until we upgrade to a DPDK version where the underlying - * bug is fixed. Grep for RTE_MBUF_SCATTER_GATHER len += snprintf(&str[len], n-len, " ref_count %i\n", - odp_atomic_load_u32((odp_atomic_u32_t *) -*/ + rte_mbuf_refcnt_read(&hdr->mb)); len += snprintf(&str[len], n-len, " odp type %i\n", hdr->type); |