]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_core/ib: set the IB port MTU to 2K
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 14 Oct 2016 23:47:49 +0000 (16:47 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 25 Oct 2016 07:39:49 +0000 (00:39 -0700)
commit7bdb7f0217fa0503887565fae9531df71f7d2583
treebc5cdc23c7f0bc87580d7ec1513f5e0db1c08a68
parent53d1b5cd28bff4250a8dabba70cf7a56b97d761f
mlx4_core/ib: set the IB port MTU to 2K

'commit 096335b3f983 ("mlx4_core: Allow dynamic MTU configuration for IB
ports")' overwrite the default port MTU and sets it as 4K. Since this
directly impacts the HW VLs supported and Oracle workloads heavily uses
all supported 8 VLs for traffic classification, 2K default needs to
be kept as is.

We initilise it to default 2k so that the feature(dynamic MTU configuration)
is still available for non DB users to set the desired MTU value using sysctl.

Also for CX2 cards, commit  596c5ff4b7b3 ("net/mlx4: adjust initial
value of vl_cap in mlx4_SET_PORT") broke the vl_cap which made the
supported VLs to 4 irrespective of MTU size.

Orabug: 24946479

Tested-by: Pierre Orzechowski <pierre.e.orzechowski@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/port.c