The configuration can easily fail when the target virtual function
does not exist, and there is nothing networkd can do in such case.
Also, it is overkill to make the physical interface entered to the
failed state in such case. Let's warn but ignore the failure.
assert(link);
r = sd_netlink_message_get_errno(m);
- if (r < 0 && r != -EEXIST) {
- log_link_message_error_errno(link, m, r, "Could not set up SR-IOV");
- link_enter_failed(link);
- return 1;
- }
+ if (r < 0)
+ log_link_message_warning_errno(link, m, r, "Failed to set up SR-IOV virtual function, ignoring");
if (link->sr_iov_messages == 0) {
log_link_debug(link, "SR-IOV configured");