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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Apr 2017 20:29:39 +0000 (16:29 -0400)
commit66367dab30c7040e638e5496a47184cfc8ba39a4
tree699d6d62125446b4ba29b10f7ab2dfb00da2a8cd
parente9156cd26a495a18706e796f02a81fee41ec14f4
qed: Fix possible error in populating max_tc field.

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>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c