git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mlx5: prefetch next Tx mbuf header and data
[dpdk.git]
/
drivers
/
net
/
bnx2x
/
bnx2x_logs.h
diff --git
a/drivers/net/bnx2x/bnx2x_logs.h
b/drivers/net/bnx2x/bnx2x_logs.h
index
05f754d
..
dff014d
100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_logs.h
+++ b/
drivers/net/bnx2x/bnx2x_logs.h
@@
-1,7
+1,11
@@
/*
* Copyright (c) 2013-2015 Brocade Communications Systems, Inc.
*
/*
* Copyright (c) 2013-2015 Brocade Communications Systems, Inc.
*
+ * Copyright (c) 2015 QLogic Corporation.
* All rights reserved.
* All rights reserved.
+ * www.qlogic.com
+ *
+ * See LICENSE.bnx2x_pmd for copyright and licensing details.
*/
#ifndef _PMD_LOGS_H_
*/
#ifndef _PMD_LOGS_H_
@@
-37,7
+41,7
@@
#define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
#endif
#define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
#endif
-#ifdef RTE_LIBRTE_BNX2X_DEBUG
_DRIVER
+#ifdef RTE_LIBRTE_BNX2X_DEBUG
#define PMD_DRV_LOG_RAW(level, fmt, args...) \
RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args)
#else
#define PMD_DRV_LOG_RAW(level, fmt, args...) \
RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args)
#else
@@
-47,4
+51,12
@@
#define PMD_DRV_LOG(level, fmt, args...) \
PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
#define PMD_DRV_LOG(level, fmt, args...) \
PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
+#ifdef RTE_LIBRTE_BNX2X_DEBUG_PERIODIC
+#define PMD_DEBUG_PERIODIC_LOG(level, fmt, args...) \
+ RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
+#else
+#define PMD_DEBUG_PERIODIC_LOG(level, fmt, args...) do { } while(0)
+#endif
+
+
#endif /* _PMD_LOGS_H_ */
#endif /* _PMD_LOGS_H_ */