Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 869942 Details for
Bug 1066705
Add vxlan interface support
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[PATCH 1/1] fixup! platform, devices: add support for vxlan devices
0001-fixup-platform-devices-add-support-for-vxlan-devices.patch (text/plain), 11.67 KB, created by
Thomas Haller
on 2014-03-03 14:23:27 UTC
(
hide
)
Description:
[PATCH 1/1] fixup! platform, devices: add support for vxlan devices
Filename:
MIME Type:
Creator:
Thomas Haller
Created:
2014-03-03 14:23:27 UTC
Size:
11.67 KB
patch
obsolete
>From 0306bbdb82089934fdce75ef26b65b7d2a3b514b Mon Sep 17 00:00:00 2001 >From: Thomas Haller <thaller@redhat.com> >Date: Mon, 3 Mar 2014 15:16:11 +0100 >Subject: [PATCH 1/1] fixup! platform, devices: add support for vxlan devices > >--- > src/devices/nm-device-vxlan.c | 278 ++++++++++++++++++++---------------------- > 1 file changed, 133 insertions(+), 145 deletions(-) > >diff --git a/src/devices/nm-device-vxlan.c b/src/devices/nm-device-vxlan.c >index 0be5710..1905bab 100644 >--- a/src/devices/nm-device-vxlan.c >+++ b/src/devices/nm-device-vxlan.c >@@ -61,6 +61,8 @@ enum { > > LAST_PROP > }; >+static GParamSpec *obj_properties[LAST_PROP] = { NULL, }; >+#define _NOTIFY(config, prop) G_STMT_START { g_object_notify_by_pspec (G_OBJECT (config), obj_properties[prop]); } G_STMT_END > > /**************************************************************/ > >@@ -80,41 +82,41 @@ update_properties (NMDevice *device) > g_object_freeze_notify (object); > > if (priv->props.parent_ifindex != props.parent_ifindex) >- g_object_notify (object, NM_DEVICE_VXLAN_PARENT); >+ _NOTIFY (device, PROP_PARENT); > if (priv->props.id != props.id) >- g_object_notify (object, NM_DEVICE_VXLAN_ID); >+ _NOTIFY (device, PROP_ID); > if (priv->props.group != props.group) >- g_object_notify (object, NM_DEVICE_VXLAN_GROUP); >+ _NOTIFY (device, PROP_GROUP); > if (priv->props.local != props.local) >- g_object_notify (object, NM_DEVICE_VXLAN_LOCAL); >+ _NOTIFY (device, PROP_LOCAL); > if (memcmp (&priv->props.group6, &props.group6, sizeof (props.group6)) != 0) >- g_object_notify (object, NM_DEVICE_VXLAN_GROUP); >+ _NOTIFY (device, PROP_GROUP); > if (memcmp (&priv->props.local6, &props.local6, sizeof (props.local6)) != 0) >- g_object_notify (object, NM_DEVICE_VXLAN_LOCAL); >+ _NOTIFY (device, PROP_LOCAL); > if (priv->props.tos != props.tos) >- g_object_notify (object, NM_DEVICE_VXLAN_TOS); >+ _NOTIFY (device, PROP_TOS); > if (priv->props.ttl != props.ttl) >- g_object_notify (object, NM_DEVICE_VXLAN_TTL); >+ _NOTIFY (device, PROP_TTL); > if (priv->props.learning != props.learning) >- g_object_notify (object, NM_DEVICE_VXLAN_LEARNING); >+ _NOTIFY (device, PROP_LEARNING); > if (priv->props.ageing != props.ageing) >- g_object_notify (object, NM_DEVICE_VXLAN_AGEING); >+ _NOTIFY (device, PROP_AGEING); > if (priv->props.limit != props.limit) >- g_object_notify (object, NM_DEVICE_VXLAN_LIMIT); >+ _NOTIFY (device, PROP_LIMIT); > if (priv->props.dst_port != props.dst_port) >- g_object_notify (object, NM_DEVICE_VXLAN_DST_PORT); >+ _NOTIFY (device, PROP_DST_PORT); > if (priv->props.src_port_min != props.src_port_min) >- g_object_notify (object, NM_DEVICE_VXLAN_SRC_PORT_MIN); >+ _NOTIFY (device, PROP_SRC_PORT_MIN); > if (priv->props.src_port_max != props.src_port_max) >- g_object_notify (object, NM_DEVICE_VXLAN_SRC_PORT_MAX); >+ _NOTIFY (device, PROP_SRC_PORT_MAX); > if (priv->props.proxy != props.proxy) >- g_object_notify (object, NM_DEVICE_VXLAN_PROXY); >+ _NOTIFY (device, PROP_PROXY); > if (priv->props.rsc != props.rsc) >- g_object_notify (object, NM_DEVICE_VXLAN_RSC); >+ _NOTIFY (device, PROP_RSC); > if (priv->props.l2miss != props.l2miss) >- g_object_notify (object, NM_DEVICE_VXLAN_L2MISS); >+ _NOTIFY (device, PROP_L2MISS); > if (priv->props.l3miss != props.l3miss) >- g_object_notify (object, NM_DEVICE_VXLAN_L3MISS); >+ _NOTIFY (device, PROP_L3MISS); > > memcpy (&priv->props, &props, sizeof (NMPlatformVxlanProperties)); > >@@ -238,133 +240,119 @@ nm_device_vxlan_class_init (NMDeviceVxlanClass *klass) > device_class->link_changed = link_changed; > > /* properties */ >- g_object_class_install_property >- (object_class, PROP_PARENT, >- g_param_spec_boxed (NM_DEVICE_VXLAN_PARENT, >- "Parent", >- "Parent device", >- DBUS_TYPE_G_OBJECT_PATH, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_ID, >- g_param_spec_uint (NM_DEVICE_VXLAN_ID, >- "Id", >- "Id", >- 0, G_MAXUINT32, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_GROUP, >- g_param_spec_string (NM_DEVICE_VXLAN_GROUP, >- "Group", >- "Group", >- NULL, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_LOCAL, >- g_param_spec_string (NM_DEVICE_VXLAN_LOCAL, >- "Local", >- "Local", >- NULL, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_TOS, >- g_param_spec_uchar (NM_DEVICE_VXLAN_TOS, >- "ToS", >- "ToS", >- 0, 255, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_TTL, >- g_param_spec_uchar (NM_DEVICE_VXLAN_TTL, >- "TTL", >- "TTL", >- 0, 255, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_LEARNING, >- g_param_spec_boolean (NM_DEVICE_VXLAN_LEARNING, >- "Learning", >- "Learning", >- FALSE, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_AGEING, >- g_param_spec_uint (NM_DEVICE_VXLAN_AGEING, >- "Ageing", >- "Ageing", >- 0, G_MAXUINT32, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_LIMIT, >- g_param_spec_uint (NM_DEVICE_VXLAN_LIMIT, >- "Limit", >- "Limit", >- 0, G_MAXUINT32, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_DST_PORT, >- g_param_spec_uint (NM_DEVICE_VXLAN_DST_PORT, >- "Destination port", >- "Destination port", >- 0, 65535, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_SRC_PORT_MIN, >- g_param_spec_uint (NM_DEVICE_VXLAN_SRC_PORT_MIN, >- "Source port min", >- "Minimum source port", >- 0, 65535, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_SRC_PORT_MAX, >- g_param_spec_uint (NM_DEVICE_VXLAN_SRC_PORT_MAX, >- "Source port max", >- "Maximum source port", >- 0, 65535, 0, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_PROXY, >- g_param_spec_boolean (NM_DEVICE_VXLAN_PROXY, >- "Proxy", >- "Proxy", >- FALSE, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_RSC, >- g_param_spec_boolean (NM_DEVICE_VXLAN_RSC, >- "RSC", >- "RSC", >- FALSE, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_L2MISS, >- g_param_spec_boolean (NM_DEVICE_VXLAN_L2MISS, >- "L2miss", >- "L2miss", >- FALSE, >- G_PARAM_READABLE)); >- >- g_object_class_install_property >- (object_class, PROP_L3MISS, >- g_param_spec_boolean (NM_DEVICE_VXLAN_L3MISS, >- "L3miss", >- "L3miss", >- FALSE, >- G_PARAM_READABLE)); >+ obj_properties[PROP_PARENT] = >+ g_param_spec_boxed (NM_DEVICE_VXLAN_PARENT, >+ "Parent", >+ "Parent device", >+ DBUS_TYPE_G_OBJECT_PATH, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_ID] = >+ g_param_spec_uint (NM_DEVICE_VXLAN_ID, >+ "Id", >+ "Id", >+ 0, G_MAXUINT32, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_GROUP] = >+ g_param_spec_string (NM_DEVICE_VXLAN_GROUP, >+ "Group", >+ "Group", >+ NULL, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_LOCAL] = >+ g_param_spec_string (NM_DEVICE_VXLAN_LOCAL, >+ "Local", >+ "Local", >+ NULL, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_TOS] = >+ g_param_spec_uchar (NM_DEVICE_VXLAN_TOS, >+ "ToS", >+ "ToS", >+ 0, 255, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_TTL] = >+ g_param_spec_uchar (NM_DEVICE_VXLAN_TTL, >+ "TTL", >+ "TTL", >+ 0, 255, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_LEARNING] = >+ g_param_spec_boolean (NM_DEVICE_VXLAN_LEARNING, >+ "Learning", >+ "Learning", >+ FALSE, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_AGEING] = >+ g_param_spec_uint (NM_DEVICE_VXLAN_AGEING, >+ "Ageing", >+ "Ageing", >+ 0, G_MAXUINT32, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_LIMIT] = >+ g_param_spec_uint (NM_DEVICE_VXLAN_LIMIT, >+ "Limit", >+ "Limit", >+ 0, G_MAXUINT32, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_DST_PORT] = >+ g_param_spec_uint (NM_DEVICE_VXLAN_DST_PORT, >+ "Destination port", >+ "Destination port", >+ 0, 65535, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_SRC_PORT_MIN] = >+ g_param_spec_uint (NM_DEVICE_VXLAN_SRC_PORT_MIN, >+ "Source port min", >+ "Minimum source port", >+ 0, 65535, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_SRC_PORT_MAX] = >+ g_param_spec_uint (NM_DEVICE_VXLAN_SRC_PORT_MAX, >+ "Source port max", >+ "Maximum source port", >+ 0, 65535, 0, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_PROXY] = >+ g_param_spec_boolean (NM_DEVICE_VXLAN_PROXY, >+ "Proxy", >+ "Proxy", >+ FALSE, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_RSC] = >+ g_param_spec_boolean (NM_DEVICE_VXLAN_RSC, >+ "RSC", >+ "RSC", >+ FALSE, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_L2MISS] = >+ g_param_spec_boolean (NM_DEVICE_VXLAN_L2MISS, >+ "L2miss", >+ "L2miss", >+ FALSE, >+ G_PARAM_READABLE); >+ >+ obj_properties[PROP_L3MISS] = >+ g_param_spec_boolean (NM_DEVICE_VXLAN_L3MISS, >+ "L3miss", >+ "L3miss", >+ FALSE, >+ G_PARAM_READABLE); >+ >+ g_object_class_install_properties (object_class, LAST_PROP, obj_properties); > > nm_dbus_manager_register_exported_type (nm_dbus_manager_get (), > G_TYPE_FROM_CLASS (klass), >-- >1.8.5.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1066705
: 869942