diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2015-05-12 13:11:52 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-05-12 19:24:53 +0200 |
commit | 6906beee9df0942fc4e8f27faa8dd3c6ef32cfd7 (patch) | |
tree | 7e84dea00b647e5c256c59aa8e53e1d8b96f0cff /device.h | |
parent | d0dcf744ba054c9b572be63519b1415685353c8d (diff) |
netifd: Support for configurable default packet steering behavior
The default packet steering behavior can be configured via the parameter
default_ps in the global section; the default value is true to keep
backwards compatibility.
Device packet steering (rps/xps) config can still be used to override the
default behavior.
This allows you to disable packet steering for all devices without the need
to define a device config list which disables receive/transmit packet steering
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -78,6 +78,8 @@ enum { DEV_OPT_IGMPVERSION = (1 << 7), DEV_OPT_MLDVERSION = (1 << 8), DEV_OPT_NEIGHREACHABLETIME = (1 << 9), + DEV_OPT_RPS = (1 << 10), + DEV_OPT_XPS = (1 << 11), }; /* events broadcasted to all users of a device */ @@ -206,6 +208,7 @@ device_apply_config(struct device *dev, const struct device_type *type, void device_reset_config(void); void device_reset_old(void); +void device_set_default_ps(bool state); void device_init_virtual(struct device *dev, const struct device_type *type, const char *name); int device_init(struct device *iface, const struct device_type *type, const char *ifname); |