net/mlx4_core: Adjust port number in qp_attach wrapper when detaching
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Sun, 4 May 2014 14:07:22 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2014 19:48:21 +0000 (15:48 -0400)
commit531d9014d5c870fdf493e626c4b4e448273cb616
treeb239278ffe1ffbab63e3b115381393deaaf361db
parent9becd707841207652449a8dfd90fe9c476d88546
net/mlx4_core: Adjust port number in qp_attach wrapper when detaching

When using single ported VFs and the VF is using port 2, we need
to adjust the port accordingly (change it from 1 to 2).

Fixes: 449fc48 ('net/mlx4: Adapt code for N-Port VF')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c