summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-infiniband.c
Commit message (Collapse)AuthorAgeFilesLines
* logging: use new logging macros in NMDevice subclassesth/bgo734230_device_loggingThomas Haller2014-08-061-23/+0
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: fill in nm-types.h, clean out other headersDan Winship2014-07-231-0/+3
| | | | | | | | | | | | | | Clean up some of the cross-includes between headers (which made it so that, eg, if you included NetworkManagerUtils.h in a test program, you would need to build the test with -I$(top_srcdir)/src/platform, and if you included nm-device.h you'd need $(POLKIT_CFLAGS)) by moving all GObject struct definitions for src/ and src/settings/ into nm-types.h (which already existed to solve the NMDevice/NMActRequest circular references). Update various .c files to explicitly include the headers they used to get implicitly, and remove some now-unnecessary -I options from Makefiles.
* core: remove unused 'error' argument to check_connection_compatible()Dan Williams2014-05-301-21/+5
| | | | | Nothing uses the error, so simplify some code and save 5K (0.45%) in binary size.
* core: use nm_platform_sysctl_get() to read infiniband modeThomas Haller2014-04-101-4/+5
| | | | | | | nm_platform_sysctl_get() adds logging and is our prefered way to read sysfs. Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: use ASSERT_VALID_PATH_COMPONENTThomas Haller2014-04-101-2/+4
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: remove redundant sysctl utilitiesDan Winship2013-11-151-1/+1
| | | | | | NMDevice was still using the old sysctl functions from NetworkManagerUtils rather than the new NMPlatform ones. Fix it, and remove the old functions.
* coverity: fix various warnings detected with CoverityThomas Haller2013-11-131-7/+4
| | | | | | | | | | | | | These are (most likely) only warnings and not severe bugs. Some of these changes are mostly made to get a clean run of Coverity without any warnings. Error found by running Coverity scan https://bugzilla.redhat.com/show_bug.cgi?id=1025894 Co-Authored-By: Jiří Klimeš <jklimes@redhat.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: implement update_connection() for InfinibandDan Williams2013-11-081-5/+33
| | | | FIXME: implement partition support
* core: ensure all devices chain up to parent act_stage1_prepareDan Williams2013-10-311-1/+6
| | | | | We'll be moving some code into the NMDevice implementation soon, which currently does nothing other than return success.
* infiniband: only check the last 8 bytes when doing hwaddr matchesDan Winship2013-09-241-1/+37
| | | | | | IPoIB "hardware addresses" are only partly based on the hardware, and partly based on the InfiniBand configuration. So when checking if a configuration matches a device, we should only match the fixed part.
* core: remove nm_device_hwaddr_matches() / get_connection_hw_address()Dan Winship2013-09-121-11/+0
| | | | | These were only needed to support the possibility of VLANs having arbitrary additional hardware settings.
* core: move software device creation logic out of NMManagerDan Winship2013-09-121-4/+23
| | | | | | | Rather than having NMManager know how to parse various settings to create each kind of software device, add a _new_for_connection() constructor to each of them and let them call NMPlatform to create the device correctly themselves.
* core: update UDI when it's availableDan Williams2013-08-071-4/+1
| | | | | | | | | | | | | | | | | | | Software devices don't have a UDI until udev finds them, and since we need to know about the software devices before udev finds them the UDI will be missing. Instead of requiring a UDI on NMDevice creation, update the property from the NMPlatform link change signal when udev does find the device. Now that a UDI is no longer required for device creation, software devices added by NM would be created in the platform_link_added_cb() signal handler triggered by the various software device creation methods in system_create_virtual_device() (eg nm_platform_bridge_add() etc). Then the NMDevice created in system_create_virtual_device() would be a duplicate and cause problems when it was added. Since system_create_virtual_device() needs to do setup on some devices, suppress the device creation from the platform link added handler in this function. Much of this is a hack which should be cleaned up later.
* core: initial InfiniBand partition supportDan Winship2013-06-131-0/+18
|
* devices: use NMPlatform to find the hardware address lengthDan Winship2013-06-111-7/+0
| | | | | | | For device types that don't override it, make nm_device_get_hw_addr_len() use NMPlatform to find out the actual hardware address length, rather than just defaulting to ETH_ALEN. Fixes warnings in the logs when using tun or gre devices.
* devices: make constructors take an NMPlatformLinkDan Winship2013-06-051-9/+3
| | | | | | | | | | Rather than passing UDI, ifname, and driver name to the device constructors as separate arguments, just pass the NMPlatformLink instead and let it parse them out. Virtual types still take UDI and ifname separately, since we create fake NMDevices for them for autoactivating connections. That's weird in other ways too though, so perhaps this should be revisted.
* core: clean up and simplify device capabilities handlingDan Williams2013-05-201-1/+1
| | | | | | | | | | | | | This is really, really old 2007-era code. Any NMDevice that gets created is already supported, so there's no reason to have every device set NM_DEVICE_CAP_NM_SUPPORTED. For those subclasses that only set that capability, we can remove the subclass method entirely. Next, it turns out that the "type capabilities" code wasn't used anywhere, so remove that too. Lastly, "cipsec" interfaces haven't been used on linux in about 5 years (they were created by the Cisco binary-only IPSec kernel module for Cisco VPNs long before vpnc and openswan came around) so we can remove that code too.
* core: remove NMDeviceWiredDan Winship2013-05-201-1/+1
| | | | | | With carrier handling moved to NMDevice, the only thing left in NMDeviceWired was speed, which was actually ethernet-specific anyway. So move that to NMDeviceEthernet, and then kill NMDeviceWired.
* core: move carrier handling to NMDeviceDan Winship2013-05-201-11/+0
| | | | | | Move carrier handling for most device types into NMDevice. Based on an earlier patch by Pavel Šimerda.
* core: make nm-properties-changed-signal always export the right propertiesDan Winship2013-05-201-16/+4
| | | | | | | | | | Change the way that nm-properties-changed-signal works, and parse the dbus-binding-tool-generated info to get the exact list of properties that it's expected to export. This makes NM_PROPERTY_PARAM_NO_EXPORT unnecessary, and also fixes the problem of properties like NMDevice:hw-address being exported on classes where it shouldn't be.
* core: move devices into a subdirectoryDan Winship2013-05-081-0/+372
We have lots of device types and will soon have lots more, so let's put them in their own directory.