]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Fix possible error in populating max_tc field.
authorsudarsana.kalluru@cavium.com <sudarsana.kalluru@cavium.com>
Wed, 19 Apr 2017 10:19:52 +0000 (03:19 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:31:50 +0000 (22:31 -0700)
commit4a274b883fc9317bc6259fe29ff881105f149b47
tree809dfcbab1128e245a89a3cb80be48e157b90f9f
parent236b61c1148a2b53b5bfef98aa10a9efa4dff24d
qed: Fix possible error in populating max_tc field.

Orabug: 26783820

Some adapters may not publish the max_tc value. Populate the default
value for max_tc field in case the mfw didn't provide one.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit 66367dab30c7040e638e5496a47184cfc8ba39a4 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c