net/qede: fix minimum buffer size and scatter Rx check
authorHarish Patil <harish.patil@qlogic.com>
Fri, 6 Jan 2017 08:16:46 +0000 (00:16 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:54 +0000 (19:40 +0100)
commitf6033f2497e7d01d8c6f0d691e2f86937597aa35
tree5ac68e3ecdb9e392f659aafcebb253e2d23e844d
parent54ecae2e190bfc870123ce29c83dfed9a90bf636
net/qede: fix minimum buffer size and scatter Rx check

 - Fix minimum RX buffer size to 1024B
 - Force enable scatter/gather mode if given RX buf size is lesser than MTU
 - Adjust RX buffer size to cache-line size with overhead included

Fixes: bec0228816c0 ("net/qede: support scatter gather")
Fixes: 2ea6f76aff40 ("qede: add core driver")

Signed-off-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/qede/qede_ethdev.c
drivers/net/qede/qede_rxtx.c
drivers/net/qede/qede_rxtx.h