Skip to contentSkip to conversation

ethtool: Add hw-switch-offload to netdev_features_strings.

PATCH Superseded Rami Rosen 3 participants 3 messages Feb 20, 2015 – Feb 21, 2015

Subsystems (2)
lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 ethtool: Add hw-switch-offload to netdev_features_strings.

commit aafb3e98b279 (netdev: introduce new NETIF_F_HW_SWITCH_OFFLOAD feature flag for switch device offloads) added a new feature without adding it to netdev_features_strings array; this patch fixes this.

---
 net/core/ethtool.c | 1 +
 1 file changed, 1 insertion(+)
net/core/ethtool.c +1 -0
index 91f74f3..fc5feda 100644
@@ -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_SWITCH_OFFLOAD_BIT] = "hw-switch-offload",
 };
 
 static const char
Signature · 1 line
1.9.3
maintainer
#1 lore raw

From: Rami Rosen <[email protected]>
Date: Sat, 21 Feb 2015 00:50:48 +0200

net/core/ethtool.c static const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN] · line 102

Quoted 6 lines
net/core/ethtool.c +1 -0
@@ -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_SWITCH_OFFLOAD_BIT] = "hw-switch-offload",
 };

This is definitely not indented properly.

The existing code uses a TAB character, you should too.

#2 lore raw
In reply to Rami Rosen

Hello.

Quoted 14 lines · Rami Rosen

commit aafb3e98b279 (netdev: introduce new NETIF_F_HW_SWITCH_OFFLOAD feature flag for switch device offloads) added a new feature without adding it to netdev_features_strings array; this patch fixes this.

---
  net/core/ethtool.c | 1 +
  1 file changed, 1 insertion(+)
net/core/ethtool.c +0 -0
index 91f74f3..fc5feda 100644

net/core/ethtool.c static const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN] · line 101

Quoted 4 lines
net/core/ethtool.c +1 -0
@@ -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_SWITCH_OFFLOAD_BIT] = "hw-switch-offload",

Please use tab for the indentation.

[...]

WBR, Sergei