summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXu Binbin <xu.binbin1@zte.com.cn>2018-08-13 10:27:42 +0800
committerIan Stokes <ian.stokes@intel.com>2018-10-19 11:29:50 +0100
commit4d6b80b78cb7b43eebeadfcd2399fbc6c5a59795 (patch)
tree1c48f39b9ab717336561ff84e3e5f7f7ff700c78
parent1dea6844708fb4b14024ff7dbdf78c9aa090db80 (diff)
downloadopenvswitch-4d6b80b78cb7b43eebeadfcd2399fbc6c5a59795.tar.gz
netdev-dpdk: Support the link speed of XL710
In the scenario of XL710, the link speed which stored in the table of Interface is not 40G. Because the implementation of query of link speed only support to 10G, the parameter 'current' will be a random value in the scenario of higher link speed. In this case, incorrect link speed of XL710 nic will be stored in the database. Signed-off-by: Xu Binbin <xu.binbin1@zte.com.cn> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
-rw-r--r--lib/netdev-dpdk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index fbed6c44d..31a1d7414 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -2059,6 +2059,9 @@ netdev_dpdk_get_features(const struct netdev *netdev,
if (link.link_speed == ETH_SPEED_NUM_10G) {
*current = NETDEV_F_10GB_FD;
}
+ if (link.link_speed == ETH_SPEED_NUM_40G) {
+ *current = NETDEV_F_40GB_FD;
+ }
}
if (link.link_autoneg) {