]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix ethtool -l pre-set max combined channel.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 13 Feb 2017 00:18:12 +0000 (19:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2017 03:18:49 +0000 (22:18 -0500)
commitcd5b39c587587d19c09333f65251771e9ca8442f
treea8db414709298ea3018f2a121a9bf8c201d0882b
parent365877b0ac1e321c0cc6a925987d9e7e27f868e9
bnxt_en: Fix ethtool -l pre-set max combined channel.

With commit cd5ab1345043 ("bnxt_en: Centralize logic to reserve rings."),
ring allocation for combined rings has become stricter.  A combined
ring must now have an rx-tx ring pair.  The pre-set max. for combined
rings should now be min(rx, tx).

Fixes: cd5ab1345043 ("bnxt_en: Centralize logic to reserve rings.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c