net/qede: fix LRO handling
authorHarish Patil <harish.patil@cavium.com>
Tue, 25 Apr 2017 07:28:38 +0000 (00:28 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 12:46:17 +0000 (14:46 +0200)
commit680c850f7e517ad8dac789ba8ed8b2705e12fd6a
tree603fc0cbdb640cc18be832523a0a4af84ee655ee
parentb3fb8c5ea03518be598f3aafa87c51df66702a6a
net/qede: fix LRO handling

- Add a common routine to handle ETH_RX_CQE_TYPE_TPA_CONT and
ETH_RX_CQE_TYPE_TPA_END.
- Remove enum qede_agg_state since there is no need to maintain
aggregation state.
- Modify the segment chaining logic by tracking head and tail
TPA segments of each aggregation.
- Add more debug and comments.
- Mark the packet as PKT_RX_LRO.

Fixes: 29540be7efce ("net/qede: support LRO/TSO offloads")

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