net/mlx4: Add data structures to support N-Ports per VF
authorMatan Barak <matanb@mellanox.com>
Wed, 19 Mar 2014 16:11:50 +0000 (18:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 20:18:29 +0000 (16:18 -0400)
commitb1aa23eef173abf669478765772c1d024fdff60c
treed803af5ced129cbb6595ec3e1438f0663a04048f
parent8c374aca3a051dd6a5786dc5672d3a04514af08a
net/mlx4: Add data structures to support N-Ports per VF

Adds the required data structures to support VFs with N (1 or 2)
ports instead of always using the number of physical ports.

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/main.c
include/linux/mlx4/device.h