struct sfc_adapter_priv {
const struct sfc_dp_rx *dp_rx;
const struct sfc_dp_tx *dp_tx;
+ uint32_t logtype_main;
};
static inline struct sfc_adapter_priv *
uint16_t port_id;
struct rte_eth_dev *eth_dev;
struct rte_kvargs *kvargs;
- uint32_t logtype_main;
int socket_id;
efsys_bar_t mem_bar;
efx_family_t family;
goto fail_alloc_priv;
}
+ sap->logtype_main = logtype_main;
+
dp_rx = sfc_dp_find_rx_by_name(&sfc_dp_head, sa->dp_rx_name);
if (dp_rx == NULL) {
SFC_LOG(sa, RTE_LOG_ERR, logtype_main,
/* Required for logging */
sa->pci_addr = pci_dev->addr;
sa->port_id = dev->data->port_id;
- sa->logtype_main = logtype_main;
+ sa->priv.logtype_main = logtype_main;
sa->eth_dev = dev;
do { \
const struct sfc_adapter *_sa = (sa); \
\
- SFC_LOG(_sa, RTE_LOG_ERR, _sa->logtype_main, \
+ SFC_LOG(_sa, RTE_LOG_ERR, _sa->priv.logtype_main, \
__VA_ARGS__); \
} while (0)
do { \
const struct sfc_adapter *_sa = (sa); \
\
- SFC_LOG(_sa, RTE_LOG_WARNING, _sa->logtype_main, \
+ SFC_LOG(_sa, RTE_LOG_WARNING, _sa->priv.logtype_main, \
__VA_ARGS__); \
} while (0)
do { \
const struct sfc_adapter *_sa = (sa); \
\
- SFC_LOG(_sa, RTE_LOG_NOTICE, _sa->logtype_main, \
+ SFC_LOG(_sa, RTE_LOG_NOTICE, _sa->priv.logtype_main, \
__VA_ARGS__); \
} while (0)
do { \
const struct sfc_adapter *_sa = (sa); \
\
- SFC_LOG(_sa, RTE_LOG_INFO, _sa->logtype_main, \
+ SFC_LOG(_sa, RTE_LOG_INFO, _sa->priv.logtype_main, \
__VA_ARGS__); \
} while (0)
do { \
const struct sfc_adapter *_sa = (sa); \
\
- SFC_LOG(_sa, RTE_LOG_INFO, _sa->logtype_main, \
+ SFC_LOG(_sa, RTE_LOG_INFO, _sa->priv.logtype_main, \
RTE_FMT("%s(): " \
RTE_FMT_HEAD(__VA_ARGS__ ,), \
__func__, \