device: fix default initialization for RPS/XPS
[project/netifd.git] / device.h
index 6418f16..391b8c9 100644 (file)
--- a/device.h
+++ b/device.h
@@ -38,6 +38,8 @@ enum {
        DEV_ATTR_IGMPVERSION,
        DEV_ATTR_MLDVERSION,
        DEV_ATTR_NEIGHREACHABLETIME,
+       DEV_ATTR_RPS,
+       DEV_ATTR_XPS,
        __DEV_ATTR_MAX,
 };
 
@@ -129,6 +131,8 @@ struct device_settings {
        unsigned int mldversion;
        unsigned int neigh4reachabletime;
        unsigned int neigh6reachabletime;
+       bool rps;
+       bool xps;
 };
 
 /*
@@ -194,9 +198,6 @@ void device_init_settings(struct device *dev, struct blob_attr **tb);
 void device_init_pending(void);
 
 enum dev_change_type
-device_set_config(struct device *dev, const struct device_type *type,
-                 struct blob_attr *attr);
-enum dev_change_type
 device_apply_config(struct device *dev, const struct device_type *type,
                    struct blob_attr *config);