OSDN Git Service

staging/rdma/hfi1: Consider VL15 MTU also when calculating the maximum VL MTU
authorHarish Chegondi <harish.chegondi@intel.com>
Tue, 1 Dec 2015 20:38:24 +0000 (15:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:51:55 +0000 (13:51 -0800)
commit6cc6ad2eb886e8cb47e8b15e9d4132fe8275021f
treecd19458a7f0f3aad838d5394557d54120f52c643
parent6d0145308252ebcc1d373e6c3acd8f1ce7fec377
staging/rdma/hfi1: Consider VL15 MTU also when calculating the maximum VL MTU

Currently, only MTUs of VLs 0-7 are checked when calculating the maximum VL
MTU which is used to set the port MTU capability in DCC_CFG_PORT_CONFIG CSR
This can cause a port MTU capability to be set to 0 if MTUs of VLs 0-7 is 0
This would affect the VL15 traffic.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Reviewed-by: Arthur Kepner <arthur.kepner@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/chip.c