extern "C" {
#endif
-#define SFC_DEV_TO_PCI(eth_dev) \
- RTE_DEV_TO_PCI((eth_dev)->device)
-
#if EFSYS_OPT_RX_SCALE
/** RSS key length (bytes) */
#define SFC_RSS_KEY_SIZE 40
* V |
* +---------------+------------+
* | INITIALIZED |
- * +---------------+<-----------+
- * |.dev_configure |
- * V |
- * +---------------+ |
- * | CONFIGURING |------------^
- * +---------------+ failed |
- * |success |
- * | +---------------+
- * | | CLOSING |
- * | +---------------+
- * | ^
- * V |.dev_close
- * +---------------+------------+
- * | CONFIGURED |
+ * +---------------+<-----------<---------------+
+ * |.dev_configure | |
+ * V |failed |
+ * +---------------+------------+ |
+ * | CONFIGURING | |
+ * +---------------+----+ |
+ * |success | |
+ * | | +---------------+
+ * | | | CLOSING |
+ * | | +---------------+
+ * | | ^
+ * V |.dev_configure |
+ * +---------------+----+ |.dev_close
+ * | CONFIGURED |----------------------------+
* +---------------+<-----------+
* |.dev_start |
* V |
*/
rte_spinlock_t lock;
enum sfc_adapter_state state;
+ struct rte_pci_addr pci_addr;
+ uint16_t port_id;
struct rte_eth_dev *eth_dev;
struct rte_kvargs *kvargs;
bool debug_init;