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

Function mana_dev_stop

dpdk/drivers/net/mana/mana.c:237–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237static int
238mana_dev_stop(struct rte_eth_dev *dev)
239{
240 int ret;
241 struct mana_priv *priv = dev->data->dev_private;
242
243 rxq_intr_disable(priv);
244
245 dev->tx_pkt_burst = mana_tx_burst_removed;
246 dev->rx_pkt_burst = mana_rx_burst_removed;
247
248 /* Stop datapath on secondary processes */
249 mana_mp_req_on_rxtx(dev, MANA_MP_REQ_STOP_RXTX);
250
251 rte_wmb();
252
253 ret = mana_stop_tx_queues(dev);
254 if (ret) {
255 DRV_LOG(ERR, "failed to stop tx queues");
256 return ret;
257 }
258
259 ret = mana_stop_rx_queues(dev);
260 if (ret) {
261 DRV_LOG(ERR, "failed to stop tx queues");
262 return ret;
263 }
264
265 return 0;
266}
267
268static int mana_intr_uninstall(struct mana_priv *priv);
269

Callers

nothing calls this directly

Calls 4

rxq_intr_disableFunction · 0.85
mana_mp_req_on_rxtxFunction · 0.85
mana_stop_tx_queuesFunction · 0.85
mana_stop_rx_queuesFunction · 0.85

Tested by

no test coverage detected