]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx4: adjust initial value of vl_cap in mlx4_SET_PORT
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 20 Mar 2012 10:53:51 +0000 (12:53 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:38:09 +0000 (14:38 -0700)
commit596c5ff4b7b31e54a565b312433fc1cbaf4095cb
tree7ec80d191e37c6033ab9ac426d26434f5cc7fe80
parentbd2177d112acf4fea4c8f9eabc8b24adb3665d2f
net/mlx4: adjust initial value of vl_cap in mlx4_SET_PORT

Adjust the initial value of vl_cap in mlx4_SET_PORT such that
only for CX3 devices we start with 8 VLs, in an attempt to
avoid errors such as:

 mlx4_core 0000:06:00.0: command 0xc failed: fw status = 0x40
 mlx4_core 0000:06:00.0: vhcr command:0xc slave:0 failed with error:0, status -12

to appear in the system log.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Aviad Yehezkel <aviadye@mellanox.co.il>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/net/ethernet/mellanox/mlx4/port.c