+/* Adapter private data shared by primary and secondary processes */
+struct sfc_adapter_shared {
+ unsigned int rxq_count;
+ struct sfc_rxq_info *rxq_info;
+
+ unsigned int txq_count;
+ struct sfc_txq_info *txq_info;
+
+ struct sfc_rss rss;
+
+ boolean_t isolated;
+ uint32_t tunnel_encaps;
+
+ struct rte_pci_addr pci_addr;
+ uint16_t port_id;
+
+ char *dp_rx_name;
+ char *dp_tx_name;
+};
+
+/* Adapter process private data */
+struct sfc_adapter_priv {
+ struct sfc_adapter_shared *shared;
+ const struct sfc_dp_rx *dp_rx;
+ const struct sfc_dp_tx *dp_tx;
+ uint32_t logtype_main;
+};
+
+static inline struct sfc_adapter_priv *
+sfc_adapter_priv_by_eth_dev(struct rte_eth_dev *eth_dev)
+{
+ struct sfc_adapter_priv *sap = eth_dev->process_private;
+
+ SFC_ASSERT(sap != NULL);
+ return sap;
+}
+