2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-dpdk: Assign value '0' to unsupported netdev features

When OVS&DPDK is used, DPDK doesn't support features 'advertised',
'supported' and 'peer'. If a physical port added to bridge, features
descirbed above can't be assigned, and the values are random.

Signed-off-by: Binbin Xu <xu.binbin1@zte.com.cn>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Binbin Xu
2016-10-13 23:18:20 +08:00
committed by Ben Pfaff
parent 77adbb6213
commit ca3d4f55fb

View File

@@ -1952,9 +1952,9 @@ out:
static int
netdev_dpdk_get_features(const struct netdev *netdev,
enum netdev_features *current,
enum netdev_features *advertised OVS_UNUSED,
enum netdev_features *supported OVS_UNUSED,
enum netdev_features *peer OVS_UNUSED)
enum netdev_features *advertised,
enum netdev_features *supported,
enum netdev_features *peer)
{
struct netdev_dpdk *dev = netdev_dpdk_cast(netdev);
struct rte_eth_link link;
@@ -1992,6 +1992,8 @@ netdev_dpdk_get_features(const struct netdev *netdev,
*current |= NETDEV_F_AUTONEG;
}
*advertised = *supported = *peer = 0;
return 0;
}