]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Reorganize the coalescing parameters.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Oct 2017 15:51:27 +0000 (11:51 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 05:00:49 +0000 (21:00 -0800)
commitff0e98149e065e432d17ca516524c271a1f278ee
tree8995a637c5b72e3922a7bf48f96632e0ba29a8b3
parent03c79eea68f962be2667a949143b0b8e486f26fc
bnxt_en: Reorganize the coalescing parameters.

Orabug: 2764835527648339

The current IRQ coalescing logic is a little messy.  The ethtool
parameters are mapped to hardware parameters in a way that is difficult
to understand.  The first step is to better organize the parameters
by adding the new structure bnxt_coal.  The structure is used by both
the RX and TX sets of coalescing parameters.

Adjust the default coal_ticks to 14 us and 28 us for RX and TX.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 18775aa8a91fcd4cd07c722d575b4b852e3624c3)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
Conflicts:
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c