| 320 | } |
| 321 | |
| 322 | static inline struct sfc_adapter * |
| 323 | sfc_adapter_by_eth_dev(struct rte_eth_dev *eth_dev) |
| 324 | { |
| 325 | struct sfc_adapter_priv *sap = sfc_adapter_priv_by_eth_dev(eth_dev); |
| 326 | |
| 327 | SFC_ASSERT(rte_eal_process_type() == RTE_PROC_PRIMARY); |
| 328 | |
| 329 | return container_of(sap, struct sfc_adapter, priv); |
| 330 | } |
| 331 | |
| 332 | static inline struct sfc_adapter_shared * |
| 333 | sfc_sa2shared(struct sfc_adapter *sa) |
no test coverage detected