]> git.proxmox.com Git - ovs.git/commitdiff
netdev-dpdk: Support the link speed of XL710
authorXu Binbin <xu.binbin1@zte.com.cn>
Mon, 13 Aug 2018 02:27:42 +0000 (10:27 +0800)
committerIan Stokes <ian.stokes@intel.com>
Mon, 27 Aug 2018 18:33:58 +0000 (19:33 +0100)
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>
lib/netdev-dpdk.c

index ac02a09acb9eb341dafaa84f8ee0745a57be36f3..e4b6cedf4a68bbaa6907055c53385b09d8c6d489 100644 (file)
@@ -2735,6 +2735,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) {