| 2945 | } |
| 2946 | |
| 2947 | static void |
| 2948 | sfc_eth_dev_clear_ops(struct rte_eth_dev *dev) |
| 2949 | { |
| 2950 | struct sfc_adapter *sa = sfc_adapter_by_eth_dev(dev); |
| 2951 | struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev); |
| 2952 | |
| 2953 | dev->dev_ops = NULL; |
| 2954 | dev->tx_pkt_prepare = NULL; |
| 2955 | dev->rx_pkt_burst = NULL; |
| 2956 | dev->tx_pkt_burst = NULL; |
| 2957 | |
| 2958 | rte_free(sas->dp_tx_name); |
| 2959 | sas->dp_tx_name = NULL; |
| 2960 | sa->priv.dp_tx = NULL; |
| 2961 | |
| 2962 | rte_free(sas->dp_rx_name); |
| 2963 | sas->dp_rx_name = NULL; |
| 2964 | sa->priv.dp_rx = NULL; |
| 2965 | } |
| 2966 | |
| 2967 | static const struct eth_dev_ops sfc_eth_dev_secondary_ops = { |
| 2968 | .dev_supported_ptypes_get = sfc_dev_supported_ptypes_get, |
no test coverage detected