]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 05:01:04 +0000 (21:01 -0800)
commitf7668b077763c450c7f4199e706f05c2e0bed304
treef096e22a5cc967707ff160e8d308ed8d169a74a6
parentff0e98149e065e432d17ca516524c271a1f278ee
bnxt_en: Refactor and simplify coalescing code.

Orabug: 2764835527648339

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>
(cherry picked from commit f8503969d27b2b26ff0adbce4b7d7cf4ba5e43c2)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c