From: Felix Fietkau Date: Sun, 22 Mar 2015 17:09:49 +0000 (+0100) Subject: device: fix default initialization for RPS/XPS X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=20510bd45d70c5b07718e7608d82133883346673;p=project%2Fnetifd.git device: fix default initialization for RPS/XPS Signed-off-by: Felix Fietkau --- 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) {