bnxt_en: Reorganize the coalescing parameters.
commit18775aa8a91fcd4cd07c722d575b4b852e3624c3
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Oct 2017 15:51:27 +0000 (26 11:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 15:02:45 +0000 (28 00:02 +0900)
tree64a14d4525fcb30bd5a43b40fa5e443ea4b25590
parent49f7972fd16407b3d1f03c2d447d2f1e1b95e9ba
bnxt_en: Reorganize the coalescing parameters.

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c