ixgbe: prefix global function
All global functions in a driver should use the same prefix to avoid any future name collisions. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Bruce Richardson <bruce.richardson@intel.com> [Bruce: one instance was missing] Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
This commit is contained in:
parent
b74381cf91
commit
4bb4414040
@ -749,7 +749,7 @@ eth_ixgbe_dev_init(struct rte_eth_dev *eth_dev)
|
|||||||
* Tx queue may not initialized by primary process */
|
* Tx queue may not initialized by primary process */
|
||||||
if (eth_dev->data->tx_queues) {
|
if (eth_dev->data->tx_queues) {
|
||||||
txq = eth_dev->data->tx_queues[eth_dev->data->nb_tx_queues-1];
|
txq = eth_dev->data->tx_queues[eth_dev->data->nb_tx_queues-1];
|
||||||
set_tx_function(eth_dev, txq);
|
ixgbe_set_tx_function(eth_dev, txq);
|
||||||
} else {
|
} else {
|
||||||
/* Use default TX function if we get here */
|
/* Use default TX function if we get here */
|
||||||
PMD_INIT_LOG(INFO, "No TX queues configured yet. "
|
PMD_INIT_LOG(INFO, "No TX queues configured yet. "
|
||||||
|
@ -1764,7 +1764,7 @@ static const struct ixgbe_txq_ops def_txq_ops = {
|
|||||||
* in dev_init by secondary process when attaching to an existing ethdev.
|
* in dev_init by secondary process when attaching to an existing ethdev.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq)
|
ixgbe_set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq)
|
||||||
{
|
{
|
||||||
/* Use a simple Tx queue (no offloads, no multi segs) if possible */
|
/* Use a simple Tx queue (no offloads, no multi segs) if possible */
|
||||||
if (((txq->txq_flags & IXGBE_SIMPLE_FLAGS) == IXGBE_SIMPLE_FLAGS)
|
if (((txq->txq_flags & IXGBE_SIMPLE_FLAGS) == IXGBE_SIMPLE_FLAGS)
|
||||||
@ -1959,7 +1959,7 @@ ixgbe_dev_tx_queue_setup(struct rte_eth_dev *dev,
|
|||||||
txq->sw_ring, txq->tx_ring, txq->tx_ring_phys_addr);
|
txq->sw_ring, txq->tx_ring, txq->tx_ring_phys_addr);
|
||||||
|
|
||||||
/* set up vector or scalar TX function as appropriate */
|
/* set up vector or scalar TX function as appropriate */
|
||||||
set_tx_function(dev, txq);
|
ixgbe_set_tx_function(dev, txq);
|
||||||
|
|
||||||
txq->ops->reset(txq);
|
txq->ops->reset(txq);
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ struct ixgbe_txq_ops {
|
|||||||
* the queue parameters. Used in tx_queue_setup by primary process and then
|
* the queue parameters. Used in tx_queue_setup by primary process and then
|
||||||
* in dev_init by secondary process when attaching to an existing ethdev.
|
* in dev_init by secondary process when attaching to an existing ethdev.
|
||||||
*/
|
*/
|
||||||
void set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq);
|
void ixgbe_set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq);
|
||||||
|
|
||||||
#ifdef RTE_IXGBE_INC_VECTOR
|
#ifdef RTE_IXGBE_INC_VECTOR
|
||||||
uint16_t ixgbe_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
|
uint16_t ixgbe_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
|
||||||
|
Loading…
Reference in New Issue
Block a user