mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
dpif-netdev: enumerate dpif belonging to the right class
Since dpif_netdev_enumerate() is used for "netdev" and "dummy" class, it incorrectly lists dpif-netdevs as "dummy" and vice versa. This patches address the issue by changing the dpif-provider interface: a dpif_class parameter is passed to the 'enumerate' call to match the right class. Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
committed by
Ben Pfaff
parent
277876e9c1
commit
2240af2576
@@ -195,7 +195,8 @@ dpif_linux_cast(const struct dpif *dpif)
|
||||
}
|
||||
|
||||
static int
|
||||
dpif_linux_enumerate(struct sset *all_dps)
|
||||
dpif_linux_enumerate(struct sset *all_dps,
|
||||
const struct dpif_class *dpif_class OVS_UNUSED)
|
||||
{
|
||||
struct nl_dump dump;
|
||||
uint64_t reply_stub[NL_DUMP_BUFSIZE / 8];
|
||||
|
Reference in New Issue
Block a user