OSDN Git Service

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)
commita79a5276aa2f844bd368c1d3d5a625e1fbefd989
treea8db414709298ea3018f2a121a9bf8c201d0882b
parentcb4d1d6261453677feb54e7a09c23fc7648dd6bc
bnxt_en: Fix ethtool -l pre-set max combined channel.

With commit d1e7925e6d80 ("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: d1e7925e6d80 ("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