]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcfc9a541fac068e5c3df268edaa4f6740d64711a
tree16ef8297f3726699b3fccebd90975a1391ae78b3
parent1a503f57ca89523e5f498f4d89803444b5bf3858
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