net/i40e: relax barrier in Tx
To keep ordering of mixed accesses, rte_cio is sufficient. The rte_io barrier inside the I40E_PCI_REG_WRITE is overkill.[1] [1] http://inbox.dpdk.org/dev/CALBAE1M-ezVWCjqCZDBw+MMDEC4O9 qf0Kpn89EMdGDajepKoZQ@mail.gmail.com Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: stable@dpdk.org Signed-off-by: Gavin Hu <gavin.hu@arm.com> Reviewed-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
parent
496608a079
commit
bade47a757
@ -1248,7 +1248,8 @@ end_of_tx:
|
||||
(unsigned) txq->port_id, (unsigned) txq->queue_id,
|
||||
(unsigned) tx_id, (unsigned) nb_tx);
|
||||
|
||||
I40E_PCI_REG_WRITE(txq->qtx_tail, tx_id);
|
||||
rte_cio_wmb();
|
||||
I40E_PCI_REG_WRITE_RELAXED(txq->qtx_tail, tx_id);
|
||||
txq->tx_tail = tx_id;
|
||||
|
||||
return nb_tx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user