net/mlx4: add port parameter
authorGaetan Rivet <gaetan.rivet@6wind.com>
Mon, 27 Mar 2017 15:41:37 +0000 (17:41 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:51 +0000 (18:59 +0200)
commit001a520e419fdbab8d83f572c2a4414c7bc8ed07
tree0f2c2e7b785c3fc2ec7218b56a9fd0b2a5907943
parent22e6545fd02cab42332acd716b8921dd0aab3ad9
net/mlx4: add port parameter

Most ConnectX-3 adapters expose two physical ports on a single PCI bus
address.

Add a new port parameter allowing the user to choose
either or both physical ports to be used by the application.

This parameter is used as follows:

Selecting only the second port:
   -w 00:00.0,port=1

Selecting both ports:
   -w 00:00.0,port=0,port=1

If no parameter is given, the default behavior is unchanged: all ports
are probed.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
doc/guides/nics/mlx4.rst
drivers/net/mlx4/Makefile
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h