ixgbevf: improve performance and reduce size of ixgbevf_tx_map()
authorEmil Tantilov <[email protected]>
Mon, 11 Dec 2017 18:37:25 +0000 (10:37 -0800)
committerJeff Kirsher <[email protected]>
Fri, 26 Jan 2018 15:46:51 +0000 (07:46 -0800)
commit6f3554548ecca3d836dd17ffef21d706aae8dd25
tree827836c42387c33ee49edddb7dc3cef8139d1961
parent40b8178bc97dfcc688eb42d04df45e2f3c905830
ixgbevf: improve performance and reduce size of ixgbevf_tx_map()

Based on commit ec718254cbfe
("ixgbe: Improve performance and reduce size of ixgbe_tx_map")

This change is meant to both improve the performance and reduce the size of
ixgbevf_tx_map().

Expand the work done in the main loop by pushing first into tx_buffer.
This allows us to pull in the dma_mapping_error check, the tx_buffer value
assignment, and the initial DMA value assignment to the Tx descriptor.

Signed-off-by: Emil Tantilov <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c