]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Apr 2017 20:29:39 +0000 (16:29 -0400)
commit9b528812c8a22e61aad2c7f900c34cca29a1cfeb
tree699d6d62125446b4ba29b10f7ab2dfb00da2a8cd
parent423a2abc26cbb3b18b33d0b1c393671801c9c0e4
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