aboutsummaryrefslogtreecommitdiffstats
path: root/examples/l4fwd/port.h
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2018-02-06 22:17:36 +0000
committerKonstantin Ananyev <konstantin.ananyev@intel.com>2018-02-07 17:43:40 +0000
commit5c795f7bd17608d441d4e2c7f862ad9d45685b93 (patch)
tree96947264d77354b9cb880f86333d961d414ce689 /examples/l4fwd/port.h
parent3726dc50dd2a9873ac05847be80ca615ea4a708b (diff)
tldk: make sure it builds/works with latest dpdk (17.11/18.02)
Change-Id: I460b88661656b64558b442c7800b4edc20ad4b56 Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'examples/l4fwd/port.h')
-rw-r--r--examples/l4fwd/port.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/l4fwd/port.h b/examples/l4fwd/port.h
index 04f3ec2..a451f7b 100644
--- a/examples/l4fwd/port.h
+++ b/examples/l4fwd/port.h
@@ -162,15 +162,17 @@ port_init(struct netbe_port *uprt, uint32_t proto)
if ((dev_info.rx_offload_capa & uprt->rx_offload) != uprt->rx_offload) {
RTE_LOG(ERR, USER1,
"port#%u supported/requested RX offloads don't match, "
- "supported: %#x, requested: %#x;\n",
- uprt->id, dev_info.rx_offload_capa, uprt->rx_offload);
+ "supported: %#" PRIx64 ", requested: %#" PRIx64 ";\n",
+ uprt->id, (uint64_t)dev_info.rx_offload_capa,
+ (uint64_t)uprt->rx_offload);
return -EINVAL;
}
if ((dev_info.tx_offload_capa & uprt->tx_offload) != uprt->tx_offload) {
RTE_LOG(ERR, USER1,
"port#%u supported/requested TX offloads don't match, "
- "supported: %#x, requested: %#x;\n",
- uprt->id, dev_info.tx_offload_capa, uprt->tx_offload);
+ "supported: %#" PRIx64 ", requested: %#" PRIx64 ";\n",
+ uprt->id, (uint64_t)dev_info.tx_offload_capa,
+ (uint64_t)uprt->tx_offload);
return -EINVAL;
}
@@ -282,7 +284,7 @@ log_netbe_prt(const struct netbe_port *uprt)
RTE_LOG(NOTICE, USER1,
"uprt %p = <id = %u, lcore = <%s>, mtu = %u, "
- "rx_offload = %u, tx_offload = %u,\n"
+ "rx_offload = %#" PRIx64 ", tx_offload = %#" PRIx64 ",\n"
"ipv4 = %#x, "
"ipv6 = %04hx:%04hx:%04hx:%04hx:%04hx:%04hx:%04hx:%04hx, "
"mac = %02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx>;\n"