diff options
| author | 2014-04-02 23:09:31 +0200 | |
|---|---|---|
| committer | 2014-04-03 14:31:34 -0400 | |
| commit | d0290214de712150b118a532ded378a29255893b (patch) | |
| tree | e27bdd049f71378689f160fdac7693437e5d3a30 /net/core/ethtool.c | |
| parent | packet: fix packet_direct_xmit for BQL enabled drivers (diff) | |
| download | linux-dev-d0290214de712150b118a532ded378a29255893b.tar.xz linux-dev-d0290214de712150b118a532ded378a29255893b.zip | |
net: add busy_poll device feature
Currently there is no way how to find out if a device supports busy
polling. So add a feature and make it dependent on ndo_busy_poll
existence.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
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 30071dec287a..640ba0e5831c 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -97,6 +97,7 @@ static const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN] [NETIF_F_RXFCS_BIT] = "rx-fcs", [NETIF_F_RXALL_BIT] = "rx-all", [NETIF_F_HW_L2FW_DOFFLOAD_BIT] = "l2-fwd-offload", + [NETIF_F_BUSY_POLL_BIT] = "busy-poll", }; static int ethtool_get_features(struct net_device *dev, void __user *useraddr) |
