mlx4: check if port is configured for ethernet
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Tue, 22 Mar 2016 10:34:26 +0000 (11:34 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 18:02:06 +0000 (19:02 +0100)
commit7b06615392290705bd662c2ad71d397b519346e1
treece597a12d9b548163bc6f2269a471e6058bcabe6
parentf0aa0e9579bc7729c66bb661bb7aca0dfb18400b
mlx4: check if port is configured for ethernet

Notify user otherwise. A similar check has already been added to mlx5 in
commit "mlx5: check port is configured as ethernet device".

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c