mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
netlink-socket: add support for OVS_WIN_NETDEV_FAMILY
In this patch, we add support for family ID lookup of OVS_WIN_NETDEV_FAMILY. Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Ankur Sharma <ankursharma@vmware.com> Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Tested-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1351,6 +1351,11 @@ do_lookup_genl_family(const char *name, struct nlattr **attrs,
|
||||
family_name = OVS_FLOW_FAMILY;
|
||||
family_version = OVS_FLOW_VERSION;
|
||||
family_attrmax = OVS_FLOW_ATTR_MAX;
|
||||
} else if (!strcmp(name, OVS_WIN_NETDEV_FAMILY)) {
|
||||
family_id = OVS_WIN_NL_NETDEV_FAMILY_ID;
|
||||
family_name = OVS_WIN_NETDEV_FAMILY;
|
||||
family_version = OVS_WIN_NETDEV_VERSION;
|
||||
family_attrmax = OVS_WIN_NETDEV_ATTR_MAX;
|
||||
} else {
|
||||
ofpbuf_delete(reply);
|
||||
return EINVAL;
|
||||
|
Reference in New Issue
Block a user