[PATCH] net/mlx4_core: Correctly set PFC param if global pause is turned off.

2018-12-07 Thread Tarick Bedeir
rx_ppp and tx_ppp can be set between 0 and 255, so don't clamp to 1. Fixes: 6e8814ceb7e8 ("net/mlx4_en: Fix mixed PFC and Global pause user control requests") Signed-off-by: Tarick Bedeir --- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 4 ++-- 1 file changed, 2 insertions(

[PATCH] IB/mlx4: Test port number before querying type.

2018-07-02 Thread Tarick Bedeir
rdma_ah_find_type() can reach into ib_device->port_immutable with a potentially out-of-bounds port number, so check that the port number is valid first. Fixes: 44c58487d51a ("IB/core: Define 'ib' and 'roce' rdma_ah_attr types") Signed-off-by: Tarick Bedeir ---

Re: [PATCH] IB/mlx4: Test port number before querying type.

2018-07-03 Thread Tarick Bedeir
On Mon, Jul 2, 2018 at 11:21 PM Leon Romanovsky wrote: > > On Mon, Jul 02, 2018 at 02:02:34PM -0700, Tarick Bedeir wrote: > > rdma_ah_find_type() can reach into ib_device->port_immutable with a > > potentially out-of-bounds port number, so check that the port numb

[PATCH v2] net/mlx4_core: Fix error handling in mlx4_init_port_info.

2018-05-13 Thread Tarick Bedeir
requires no cleanup. Fixes: 096335b3f983 ("mlx4_core: Allow dynamic MTU configuration for IB ports") Signed-off-by: Tarick Bedeir --- v1 -> v2: Added "Fixes" tag. --- drivers/net/ethernet/mellanox/mlx4/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] net/mlx4_core: Fix error handling in mlx4_init_port_info.

2018-04-27 Thread Tarick Bedeir
requires no cleanup. Signed-off-by: Tarick Bedeir --- drivers/net/ethernet/mellanox/mlx4/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 4d84cab77105..e8a3a45d0b53 100644 --- a