From patchwork Wed Jul 22 23:29:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirsher, Jeffrey T" X-Patchwork-Id: 30097 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id BCF1BB707B for ; Thu, 23 Jul 2009 09:29:46 +1000 (EST) Received: by ozlabs.org (Postfix) id AD888DDD0B; Thu, 23 Jul 2009 09:29:46 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 238EADDD04 for ; Thu, 23 Jul 2009 09:29:46 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755269AbZGVX3c (ORCPT ); Wed, 22 Jul 2009 19:29:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754541AbZGVX3b (ORCPT ); Wed, 22 Jul 2009 19:29:31 -0400 Received: from qmta10.emeryville.ca.mail.comcast.net ([76.96.30.17]:36229 "EHLO QMTA10.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754380AbZGVX3b (ORCPT ); Wed, 22 Jul 2009 19:29:31 -0400 Received: from OMTA14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id K0R91c0081HpZEsAABVYPi; Wed, 22 Jul 2009 23:29:32 +0000 Received: from localhost.localdomain ([63.64.152.142]) by OMTA14.emeryville.ca.mail.comcast.net with comcast id KBVA1c00H34bfcX8aBVDP5; Wed, 22 Jul 2009 23:29:30 +0000 From: Jeff Kirsher Subject: [net-next-2.6 PATCH 3/5] net: Add NETIF_F_FCOE_MTU to indicate support for a different MTU for FCoE To: davem@davemloft.net Cc: netdev@vger.kernel.org, linux-scsi@vger.kernel.org, devel@open-fcoe.org, gospo@redhat.com, Yi Zou , Jeff Kirsher Date: Wed, 22 Jul 2009 16:29:09 -0700 Message-ID: <20090722232909.26937.31565.stgit@localhost.localdomain> In-Reply-To: <20090722232759.26937.78765.stgit@localhost.localdomain> References: <20090722232759.26937.78765.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Yi Zou Add NETIF_F_FCOE_MTU to indicate that the NIC can support a secondary MTU for converged traffic of LAN and Fiber Channel over Ethernet (FCoE). The MTU for FCoE is 2158 = 14 (FCoE header) + 24 (FC header) + 2112 (FC max payload) + 4 (FC CRC) + 4 (FCoE trailer). Signed-off-by: Yi Zou Signed-off-by: Jeff Kirsher --- include/linux/netdevice.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9f25ab2..9192cdf 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -701,6 +701,7 @@ struct net_device /* the GSO_MASK reserves bits 16 through 23 */ #define NETIF_F_FCOE_CRC (1 << 24) /* FCoE CRC32 */ #define NETIF_F_SCTP_CSUM (1 << 25) /* SCTP checksum offload */ +#define NETIF_F_FCOE_MTU (1 << 26) /* Supports max FCoE MTU, 2158 bytes*/ /* Segmentation offload features */ #define NETIF_F_GSO_SHIFT 16