net/cxgbe: support flow API for matching QinQ VLAN
[dpdk.git] / drivers / net / sfc / sfc_debug.h
index 09c2775..ea1b432 100644 (file)
@@ -13,7 +13,7 @@
 #include <rte_debug.h>
 
 #ifdef RTE_LIBRTE_SFC_EFX_DEBUG
-/* Avoid dependency from RTE_LOG_LEVEL to be able to enable debug check
+/* Avoid dependency from RTE_LOG_DP_LEVEL to be able to enable debug check
  * in the driver only.
  */
 #define SFC_ASSERT(exp)                        RTE_VERIFY(exp)
 /* Log PMD message, automatically add prefix and \n */
 #define sfc_panic(sa, fmt, args...) \
        do {                                                            \
-               const struct sfc_adapter *_sa = (sa);                   \
+               const struct sfc_adapter_shared *_sas;                  \
                                                                        \
-               rte_panic("sfc " PCI_PRI_FMT " #%" PRIu8 ": " fmt "\n", \
-                         _sa->pci_addr.domain, _sa->pci_addr.bus,      \
-                         _sa->pci_addr.devid, _sa->pci_addr.function,  \
-                         _sa->port_id, ##args);                        \
+               _sas = (sa)->priv.shared;                               \
+               rte_panic("sfc " PCI_PRI_FMT                            \
+                         " #%" PRIu16 ": " fmt "\n",                   \
+                         _sas->pci_addr.domain, _sas->pci_addr.bus,    \
+                         _sas->pci_addr.devid, _sas->pci_addr.function,\
+                         _sas->port_id, ##args);                       \
        } while (0)
 
 #endif /* _SFC_DEBUG_H_ */