]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qede: prevent chip hang when increasing channels
authorSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Thu, 5 May 2016 04:35:16 +0000 (00:35 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:29:36 +0000 (12:29 -0700)
commit566ded898491f277dff06d37e41030322b520028
tree8cd06fd67bf3362ecf9051e0d6e05375d601240c
parent16bc981a374bfc7bca2a04786daed999d3509524
qede: prevent chip hang when increasing channels

qede requires qed to provide enough resources to accommodate 16 combined
channels, but that upper-bound isn't actually being enforced by it.
Instead, qed inform back to qede how many channels can be opened based on
available resources - but that calculation doesn't really take into account
the resources requested by qede; Instead it considers other FW/HW available
resources.

As a result, if a user would increase the number of channels to more than
16 [e.g., using ethtool] the chip would hang.

This change increments the resources requested by qede to 64 combined
channels instead of 16; This value is an upper bound on the possible
available channels [due to other FW/HW resources].

Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qede/qede_main.c