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

Function sfc_tx_queue_stop

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

Source from the content-addressed store, hash-verified

1510}
1511
1512static int
1513sfc_tx_queue_stop(struct rte_eth_dev *dev, uint16_t ethdev_qid)
1514{
1515 struct sfc_adapter_shared *sas = sfc_adapter_shared_by_eth_dev(dev);
1516 struct sfc_adapter *sa = sfc_adapter_by_eth_dev(dev);
1517 struct sfc_txq_info *txq_info;
1518 sfc_sw_index_t sw_index;
1519
1520 sfc_log_init(sa, "TxQ = %u", ethdev_qid);
1521
1522 sfc_adapter_lock(sa);
1523
1524 sw_index = sfc_txq_sw_index_by_ethdev_tx_qid(sas, ethdev_qid);
1525 sfc_tx_qstop(sa, sw_index);
1526
1527 txq_info = sfc_txq_info_by_ethdev_qid(sas, ethdev_qid);
1528 txq_info->deferred_started = B_FALSE;
1529
1530 sfc_adapter_unlock(sa);
1531 return 0;
1532}
1533
1534static efx_tunnel_protocol_t
1535sfc_tunnel_rte_type_to_efx_udp_proto(enum rte_eth_tunnel_type rte_type)

Callers

nothing calls this directly

Calls 5

sfc_adapter_by_eth_devFunction · 0.85
sfc_tx_qstopFunction · 0.85

Tested by

no test coverage detected