]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita42a1e1cfcbdcdfd0936777709180745a0b9b6de
treeb239278ffe1ffbab63e3b115381393deaaf361db
parent90e74d1da3947b0a9e1b1fbf73d61c297b13650e
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: fc1f0f0 ('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