summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libnm-core: support private keys encrypted with AES-{192,256}-CBCbg/priv-key-aes-256Beniamino Galvani2018-08-279-21/+106
|
* cli: merge branch 'bg/completion-fixes-rh1588952'Beniamino Galvani2018-08-272-22/+39
|\ | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1588952 https://github.com/NetworkManager/NetworkManager/pull/185
| * cli: fix autocompletion for connection commandsBeniamino Galvani2018-08-271-10/+10
| | | | | | | | | | | | | | | | Autocompletion doesn't work in some cases because we present a prompt ending with ":", but compare it with the string without ":" in the autocomplete function. Fix this. While at it, also add missing colon after prompt where needed.
| * cli: autocomplete connection type even if it has an aliasBeniamino Galvani2018-08-271-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, we would not autocomplete connection types that have an alias: Connection type: <TAB><TAB> 6lowpan cdma macvlan vlan 802-11-olpc-mesh dummy olpc-mesh vpn 802-11-wireless ethernet ovs-bridge vxlan 802-3-ethernet generic ovs-interface wifi adsl gsm ovs-port wimax bluetooth infiniband pppoe wpan bond ip-tunnel team bridge macsec tun Connection type: 8<TAB> [-> no completion] Don't treat the default connection type (for example, "802-3-ethernet") in a special way and allow it to be autocompleted, because we already display it when the user did not enter any text.
| * cli: fix connection type completion on connection addBeniamino Galvani2018-08-271-7/+26
|/ | | | | | | | | | | | | | The array returned by the completion function follows a special convention. If the first element is set, it is used as the completion. Otherwise, the remaining entries are the possible completions. _meta_abstract_complete() just returned an array of matching words and so the first element was always used as completion. Instead, we must use rl_completion_matches() to generate the array passing a generator function. https://bugzilla.redhat.com/show_bug.cgi?id=1588952
* all: point git references to the GitLab instanceLubomir Rintel2018-08-275-12/+7
| | | | https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/2
* systemd: merge branch systemd into masterThomas Haller2018-08-2774-353/+1515
|\ | | | | | | https://github.com/NetworkManager/NetworkManager/pull/186
| * systemd: update code from upstream (2018-08-26)Thomas Haller2018-08-2668-334/+1494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a direct dump from systemd git. ====== SYSTEMD_DIR=../systemd COMMIT=56663345dfb1dd3ff23cac5fbc955aba54477efa ( cd "$SYSTEMD_DIR" git checkout "$COMMIT" git reset --hard git clean -fdx ) git ls-files :/src/systemd/src/ \ :/shared/nm-utils/unaligned.h | \ xargs -d '\n' rm -f nm_copy_sd() { mkdir -p "./src/systemd/$(dirname "$1")" cp "$SYSTEMD_DIR/$1" "./src/systemd/$1" } nm_copy_sd_shared() { mkdir -p "./shared/nm-utils/" cp "$SYSTEMD_DIR/$1" "./shared/nm-utils/${1##*/}" } nm_copy_sd "src/basic/alloc-util.c" nm_copy_sd "src/basic/alloc-util.h" nm_copy_sd "src/basic/async.h" nm_copy_sd "src/basic/env-util.c" nm_copy_sd "src/basic/env-util.h" nm_copy_sd "src/basic/escape.c" nm_copy_sd "src/basic/escape.h" nm_copy_sd "src/basic/ether-addr-util.c" nm_copy_sd "src/basic/ether-addr-util.h" nm_copy_sd "src/basic/extract-word.c" nm_copy_sd "src/basic/extract-word.h" nm_copy_sd "src/basic/fileio.c" nm_copy_sd "src/basic/fileio.h" nm_copy_sd "src/basic/fd-util.c" nm_copy_sd "src/basic/fd-util.h" nm_copy_sd "src/basic/fs-util.c" nm_copy_sd "src/basic/fs-util.h" nm_copy_sd "src/basic/hash-funcs.c" nm_copy_sd "src/basic/hash-funcs.h" nm_copy_sd "src/basic/hashmap.c" nm_copy_sd "src/basic/hashmap.h" nm_copy_sd "src/basic/hexdecoct.c" nm_copy_sd "src/basic/hexdecoct.h" nm_copy_sd "src/basic/hostname-util.c" nm_copy_sd "src/basic/hostname-util.h" nm_copy_sd "src/basic/in-addr-util.c" nm_copy_sd "src/basic/in-addr-util.h" nm_copy_sd "src/basic/io-util.c" nm_copy_sd "src/basic/io-util.h" nm_copy_sd "src/basic/list.h" nm_copy_sd "src/basic/log.h" nm_copy_sd "src/basic/macro.h" nm_copy_sd "src/basic/mempool.h" nm_copy_sd "src/basic/mempool.c" nm_copy_sd "src/basic/parse-util.c" nm_copy_sd "src/basic/parse-util.h" nm_copy_sd "src/basic/path-util.c" nm_copy_sd "src/basic/path-util.h" nm_copy_sd "src/basic/prioq.h" nm_copy_sd "src/basic/prioq.c" nm_copy_sd "src/basic/process-util.h" nm_copy_sd "src/basic/process-util.c" nm_copy_sd "src/basic/random-util.c" nm_copy_sd "src/basic/random-util.h" nm_copy_sd "src/basic/refcnt.h" nm_copy_sd "src/basic/set.h" nm_copy_sd "src/basic/signal-util.h" nm_copy_sd "src/basic/siphash24.h" nm_copy_sd "src/basic/socket-util.c" nm_copy_sd "src/basic/socket-util.h" nm_copy_sd "src/basic/sparse-endian.h" nm_copy_sd "src/basic/stat-util.c" nm_copy_sd "src/basic/stat-util.h" nm_copy_sd "src/basic/stdio-util.h" nm_copy_sd "src/basic/string-table.c" nm_copy_sd "src/basic/string-table.h" nm_copy_sd "src/basic/string-util.c" nm_copy_sd "src/basic/string-util.h" nm_copy_sd "src/basic/strv.c" nm_copy_sd "src/basic/strv.h" nm_copy_sd "src/basic/time-util.c" nm_copy_sd "src/basic/time-util.h" nm_copy_sd "src/basic/umask-util.h" nm_copy_sd_shared "src/basic/unaligned.h" nm_copy_sd "src/basic/utf8.c" nm_copy_sd "src/basic/utf8.h" nm_copy_sd "src/basic/util.c" nm_copy_sd "src/basic/util.h" nm_copy_sd "src/libsystemd-network/arp-util.c" nm_copy_sd "src/libsystemd-network/arp-util.h" nm_copy_sd "src/libsystemd-network/dhcp6-internal.h" nm_copy_sd "src/libsystemd-network/dhcp6-lease-internal.h" nm_copy_sd "src/libsystemd-network/dhcp6-network.c" nm_copy_sd "src/libsystemd-network/dhcp6-option.c" nm_copy_sd "src/libsystemd-network/dhcp6-protocol.h" nm_copy_sd "src/libsystemd-network/dhcp-identifier.c" nm_copy_sd "src/libsystemd-network/dhcp-identifier.h" nm_copy_sd "src/libsystemd-network/dhcp-internal.h" nm_copy_sd "src/libsystemd-network/dhcp-lease-internal.h" nm_copy_sd "src/libsystemd-network/dhcp-network.c" nm_copy_sd "src/libsystemd-network/dhcp-option.c" nm_copy_sd "src/libsystemd-network/dhcp-packet.c" nm_copy_sd "src/libsystemd-network/dhcp-protocol.h" nm_copy_sd "src/libsystemd-network/lldp-internal.h" nm_copy_sd "src/libsystemd-network/lldp-neighbor.c" nm_copy_sd "src/libsystemd-network/lldp-neighbor.h" nm_copy_sd "src/libsystemd-network/lldp-network.c" nm_copy_sd "src/libsystemd-network/lldp-network.h" nm_copy_sd "src/libsystemd-network/network-internal.c" nm_copy_sd "src/libsystemd-network/network-internal.h" nm_copy_sd "src/libsystemd-network/sd-dhcp6-client.c" nm_copy_sd "src/libsystemd-network/sd-dhcp6-lease.c" nm_copy_sd "src/libsystemd-network/sd-dhcp-client.c" nm_copy_sd "src/libsystemd-network/sd-dhcp-lease.c" nm_copy_sd "src/libsystemd-network/sd-ipv4ll.c" nm_copy_sd "src/libsystemd-network/sd-ipv4acd.c" nm_copy_sd "src/libsystemd-network/sd-lldp.c" nm_copy_sd "src/libsystemd/sd-event/sd-event.c" nm_copy_sd "src/libsystemd/sd-id128/id128-util.c" nm_copy_sd "src/libsystemd/sd-id128/id128-util.h" nm_copy_sd "src/libsystemd/sd-id128/sd-id128.c" nm_copy_sd "src/shared/dns-domain.c" nm_copy_sd "src/shared/dns-domain.h" nm_copy_sd "src/systemd/_sd-common.h" nm_copy_sd "src/systemd/sd-dhcp6-client.h" nm_copy_sd "src/systemd/sd-dhcp6-lease.h" nm_copy_sd "src/systemd/sd-dhcp-client.h" nm_copy_sd "src/systemd/sd-dhcp-lease.h" nm_copy_sd "src/systemd/sd-event.h" nm_copy_sd "src/systemd/sd-ndisc.h" nm_copy_sd "src/systemd/sd-id128.h" nm_copy_sd "src/systemd/sd-ipv4acd.h" nm_copy_sd "src/systemd/sd-ipv4ll.h" nm_copy_sd "src/systemd/sd-lldp.h"
* | wifi: don't use :1 bitfield for gboolean typeThomas Haller2018-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gboolean is a typedef for "int". While older compilers might treat such bitfields as unsigned ([1]), commonly such a bitfield is signed and can only contain the values 0 and -1. We only want to use numeric 1 for TRUE, hence, creating such bitfields is wrong, or at least error prone. In fact, in this case it's a bug, because later we compare it with a regular gboolean if (priv->scanning != new_scanning) [1] https://lgtm.com/rules/1506024027114/ Fixes: e0f96770188eeaada70a299bd6dab7a50ec34a53
* | vpn-service-plugin: cancel the connect timer on has_ipv4=has_ipv6=falseLubomir Rintel2018-08-231-0/+4
| | | | | | | | | | NetworkManager considers a connection w/o L3 configuration fine and connected. Don't make VPN plugins commit suicide in such case.
* | wifi: merge branch 'th/wifi-gbytes-ssid'Thomas Haller2018-08-2227-340/+662
|\ \ | | | | | | | | | https://github.com/NetworkManager/NetworkManager/pull/182
| * | wifi: refactor nm_wifi_ap_set_ssid() to accept GBytesThomas Haller2018-08-224-34/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - have two variants of functions to set the SSID of an access point: one that passes SSID as GBytes, and one that passes it as plain data with length. Accepting a GBytes allows to share the immutable GBytes instance. - both functions now also support clearing the SSID. In nm_wifi_ap_update_from_properties(), if the GVariant specifies a "SSID", we always update the access point. We already support chaging the SSID, so why not support changing it to *no* SSID (hidden).
| * | wifi: don't use GBytesArray for NMWifiAP's ssidThomas Haller2018-08-2211-152/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GBytes makes more sense, because it's immutable. Also, since at other places we use GBytes, having different types is combersome and requires needless conversions. Also: - avoid nm_utils_escape_ssid() instead of _nm_utils_ssid_to_string(). We use nm_utils_escape_ssid() when we want to log the SSID. However, it does not escape newlines, which is bad. - also no longer use nm_utils_same_ssid(). Since it no longer treated trailing NUL special, it is not different from g_bytes_equal(). - also, don't use nm_utils_ssid_to_utf8() for logging anymore. For logging, _nm_utils_ssid_escape_utf8safe() is better because it is loss-less escaping which can be unambigously reverted.
| * | wifi: don't ignore trailing NUL byte when comparing SSIDThomas Haller2018-08-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nm_utils_same_ssid() has a comment * Earlier versions of the Linux kernel added a NULL byte to the end of the * SSID to enable easy printing of the SSID on the console or in a terminal, * but this behavior was problematic (SSIDs are simply byte arrays, not strings) * and thus was changed. This function compensates for that behavior at the * cost of some compatibility with odd SSIDs that may legitimately have trailing * NULLs, even though that is functionally pointless. and the functionality was introduced by commit ccb13f0bdd0c8ac3ee85dd0a6064c9bc545585f1. There was only place left that calls nm_utils_same_ssid(). I really don't think this is the right approach, nor is it clear that this is still necessary. Also, it seems to only matter with WEXT, and we should not have such an ugly hack in all cases.
| * | shared: add nm_utils_buf_utf8safe_escape() utilThomas Haller2018-08-223-73/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already have nm_utils_str_utf8safe_escape() to convert a NUL termianted string to an UTF-8 string. nm_utils_str_utf8safe_escape() operates under the assumption, that the input strig is already valid UTF-8 and returns the input string verbatim. That way, in the common expected cases, the string just looks like a regular UTF-8 string. However, in case there are invalid UTF-8 sequences (or a backslash escape characters), the function will use backslash escaping to encode the input string as a valid UTF-8 sequence. Note that the escaped sequence, can be reverted to the original non-UTF-8 string via unescape. An example, where this is useful are file names or interface names. Which are not in a defined encoding, but NUL terminated and commonly ASCII or UTF-8 encoded. Extend this, to also handle not NUL terminated buffers. The same applies, except that the process cannot be reverted via g_strcompress() -- because the NUL character cannot be unescaped. This will be useful to escape a Wi-Fi SSID. Commonly we expect the SSID to be in UTF-8/ASCII encoding and we want to print it verbatim. Only if that is not the case, we fallback to backslash escaping. However, the orginal value can be fully recovered via unescape(). The difference between an SSID and a filename is, that the former can contain '\0' bytes.
| * | wifi: use GBytes for ssids scan listThomas Haller2018-08-223-34/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use GBytes instead of GBytesArray. GBytes is immutable and can be shared. It is also the type that we natively get from nm_setting_wireless_get_ssid(). This way we avoid some conversions.
| * | device: avoid intermediary GByteArray when creating DUID GBytesThomas Haller2018-08-221-13/+13
| | | | | | | | | | | | Creating it directly is simple enough.
| * | dhcp/trivial: add fixme comments to nm_dhcp_dhclient_unescape_duid()Thomas Haller2018-08-221-0/+7
| | |
| * | all: avoid useless cast of g_free() to GDestroyNotifyThomas Haller2018-08-225-7/+7
| | |
| * | wifi: use GBytes instead of GBytesArray for tracking blobs in supplicantThomas Haller2018-08-222-15/+6
| | |
| * | wifi/olpc: fix setting SSID for OLPC mesh in complete_connection()Thomas Haller2018-08-221-5/+4
| | | | | | | | | | | | NM_SETTING_OLPC_MESH_SSID is of type GBytes, not GByteArray.
| * | platform: drop unused virtual function NMPlatformClass.wifi_get_ssid()Thomas Haller2018-08-222-8/+0
| | |
| * | libnm: replace _nm_utils_bytes_to_dbus() with nm_utils_gbytes_get_variant_ay()Thomas Haller2018-08-223-19/+1
| | |
| * | shared: add nm_utils_gbytes_to_variant_ay() utilThomas Haller2018-08-222-0/+21
|/ /
* | po: update German translationChristian K2018-08-211-2354/+3112
| | | | | | | | https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/9
* | po: fix a typo in fr translationLubomir Rintel2018-08-201-1/+1
| | | | | | | | https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/5
* | platform: if AF_INET6 is not available, don't warnLubomir Rintel2018-08-202-1/+5
| | | | | | | | | | | | | | | | | | These should be logged on DEBUG level: <warn> platform-linux: do-change-link[2]: failure changing link: failure 97 (Address family not supported by protocol) <warn> device (wlo1): failed to enable userspace IPv6LL address handling (unspecified) https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/10
* | ip4-config: fix a typoLubomir Rintel2018-08-196-6/+6
| | | | | | | | (cherry picked from commit 0550003ef0b71cd4342519c06d8bc3c92b4f64ea)
* | po/ja: translations from the Red Hat translatorsLubomir Rintel2018-08-191-2308/+2586
| | | | | | | | (cherry picked from commit 7af38dc4fc802e4f897aeeb1532ca9099a2c5333)
* | build: fix meson build with -Dppp=falseBeniamino Galvani2018-08-151-1/+3
| | | | | | | | | | | | | | | | meson.build:897:15: ERROR: Unknown variable "pppd_plugin_dir". Fixes: a75ab799e4f6b9c5d6f298ad7c1899ae21726a48 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/7
* | po: update Brazilian Portuguese translationRafael Fontenelle2018-08-151-3323/+4594
| | | | | | | | https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/3
* | device: cope with devices' failure to provide reason for incompatibilityLubomir Rintel2018-08-141-0/+1
| | | | | | | | | | Pretty sure we get this right now, but if we don't let's fail more sensibly.
* | wifi: provide reasons for connection incompatibilityLubomir Rintel2018-08-141-7/+28
| | | | | | | | | | | | The callers assume that we set an error on returning FALSE. Mostly copied from the IWD implementation.
* | iwd: improve error messagesLubomir Rintel2018-08-141-3/+3
| | | | | | | | Fix errors, typoes and ambiguities.
* | release: bump version to 1.13.3 (development)1.13.3-devThomas Haller2018-08-132-2/+2
| |
* | release: update NEWSThomas Haller2018-08-131-0/+3
| |
* | utils/test: don't assert on debug level messagesLubomir Rintel2018-08-111-2/+3
| | | | | | | | | | They come and go in GLib core for all sorts of purposes. Don't let that break our tests.
* | merge: branch 'bg/wildcard-match-rh1555012'Beniamino Galvani2018-08-1128-91/+866
|\ \ | | | | | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1555012 https://github.com/NetworkManager/NetworkManager/pull/181
| * | device: support match.interface-nameBeniamino Galvani2018-08-113-4/+47
| | | | | | | | | | | | | | | Add support for matching a connection with the new match.interface-name property.
| * | ifcfg-rh: add support for 'match' settingBeniamino Galvani2018-08-115-1/+140
| | |
| * | all: add 'match' settingBeniamino Galvani2018-08-1114-0/+462
| | | | | | | | | | | | | | | | | | | | | Add a new 'match' setting containing properties to match a connection to devices. At the moment only the interface-name property is present and, contrary to connection.interface-name, it allows the use of wildcards.
| * | shared: add @allow_escaping argument to @nm_utils_strsplit_setBeniamino Galvani2018-08-119-84/+108
| | |
| * | libnm-core: remove wrong annotation in NMSettingIPConfigBeniamino Galvani2018-08-111-2/+0
| | |
| * | shared: add space escape functionsBeniamino Galvani2018-08-113-0/+109
|/ /
* | all/ethtool: merge branch 'th/ethtool-options-rh1335409-1'Thomas Haller2018-08-1096-1951/+5049
|\ \ | | | | | | | | | | | | | | | | | | | | | Add support for setting offload features (akin to ethtool's -K|--offload|--feature). https://bugzilla.redhat.com/show_bug.cgi?id=1335409 https://github.com/NetworkManager/NetworkManager/pull/179
| * | all/ethtool: add support for all currently supported kernel featuresThomas Haller2018-08-106-49/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of upstream kernel v4.18-rc8. Note that we name the features like they are called in ethtool's ioctl API ETH_SS_FEATURES. Except, for features like "tx-gro", which ethtool utility aliases as "gro". So, for those features where ethtool has a built-in, alternative name, we prefer the alias. And again, note that a few aliases of ethtool utility ("sg", "tso", "tx") actually affect more than one underlying kernel feature. Note that 3 kernel features which are announced via ETH_SS_FEATURES are explicitly exluded because kernel marks them as "never_changed": #define NETIF_F_NEVER_CHANGE (NETIF_F_VLAN_CHALLENGED | \ NETIF_F_LLTX | NETIF_F_NETNS_LOCAL)
| * | cli: hide ethtool options form `nmcli connection show "$PROFILE"` outputThomas Haller2018-08-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We will add a large number of offload features. That means, the output of `nmcli connection show "$PROFILE"` would be very verbose, in case the profile has a [ethtool] option. Since this is newly added API, don't do that. Don't show ethtool properties that are left unset. A minor problem here is, that it becomes no longer obvious which properties exist. We should however counter that by documentation. Also, one could do: $ nmcli connection modify "$PROFILE" ethtool.xxx x Error: invalid property 'xxx': 'xxx' not among [feature-gro, feature-gso, feature-lro, feature-ntuple, feature-rx, feature-rxhash, feature-rxvlan, feature-sg, feature-tso, feature-tx, feature-txvlan, feature-tx-tcp6-segmentation, feature-tx-tcp-segmentation]. Likewise, bash completion still works as one would expect. $ nmcli --complete-args connection modify "$PROFILE" ethtool. ethtool.feature-gro ethtool.feature-gso ethtool.feature-lro [...] Note the output of $ nmcli -f ethtool.feature-gro connection show "$PROFILE" gives now nothing (if there is an ethtool section, but not this particular feature). Maybe this shouldn't be like that. On the other hand, specifying a connection setting that doesn't exist also gives no output: $ nmcli -f bond connection show "$PROFILE" So, maybe this behavior is fine.
| * | cli: add functionality to hide properties from outputThomas Haller2018-08-102-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically, nmcli printed all fields during operations like `nmcli connection show "$PROFILE"`. As we supported more and more options, this resulted in a verbose output, of most properties just being the default values. To counter that, we added the '-overview' option. When given, it would hide options that are set at their default. This option was not the default, to preserve established behavior. However, for new options, we can afford to hide them. Add a mechanism, that property getters can mark their value to be hidden. At the moment, there is no way to show these properties. However, we could add a '-verbose' option, with the opposite meaning of '-overview'. Anyway, that does not seem necessary at the moment. Hiding properties from output is only acceptable for new properties (otherwise we badly change behavior), and if the properties are set at their default values (otherwise, we hide important information).
| * | device: implement setting ethtool offload featuresThomas Haller2018-08-101-0/+87
| | |
| * | platform/ethtool: add code to get/set offload features via ethtoolThomas Haller2018-08-1010-26/+599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, add two more features "tx-tcp-segmentation" and "tx-tcp6-segmentation". There are two reasons for that: - systemd-networkd supports setting these two features, so lets support them too (apparently they are important enough for networkd). - these two features are already implicitly covered by "tso". Like for the "ethtool" program, "tso" is an alias for several actual features. By adding two features that are already also covered by an alias (which sets multiple kernel names at once), we showcase how aliases for the same feature can coexist. In particular, note how setting "tso on tx-tcp6-segmentation off" will behave as one would expect: all 4 tso features covered by the alias are enabled, except that particular one.