cxgbe: improve Rx performance
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 7 Jul 2015 17:12:28 +0000 (22:42 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Jul 2015 00:59:52 +0000 (02:59 +0200)
commit78fc1a716ae8e14ad8244126d6fdd2b569f87034
treea9d226877d8edbd2c4a558e081b1fb5dc7147a7f
parentc4bcc342c8ee37b4692e79e7fac816df4f55d8ec
cxgbe: improve Rx performance

CXGBE PMD rx allocates a new mbuf everytime, which could lead to performance
hit.  Instead, do bulk allocation of mbufs and re-use them.

Also, simplify the overall rx-handler, and update its logic to fix rx perf.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
drivers/net/cxgbe/base/adapter.h
drivers/net/cxgbe/base/t4_regs_values.h
drivers/net/cxgbe/sge.c