* [PATCH 0/3] New flags for Fibre Channel over Ethernet (FCoE) (v2)
@ 2008-10-06 23:39 Yi Zou
2008-10-06 23:39 ` [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE) Yi Zou
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Yi Zou @ 2008-10-06 23:39 UTC (permalink / raw)
To: netdev
v2 of the patches to add flags for Fibre Channel over Ethernet (FCoE) at
Open-FCoE.org. Apologize for the incomplete series sent earlier. Also fixed
the style issue in the first patch.
The first patch adds the protocol type as ETH_P_FCOE for FCoE protocol. The
second one claims 8 bits back from NETIF_F_GSO_MASK to host NETIF_F_FCOE_CRC,
and the third one adds NETIF_F_FCOE_CRC, NETIF_F_GSO_FCOE, and SKB_GSO_FCOE.
Feature flags regarding offload features for FCoE are based on the earlier
post at http://marc.info/?l=linux-netdev&m=122228979113312&w=2.
thanks.
yi
---
Chris Leech (2):
net: define feature flags for FCoE offloads
net: reclaim 8 upper bits of the netdev->features from GSO
Yi Zou (1):
net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE)
drivers/net/xen-netfront.c | 2 +-
include/linux/if_ether.h | 1 +
include/linux/netdevice.h | 5 ++++-
include/linux/skbuff.h | 2 ++
4 files changed, 8 insertions(+), 2 deletions(-)
--
Signature : Yi Zou <yi.zou@intel.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE)
2008-10-06 23:39 [PATCH 0/3] New flags for Fibre Channel over Ethernet (FCoE) (v2) Yi Zou
@ 2008-10-06 23:39 ` Yi Zou
2008-10-07 4:43 ` Pekka Savola
2008-10-06 23:39 ` [PATCH 2/3] net: reclaim 8 upper bits of the netdev->features from GSO Yi Zou
2008-10-06 23:39 ` [PATCH 3/3] net: define feature flags for FCoE offloads Yi Zou
2 siblings, 1 reply; 6+ messages in thread
From: Yi Zou @ 2008-10-06 23:39 UTC (permalink / raw)
To: netdev
Signed-off-by: Yi Zou <yi.zou@intel.com>
---
include/linux/if_ether.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/if_ether.h b/include/linux/if_ether.h
index 723a1c5..e5ae72a 100644
--- a/include/linux/if_ether.h
+++ b/include/linux/if_ether.h
@@ -77,6 +77,7 @@
#define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
#define ETH_P_AOE 0x88A2 /* ATA over Ethernet */
#define ETH_P_TIPC 0x88CA /* TIPC */
+#define ETH_P_FCOE 0x8906 /* Fibre Channel over Ethernet */
/*
* Non DIX types. Won't clash for 1500 types.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] net: reclaim 8 upper bits of the netdev->features from GSO
2008-10-06 23:39 [PATCH 0/3] New flags for Fibre Channel over Ethernet (FCoE) (v2) Yi Zou
2008-10-06 23:39 ` [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE) Yi Zou
@ 2008-10-06 23:39 ` Yi Zou
2008-10-06 23:39 ` [PATCH 3/3] net: define feature flags for FCoE offloads Yi Zou
2 siblings, 0 replies; 6+ messages in thread
From: Yi Zou @ 2008-10-06 23:39 UTC (permalink / raw)
To: netdev
From: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Chris Leech <christopher.leech@intel.com>
---
drivers/net/xen-netfront.c | 2 +-
include/linux/netdevice.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index c749bdb..9f76177 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1502,7 +1502,7 @@ static int xennet_set_tso(struct net_device *dev, u32 data)
static void xennet_set_features(struct net_device *dev)
{
/* Turn off all GSO bits except ROBUST. */
- dev->features &= (1 << NETIF_F_GSO_SHIFT) - 1;
+ dev->features &= ~NETIF_F_GSO_MASK;
dev->features |= NETIF_F_GSO_ROBUST;
xennet_set_sg(dev, 0);
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 9cfd20b..add9937 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -524,7 +524,7 @@ struct net_device
/* Segmentation offload features */
#define NETIF_F_GSO_SHIFT 16
-#define NETIF_F_GSO_MASK 0xffff0000
+#define NETIF_F_GSO_MASK 0x00ff0000
#define NETIF_F_TSO (SKB_GSO_TCPV4 << NETIF_F_GSO_SHIFT)
#define NETIF_F_UFO (SKB_GSO_UDP << NETIF_F_GSO_SHIFT)
#define NETIF_F_GSO_ROBUST (SKB_GSO_DODGY << NETIF_F_GSO_SHIFT)
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] net: define feature flags for FCoE offloads
2008-10-06 23:39 [PATCH 0/3] New flags for Fibre Channel over Ethernet (FCoE) (v2) Yi Zou
2008-10-06 23:39 ` [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE) Yi Zou
2008-10-06 23:39 ` [PATCH 2/3] net: reclaim 8 upper bits of the netdev->features from GSO Yi Zou
@ 2008-10-06 23:39 ` Yi Zou
2 siblings, 0 replies; 6+ messages in thread
From: Yi Zou @ 2008-10-06 23:39 UTC (permalink / raw)
To: netdev
From: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Yi Zou <yi.zou@intel.com>
---
include/linux/netdevice.h | 3 +++
include/linux/skbuff.h | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index add9937..ba6ded1 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -522,6 +522,8 @@ struct net_device
#define NETIF_F_NETNS_LOCAL 8192 /* Does not change network namespaces */
#define NETIF_F_LRO 32768 /* large receive offload */
+#define NETIF_F_FCOE_CRC (1 << 24) /* FCoE CRC32 */
+
/* Segmentation offload features */
#define NETIF_F_GSO_SHIFT 16
#define NETIF_F_GSO_MASK 0x00ff0000
@@ -530,6 +532,7 @@ struct net_device
#define NETIF_F_GSO_ROBUST (SKB_GSO_DODGY << NETIF_F_GSO_SHIFT)
#define NETIF_F_TSO_ECN (SKB_GSO_TCP_ECN << NETIF_F_GSO_SHIFT)
#define NETIF_F_TSO6 (SKB_GSO_TCPV6 << NETIF_F_GSO_SHIFT)
+#define NETIF_F_GSO_FCOE (SKB_GSO_FCOE << NETIF_F_GSO_SHIFT)
/* List of features with software fallbacks. */
#define NETIF_F_GSO_SOFTWARE (NETIF_F_TSO | NETIF_F_TSO_ECN | NETIF_F_TSO6)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 720b688..be60560 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -188,6 +188,8 @@ enum {
SKB_GSO_TCP_ECN = 1 << 3,
SKB_GSO_TCPV6 = 1 << 4,
+
+ SKB_GSO_FCOE = 1 << 5,
};
#if BITS_PER_LONG > 32
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE)
2008-10-06 23:39 ` [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE) Yi Zou
@ 2008-10-07 4:43 ` Pekka Savola
0 siblings, 0 replies; 6+ messages in thread
From: Pekka Savola @ 2008-10-07 4:43 UTC (permalink / raw)
To: Yi Zou; +Cc: netdev
On Mon, 6 Oct 2008, Yi Zou wrote:
> include/linux/if_ether.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/if_ether.h b/include/linux/if_ether.h
> index 723a1c5..e5ae72a 100644
> --- a/include/linux/if_ether.h
> +++ b/include/linux/if_ether.h
> @@ -77,6 +77,7 @@
> #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
> #define ETH_P_AOE 0x88A2 /* ATA over Ethernet */
> #define ETH_P_TIPC 0x88CA /* TIPC */
> +#define ETH_P_FCOE 0x8906 /* Fibre Channel over Ethernet */
No problem with this one, but I note that some of the earlier
codepoints are not in the numerical order, specifically these should
be higher up in the list:
71 #define ETH_P_MPLS_UC 0x8847 /* MPLS Unicast traffic */
72 #define ETH_P_MPLS_MC 0x8848 /* MPLS Multicast traffic */
73 #define ETH_P_ATMMPOA 0x884c /* MultiProtocol Over ATM */
--
Pekka Savola "You each name yourselves king, yet the
Netcore Oy kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE)
2008-11-17 18:38 [PATCH 0/3] net: New flags for Fibre Channel over Ethernet (FCoE) (Resubmit) Yi Zou
@ 2008-11-17 18:38 ` Yi Zou
0 siblings, 0 replies; 6+ messages in thread
From: Yi Zou @ 2008-11-17 18:38 UTC (permalink / raw)
To: davem; +Cc: jeff, netdev
Signed-off-by: Yi Zou <yi.zou@intel.com>
---
include/linux/if_ether.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/if_ether.h b/include/linux/if_ether.h
index 7f3c735..35f1110 100644
--- a/include/linux/if_ether.h
+++ b/include/linux/if_ether.h
@@ -78,6 +78,7 @@
#define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
#define ETH_P_AOE 0x88A2 /* ATA over Ethernet */
#define ETH_P_TIPC 0x88CA /* TIPC */
+#define ETH_P_FCOE 0x8906 /* Fibre Channel over Ethernet */
#define ETH_P_EDSA 0xDADA /* Ethertype DSA [ NOT AN OFFICIALLY REGISTERED ID ] */
/*
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-11-17 18:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 23:39 [PATCH 0/3] New flags for Fibre Channel over Ethernet (FCoE) (v2) Yi Zou
2008-10-06 23:39 ` [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE) Yi Zou
2008-10-07 4:43 ` Pekka Savola
2008-10-06 23:39 ` [PATCH 2/3] net: reclaim 8 upper bits of the netdev->features from GSO Yi Zou
2008-10-06 23:39 ` [PATCH 3/3] net: define feature flags for FCoE offloads Yi Zou
-- strict thread matches above, loose matches on Subject: below --
2008-11-17 18:38 [PATCH 0/3] net: New flags for Fibre Channel over Ethernet (FCoE) (Resubmit) Yi Zou
2008-11-17 18:38 ` [PATCH 1/3] net: add ETH_P_FCOE for Fibre Channel over Ethernet (FCoE) Yi Zou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).