diff options
author | John Fastabend | 2016-02-17 06:17:37 +0100 |
---|---|---|
committer | David S. Miller | 2016-02-17 15:47:36 +0100 |
commit | 1c78c64e9c6f43a490427d55cd2d213b7c6795c1 (patch) | |
tree | cc65c4097c54a23c701d9abdff47ce10d5509245 /net/core/ethtool.c | |
parent | net: sched: add cls_u32 offload hooks for netdevs (diff) | |
download | kernel-qcow2-linux-1c78c64e9c6f43a490427d55cd2d213b7c6795c1.tar.gz kernel-qcow2-linux-1c78c64e9c6f43a490427d55cd2d213b7c6795c1.tar.xz kernel-qcow2-linux-1c78c64e9c6f43a490427d55cd2d213b7c6795c1.zip |
net: add tc offload feature flag
Its useful to turn off the qdisc offload feature at a per device
level. This gives us a big hammer to enable/disable offloading.
More fine grained control (i.e. per rule) may be supported later.
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/ethtool.c')
-rw-r--r-- | net/core/ethtool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 65f907aea777..c2d3118b1395 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -98,6 +98,7 @@ static const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN] [NETIF_F_RXALL_BIT] = "rx-all", [NETIF_F_HW_L2FW_DOFFLOAD_BIT] = "l2-fwd-offload", [NETIF_F_BUSY_POLL_BIT] = "busy-poll", + [NETIF_F_HW_TC_BIT] = "hw-tc-offload", }; static const char |