linux/drivers/net/ethernet/broadcom/bnxt
Michael Chan 47f8e8b9bb bnxt_en: Fix ethtool -l|-L inconsistent channel counts.
The existing code is inconsistent in reporting and accepting the combined
channel count.  bnxt_get_channels() reports maximum combined as the
maximum rx count.  bnxt_set_channels() accepts combined count that
cannot be bigger than max rx or max tx.

For example, if max rx = 2 and max tx = 1, we report max supported
combined to be 2.  But if the user tries to set combined to 2, it will
fail because 2 is bigger than max tx which is 1.

Fix the code to be consistent.  Max allowed combined = max(max_rx, max_tx).
We will accept a combined channel count <= max(max_rx, max_tx).

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-19 21:32:25 -04:00
..
bnxt.c bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt.h bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt_ethtool.c bnxt_en: Fix ethtool -l|-L inconsistent channel counts. 2016-09-19 21:32:25 -04:00
bnxt_ethtool.h bnxt_en: Add EEE setup code. 2016-04-05 16:20:46 -04:00
bnxt_fw_hdr.h bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt_hsi.h bnxt_en: Update to firmware interface spec 1.5.1. 2016-09-19 21:32:24 -04:00
bnxt_nvm_defs.h bnxt_en: Add support for updating flash more securely 2016-07-02 14:52:35 -04:00
bnxt_sriov.c bnxt_en: Add function for VF driver to query default VLAN. 2016-06-14 19:16:13 -04:00
bnxt_sriov.h bnxt_en: Call firmware to approve VF MAC address change. 2016-04-11 14:58:45 -04:00
Makefile