Want datapath logs to use own logtype.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/octeon_ep/otx_ep_common.h | 7 +++++++
drivers/net/octeon_ep/otx_ep_rxtx.c | 5 ++---
2 files changed, 9 insertions(+), 3 deletions(-)
@@ -81,6 +81,13 @@
"%s():%u " fmt "\n", \
__func__, __LINE__, ##args)
+#define otx_ep_log_dp(level, fmt, args...) \
+ rte_log_dp(RTE_LOG_ ## level, otx_net_ep_logtype, \
+ "%s():%u " fmt "\n", \
+ __func__, __LINE__, ##args)
+
+
+
/* IO Access */
#define oct_ep_read64(addr) rte_read64_relaxed((void *)(addr))
#define oct_ep_write64(val, addr) rte_write64_relaxed((val), (void *)(addr))
@@ -884,9 +884,8 @@ otx_ep_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
next_fetch = (pkts == new_pkts - 1) ? 0 : 1;
oq_pkt = otx_ep_droq_read_packet(otx_ep, droq, next_fetch);
if (!oq_pkt) {
- RTE_LOG_DP(ERR, PMD,
- "DROQ read pkt failed pending %" PRIu64
- "last_pkt_count %" PRIu64 "new_pkts %d.\n",
+ otx_ep_log_dp(ERR, "DROQ read pkt failed pending %" PRIu64
+ "last_pkt_count %" PRIu64 "new_pkts %d.",
droq->pkts_pending, droq->last_pkt_count,
new_pkts);
droq->stats.rx_err++;