ixgbe: remove simple scalar scattered Rx method
authorVlad Zolotarov <vladz@cloudius-systems.com>
Wed, 29 Apr 2015 08:38:16 +0000 (11:38 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 7 May 2015 17:07:28 +0000 (19:07 +0200)
commit9d8a92628f21c43c88f7be9654b3b7699b4c6d2a
treee12b6d3cbd03c7faf97702c3eeafafbbcd735026
parenta539431ee8faa74a028eb31ef47306b084995571
ixgbe: remove simple scalar scattered Rx method

Kill ixgbe_recv_scattered_pkts() - use ixgbe_recv_pkts_lro_single_alloc()
instead.

Work against HW queues in LRO and scattered Rx cases is exactly the same.
Therefore we may drop the inferior callback.

This patch also changes the sw_rsc_ring allocation in the
ixgbe_dev_rx_queue_setup() to always allocate sw_rsc_ring instead of
explicitly allocating it in all possible cases when it may be needed:
LRO and/or scattered Rx.

This will only impose sizeof(void*) * IXGBE_MAX_RING_DESC = 32KB overhead
per Rx queue as a price for a much simpler code, which seems reasonable.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_pmd_ixgbe/ixgbe_ethdev.c
lib/librte_pmd_ixgbe/ixgbe_ethdev.h
lib/librte_pmd_ixgbe/ixgbe_rxtx.c