Skip to contentSkip to conversation

net: group FCoE related feature flags

PATCH Superseded Yi Zou 2 participants 3 messages May 9, 2011 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yi Zou

author
#0 lore raw

PATCH 1/1 net: group FCoE related feature flags

Michał Mirosław's patch (http://patchwork.ozlabs.org/patch/94421/) fixes the issue (http://patchwork.ozlabs.org/patch/94188/) about not populating FCoE related flags correctly on vlan devices. However, only NETIF_F_FCOE_CRC is part of the NETIF_F_ALL_TX_OFFLOADS right now, where weed NETIF_F_FCOE_MTU and NETIF_F_FSO as well.

Therefore, add NETIF_F_ALL_FCOE to indicate feature flags used by FCoE TX offloads. These include NETIF_F_FCOE_CRC, NETIF_F_FCOE_MTU, and NETIF_F_FSO. They are not part of the NETIF_F_ALL_TX_OFFLOADS. This would eventually make sure all FCoE needed flags are populated properly to vlan devices.

---

 include/linux/netdevice.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
include/linux/netdevice.h +5 -1
index e7244ed..40b3df8 100644
@@ -1097,10 +1097,14 @@ struct net_device {
 
 #define NETIF_F_ALL_TSO 	(NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)
 
+#define NETIF_F_ALL_FCOE	(NETIF_F_FCOE_CRC | NETIF_F_FCOE_MTU | \
+				 NETIF_F_UFO)
+
 #define NETIF_F_ALL_TX_OFFLOADS	(NETIF_F_ALL_CSUM | NETIF_F_SG | \
 				 NETIF_F_FRAGLIST | NETIF_F_ALL_TSO | \
 				 NETIF_F_HIGHDMA | \
-				 NETIF_F_SCTP_CSUM | NETIF_F_FCOE_CRC)
+				 NETIF_F_SCTP_CSUM | \
+				 NETIF_F_ALL_FCOE)
 
 	/*
 	 * If one device supports one of these features, then enable them

A message that is not in the archive (sent off-list or not yet received): 20110509192441.4502.77855.stgit-bi+AKbBUZKagILUCTcTcHdKyNwTtLsGr@public.gmane.org

#2 lore raw
Quoted 22 lines · Yi Zou

Michał Mirosław's patch (http://patchwork.ozlabs.org/patch/94421/) fixes the issue (http://patchwork.ozlabs.org/patch/94188/) about not populating FCoE related flags correctly on vlan devices. However, only NETIF_F_FCOE_CRC is part of the NETIF_F_ALL_TX_OFFLOADS right now, where weed NETIF_F_FCOE_MTU and NETIF_F_FSO as well.

Therefore, add NETIF_F_ALL_FCOE to indicate feature flags used by FCoE TX offloads. These include NETIF_F_FCOE_CRC, NETIF_F_FCOE_MTU, and NETIF_F_FSO. They are not part of the NETIF_F_ALL_TX_OFFLOADS. This would eventually make sure all FCoE needed flags are populated properly to vlan devices.

---

 include/linux/netdevice.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
include/linux/netdevice.h +0 -0
index e7244ed..40b3df8 100644

include/linux/netdevice.h struct net_device { · line 1101

Quoted 5 lines
include/linux/netdevice.h +2 -0
@@ -1097,10 +1097,14 @@ struct net_device {
 
 #define NETIF_F_ALL_TSO 	(NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)
 
+#define NETIF_F_ALL_FCOE	(NETIF_F_FCOE_CRC | NETIF_F_FCOE_MTU | \
+				 NETIF_F_UFO)

UFO? Surely FSO, like you wrote in the commit message...

Ben.

Quoted 14 lines
include/linux/netdevice.h +2 -2
 #define NETIF_F_ALL_TX_OFFLOADS	(NETIF_F_ALL_CSUM | NETIF_F_SG | \
 				 NETIF_F_FRAGLIST | NETIF_F_ALL_TSO | \
 				 NETIF_F_HIGHDMA | \
-				 NETIF_F_SCTP_CSUM | NETIF_F_FCOE_CRC)
+				 NETIF_F_SCTP_CSUM | \
+				 NETIF_F_ALL_FCOE)
 
 	/*
 	 * If one device supports one of these features, then enable them
 
--

To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 8 lines
Ben Hutchings, Senior Software Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

_______________________________________________
devel mailing list
[email protected]
https://lists.open-fcoe.org/mailman/listinfo/devel
author
#3 lore raw
Quoted 35 lines · Yi Zou
Quoted 1 line

Michał Mirosław's patch (http://patchwork.ozlabs.org/patch/94421/)

fixes the

Quoted 1 line

issue (http://patchwork.ozlabs.org/patch/94188/) about not populating

FCoE related

Quoted 1 line

flags correctly on vlan devices. However, only NETIF_F_FCOE_CRC is part

of the

Quoted 1 line

NETIF_F_ALL_TX_OFFLOADS right now, where weed NETIF_F_FCOE_MTU and

NETIF_F_FSO

Quoted 3 lines

as well.

Therefore, add NETIF_F_ALL_FCOE to indicate feature flags used by FCoE

TX offloads.

Quoted 1 line

These include NETIF_F_FCOE_CRC, NETIF_F_FCOE_MTU, and NETIF_F_FSO. They

are not part

Quoted 1 line

of the NETIF_F_ALL_TX_OFFLOADS. This would eventually make sure all

FCoE needed

Quoted 13 lines

flags are populated properly to vlan devices.

---

 include/linux/netdevice.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
include/linux/netdevice.h +0 -0
index e7244ed..40b3df8 100644

include/linux/netdevice.h struct net_device { · line 1098

Quoted 2 lines
include/linux/netdevice.h +0 -0
@@ -1097,10 +1097,14 @@ struct net_device {
 
 #define NETIF_F_ALL_TSO 	(NETIF_F_TSO | NETIF_F_TSO6 |

NETIF_F_TSO_ECN)

Quoted 1 line
Quoted 6 lines

include/linux/netdevice.h struct net_device { · line 1101

Quoted 2 lines
include/linux/netdevice.h +2 -0
+#define NETIF_F_ALL_FCOE	(NETIF_F_FCOE_CRC | NETIF_F_FCOE_MTU | \
+				 NETIF_F_UFO)

UFO? Surely FSO, like you wrote in the commit message...

Ben.

Yikes...how I missed that...thanks, will resend.

yi

Quoted 20 lines
Quoted 12 lines

#define NETIF_F_ALL_TX_OFFLOADS (NETIF_F_ALL_CSUM | NETIF_F_SG | \

include/linux/netdevice.h +2 -2
 				 NETIF_F_FRAGLIST | NETIF_F_ALL_TSO | \
 				 NETIF_F_HIGHDMA | \
-				 NETIF_F_SCTP_CSUM | NETIF_F_FCOE_CRC)
+				 NETIF_F_SCTP_CSUM | \
+				 NETIF_F_ALL_FCOE)
 
 	/*
 	 * If one device supports one of these features, then enable them
 
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Ben Hutchings, Senior Software Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.