]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Correctly configure single ported VFs from the host
authorMatan Barak <matanb@mellanox.com>
Wed, 10 Sep 2014 13:41:53 +0000 (16:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 22:21:34 +0000 (15:21 -0700)
commit7bb5b6e3ba5b1a96cea7528019cc93fdef17e271
treec52dcd04f9912d257c686c7d461ea2ee253f51e0
parent5e2c15986e1d36f1eb72dbc68a5dd230e124332a
net/mlx4: Correctly configure single ported VFs from the host

Single port VFs are seen PCI wise on both ports of the PF (we don't have
single port PFs with ConnectX). With this in mind, it's possible for
virtualization tools to try and configure a single ported VF through
the "wrong" PF port.

To handle that, we use the PF driver mapping of single port VFs to NIC
ports and adjust the port value before calling into the low level
code that does the actual VF configuration

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