bnxt_en: Refactor TPA logic.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 29 Jul 2019 10:10:20 +0000 (06:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 21:19:08 +0000 (14:19 -0700)
commit4a228a3a5e58e5c05c6ffb5b430e5cb936865a8b
tree16ef8297f3726699b3fccebd90975a1391ae78b3
parent218a8a71d91ab9e52205f4098cf1fe121c98850e
bnxt_en: Refactor TPA logic.

Refactor the TPA logic slightly, so that the code can be more easily
extended to support TPA on the new 57500 chips.  In particular, the
logic to get the next aggregation completion is refactored into a
new function bnxt_get_agg() so that this operation is made more
generalized.  This operation will be different on the new chip in TPA
mode.  The logic to recycle the aggregation buffers has a new start
index parameter added for the same purpose.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c