summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--device.c2
-rw-r--r--system-linux.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/device.c b/device.c
index 3ca867c..24c7fe3 100644
--- a/device.c
+++ b/device.c
@@ -371,6 +371,8 @@ int device_init(struct device *dev, const struct device_type *type, const char *
system_if_clear_state(dev);
device_check_state(dev);
+ dev->settings.rps = true;
+ dev->settings.xps = true;
return 0;
}
diff --git a/system-linux.c b/system-linux.c
index 9ff1532..7a443ad 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1093,9 +1093,6 @@ system_if_apply_settings(struct device *dev, struct device_settings *s, unsigned
{
struct ifreq ifr;
- if (!apply_mask)
- return;
-
memset(&ifr, 0, sizeof(ifr));
strncpy(ifr.ifr_name, dev->ifname, sizeof(ifr.ifr_name));
if (s->flags & DEV_OPT_MTU & apply_mask) {