]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Refactor and simplify coalescing code.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Oct 2017 15:51:28 +0000 (11:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 15:02:45 +0000 (00:02 +0900)
commitb48bddb5fd4bc4de418f636de453db3de57e4f58
tree2dcab7a6e5d2ea3c9bd89510a3eb5f0e163437b3
parenta65bc8e2e8f9df00334b7e211dcef014a734335b
bnxt_en: Refactor and simplify coalescing code.

The mapping of the ethtool coalescing parameters to hardware parameters
is now done in bnxt_hwrm_set_coal_params().  The same function can
handle both RX and TX settings.  The code is now more clear.  Some
adjustments have been made to get better hardware settings.  The
coal_frames setting is now accurately set in hardware.  The max_timer
is set to coal_ticks value.

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