device: add support for removing interface config on reload
[project/netifd.git] / device.h
index cddb340..4b36641 100644 (file)
--- a/device.h
+++ b/device.h
@@ -26,7 +26,6 @@ typedef int (*device_state_cb)(struct device *, bool up);
 
 enum {
        DEV_ATTR_TYPE,
-       DEV_ATTR_IFNAME,
        DEV_ATTR_MTU,
        DEV_ATTR_MACADDR,
        DEV_ATTR_TXQUEUELEN,
@@ -38,6 +37,8 @@ enum {
        DEV_ATTR_IGMPVERSION,
        DEV_ATTR_MLDVERSION,
        DEV_ATTR_NEIGHREACHABLETIME,
+       DEV_ATTR_RPS,
+       DEV_ATTR_XPS,
        __DEV_ATTR_MAX,
 };
 
@@ -129,6 +130,8 @@ struct device_settings {
        unsigned int mldversion;
        unsigned int neigh4reachabletime;
        unsigned int neigh6reachabletime;
+       bool rps;
+       bool xps;
 };
 
 /*
@@ -158,6 +161,7 @@ struct device {
        bool hidden;
 
        bool current_config;
+       bool iface_config;
        bool default_config;
        bool wireless;