summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-08-22 09:10:58 +0200
committerJohn Crispin <john@phrozen.org>2017-08-22 09:10:58 +0200
commitb5731bfbabaf7aab0fc47143bd6ad0b12cc3df0a (patch)
tree747743efa83dc28a6b3b73bda992ad970786af48 /device.h
parent2a29d1a8d45f164e9a3fda31264bf70b8f90d9ad (diff)
allow setting rps/xps defualt values via uci
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'device.h')
-rw-r--r--device.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/device.h b/device.h
index 7ad733e..f398dbc 100644
--- a/device.h
+++ b/device.h
@@ -164,7 +164,10 @@ struct device_settings {
unsigned int neigh6gcstaletime;
int neigh4locktime;
bool rps;
+ int rps_val;
+ int rps_flow_cnt;
bool xps;
+ int xps_val;
unsigned int dadtransmits;
bool multicast_to_unicast;
unsigned int multicast_router;
@@ -250,7 +253,7 @@ device_apply_config(struct device *dev, struct device_type *type,
void device_reset_config(void);
void device_reset_old(void);
-void device_set_default_ps(bool state);
+void device_set_default_ps(bool state, int xps, int rps, int rps_flow_cnt);
void device_init_virtual(struct device *dev, struct device_type *type, const char *name);
int device_init(struct device *dev, struct device_type *type, const char *ifname);