net/ixgbe: fix calling null function of VF
authorWei Dai <wei.dai@intel.com>
Wed, 10 May 2017 07:00:02 +0000 (15:00 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 May 2017 15:18:12 +0000 (17:18 +0200)
commit0fcd5ef9ebf0257360189d22c24cd5e30c47b06a
tree3458f402f3ba9fd8deb56a90f734a8af280b246e
parent881acd6ed6138b7be6d66cff5f02cb3b917d1cb8
net/ixgbe: fix calling null function of VF

hw->mac.ops.get_media-type() of ixgbe VF is NULL and should not
be called directly. It had better be replaced by calling
ixgbe_get_media_type( ) to avoid crash.

Fixes: c12d22f65b13 ("net/ixgbe: ensure link status is updated")

Signed-off-by: Wei Dai <wei.dai@intel.com>
Acked-by: Laurent Hardy <laurent.hardy@6wind.com>
drivers/net/ixgbe/ixgbe_ethdev.c