]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ixgbe/base/ixgbe_x550.c
ixgbe/base: add X550em autoneg flow control
[dpdk.git] / drivers / net / ixgbe / base / ixgbe_x550.c
index bc0ca53e0c0bc7fb9f463d18fdb85fa7e7e6a228..a05bea0c61104cb5b7106575474cd7966c0d03c1 100644 (file)
@@ -382,7 +382,11 @@ s32 ixgbe_init_ops_X550EM(struct ixgbe_hw *hw)
        mac->ops.get_supported_physical_layer =
                                    ixgbe_get_supported_physical_layer_X550em;
 
+       if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper)
+               mac->ops.setup_fc = ixgbe_setup_fc_generic;
+       else
                mac->ops.setup_fc = ixgbe_setup_fc_X550em;
+
        mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em;
        mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550em;