ixgbe: code refactoring
authorVlad Zolotarov <vladz@cloudius-systems.com>
Mon, 30 Mar 2015 19:21:10 +0000 (22:21 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Apr 2015 20:55:33 +0000 (22:55 +0200)
commit7b5b00e7f1e491b6c346c70ecdb290b6e76ce057
treea7acf6a49c1d8b91218210339da8df895024c826
parent9820937f8a401fffb8bf42b48ae369344079c02a
ixgbe: code refactoring

   - ixgbe_rx_alloc_bufs():
      - Reset the rte_mbuf fields only when requested.
      - Take the RDT update out of the function.
      - Add the stub when RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC is not defined.
   - ixgbe_recv_scattered_pkts():
      - Take the code that updates the fields of the cluster's HEAD buffer into
        the inline function.

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