net/qede: fix scatter-gather
authorHarish Patil <harish.patil@qlogic.com>
Fri, 6 Jan 2017 08:16:45 +0000 (00:16 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:54 +0000 (19:40 +0100)
commit54ecae2e190bfc870123ce29c83dfed9a90bf636
tree71278e64d761f7a0c7cc8af4d5044ce45be7de14
parent14c66a451ef7c710595fd152a9f7435995089d5d
net/qede: fix scatter-gather

 - Make qede_process_sg_pkts() inline and add unlikely check
 - Fix mbuf segment chaining logic in qede_process_sg_pkts()
 - Change qede_encode_sg_bd() to return total segments required
 - Fix first TX buffer descriptor's length
 - Replace repetitive code using a macro

Fixes: bec0228816c0 ("net/qede: support scatter gather")

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