MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sfc_eth_dev_clear_ops

Function sfc_eth_dev_clear_ops

dpdk/drivers/net/sfc/sfc_ethdev.c:2947–2965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2945}
2946
2947static void
2948sfc_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
2967static const struct eth_dev_ops sfc_eth_dev_secondary_ops = {
2968 .dev_supported_ptypes_get = sfc_dev_supported_ptypes_get,

Callers 2

sfc_dev_closeFunction · 0.85
sfc_eth_dev_initFunction · 0.85

Calls 3

sfc_adapter_by_eth_devFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected