net/mlx4: add link up/down callback functions
authorFengtian Guo <fengtian.guo@6wind.com>
Mon, 4 Jul 2016 08:24:19 +0000 (10:24 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 5 Jul 2016 10:53:50 +0000 (12:53 +0200)
commitb12a4c911ab0c69af88ecc3b3b1beae1b175c69b
treea88ed417b5769fcf5ece3ecaaf498051754f65b1
parent3d04e05055d783b9499c37ffb869393a3d951287
net/mlx4: add link up/down callback functions

Implement dev_set_link_up and dev_set_link_down device
operations. Code is inspired by mlx5 implementations.

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