| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
which allows limiting the properties listed by the `--query=property` option
(and optionally listing only the respective values).
|
| |
|
|
|
|
|
|
|
|
|
| |
Sets up the follow properties and their corresponding ethtool feature:
- ReceiveVLANCTAGHardwareAcceleration == rx-vlan-hw-parse (or rxvlan)
- TransmitVLANCTAGHardwareAcceleration == tx-vlan-hw-insert (or txvlan)
- ReceiveVLANCTAGFilter == rx-vlan-filter
- TransmitVLANSTAGHardwareAcceleration == tx-vlan-stag-hw-insert
- NTupleFilter == rx-ntuple-filter (or ntuple)
|
|\
| |
| | |
ci: build with clang-13
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
LLVM 13 introduced `-Wunused-but-set-variable` diagnostic flag, which
trips over some intentionally set-but-not-used variables or variables
attached to cleanup handlers with side effects (`_cleanup_umask_`,
`_cleanup_(notify_on_cleanup)`, `_cleanup_(restore_sigsetp)`, etc.):
```
../src/basic/process-util.c:1257:46: error: variable 'saved_ssp' set but not used [-Werror,-Wunused-but-set-variable]
_cleanup_(restore_sigsetp) sigset_t *saved_ssp = NULL;
^
1 error generated.
```
|
|/
|
|
|
| |
Then, we can easily add new settings to configure features in .link
file.
|
|
|
|
| |
Also, remove the watch handle if we cannot save it.
|
|
|
|
|
|
| |
directory
Only acceptable error here is -ENOENT.
|
| |
|
|
|
|
|
|
|
|
|
| |
Previously, the devlink was created based on the priority saved in udev
database. So, we needed to reevaluate devlinks after database is saved.
But now the priority is stored in the symlink under /run/udev/links, and
the loop of devlink creation is controlled with the timestamp of the
directory. So, the double evaluation is not necessary anymore.
|
|
|
|
|
| |
To make multiple workers not update the same device node symlink
simultaneously.
|
| |
|
|
|
|
|
|
|
| |
Otherwise, when multiple device additions and removals occur
simultaneously, symlink to unexisting devnode may be created.
Hopefully fixes #19946.
|
|
|
|
|
|
|
|
|
|
|
| |
By the previous commit, it is not necessary to distinguish if the devlink
already exists. Also, I cannot find any significant advantages of the
previous complecated logic, that is, first try to create directly, and then
fallback to atomically creation. Moreover, such logic increases the chance
of conflicts between multiple udev workers.
This makes devlinks always created atomically. Hopefully, this reduces the
conflicts between the workers.
|
|
|
|
|
|
|
| |
During creating a symlink to a device node, if another device node which
requests the same symlink is added/removed, `stat_inode_unmodified()`
should always detects that. We do not need to continue the loop
unconditionally.
|
|
|
|
| |
Please see the comments in the code.
|
|
|
|
|
|
|
|
|
|
| |
Previously, we only store device IDs in /run/udev/links, and when
creating/removing device node symlink, we create sd_device object
corresponds to the IDs and read device node and priority from the
object. That requires parsing uevent and udev database files.
This makes link_find_prioritized() get the most prioritzed device node
without parsing the files.
|
| |
|
|
|
|
| |
And then merge udev_node_add() and udev_node_update_old_links().
|
|
|
|
|
|
|
|
|
| |
As we usually do, remove old unix socket before bind.
Note that systemd-udevd-control.socket has `RemoveOnStop=yes`.
So, it is not necessary to be removed when the service exits.
Replaces #20584 and #20588.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
`sd_device_new_from_syspath()` internally calls chase_symlinks().
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise, 99-default.link may introduce something like the
following warnings:
----
Aug 26 03:23:59 systemd-udevd[519]: wlan0: Could not set coalesce settings, ignoring: Operation not supported
Aug 26 03:24:00 systemd-udevd[547]: wlp59s0: Could not set coalesce settings, ignoring: Operation not supported
----
Follow-up for 6c35ea5ef0231d519ff24d43a57a72cebab6a121.
|
|\
| |
| | |
tree-wide: voidify unchecked snprintf calls or use snprintf_ok
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
According to Coverity, 194 ouf of 227 times we check for snprintf return code.
Voidify the rest.
CID#1461512
CID#1461513
CID#1461514
CID#1461515
CID#1461516
CID#1461518
CID#1461519
CID#1461520
CID#1461522
|
|/ |
|
|
|
|
| |
These are configured via the corresponding ethtool ioctl.
|
|
|
|
|
|
|
|
|
|
| |
Follow-up for 406041b7de767316674eb6a2f98ad466577ce8a4.
Also, this makes
- the settings accept an empty string,
- if the specified value is too large, also use the advertised maximum
value.
- mention the range of the value in the man page.
|
|
|
|
|
| |
As net_setup_link builtin requires that a device action is set for the
sd_device object.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
LIST_FOREACH_AFTER/BEFORE()
|
|
|
|
| |
Also this rename delaying_seqnum -> blocker_seqnum.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
No functional chage.
|
| |
|
| |
|