diff options
author | 2016-02-21 18:35:44 +0200 | |
---|---|---|
committer | 2016-02-21 18:35:44 +0200 | |
commit | d126c3bc9ab8d5e2008fbf7dfc7740b51bdd1640 (patch) | |
tree | b2c3cdfe587bb57a340d062fc23e42a2da0f373d /src/dpdk22/drivers | |
parent | 2f75f197b0f948aa53e88e479d85cf83a64057c4 (diff) |
return 10G instead of 40G on x710 cards
Diffstat (limited to 'src/dpdk22/drivers')
-rw-r--r-- | src/dpdk22/drivers/net/i40e/i40e_ethdev.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dpdk22/drivers/net/i40e/i40e_ethdev.c b/src/dpdk22/drivers/net/i40e/i40e_ethdev.c index 7542ade1..0a1e9efc 100644 --- a/src/dpdk22/drivers/net/i40e/i40e_ethdev.c +++ b/src/dpdk22/drivers/net/i40e/i40e_ethdev.c @@ -2071,6 +2071,19 @@ i40e_read_stats_registers(struct i40e_pf *pf, struct i40e_hw *hw) i40e_update_vsi_stats(pf->main_vsi); } +// TREX_PATCH +int +i40e_trex_get_speed(struct rte_eth_dev *dev) +{ + struct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private); + + if (i40e_is_40G_device(hw->device_id)) { + return 40; + } else { + return 10; + } +} + /* Get all statistics of a port */ static void i40e_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) |