From patchwork Wed Jul 22 23:28:43 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: 30096 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 DC101B7063 for ; Thu, 23 Jul 2009 09:29:45 +1000 (EST) Received: by ozlabs.org (Postfix) id D03A4DDD04; Thu, 23 Jul 2009 09:29:45 +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 46ED0DDD0B for ; Thu, 23 Jul 2009 09:29:45 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755323AbZGVX3K (ORCPT ); Wed, 22 Jul 2009 19:29:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755316AbZGVX3K (ORCPT ); Wed, 22 Jul 2009 19:29:10 -0400 Received: from qmta08.emeryville.ca.mail.comcast.net ([76.96.30.80]:48609 "EHLO QMTA08.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755019AbZGVX3J (ORCPT ); Wed, 22 Jul 2009 19:29:09 -0400 Received: from OMTA19.emeryville.ca.mail.comcast.net ([76.96.30.76]) by QMTA08.emeryville.ca.mail.comcast.net with comcast id K1UP1c0031eYJf8A8BVAAd; Wed, 22 Jul 2009 23:29:10 +0000 Received: from localhost.localdomain ([63.64.152.142]) by OMTA19.emeryville.ca.mail.comcast.net with comcast id KBUk1c00234bfcX01BUm9j; Wed, 22 Jul 2009 23:29:06 +0000 From: Jeff Kirsher Subject: [net-next-2.6 PATCH 2/5] ixgbe: updates vlan feature flags to enable FCoE offloads on vlan interface To: davem@davemloft.net Cc: netdev@vger.kernel.org, linux-scsi@vger.kernel.org, devel@open-fcoe.org, gospo@redhat.com, Vasu Dev , Yi Zou , Peter P Waskiewicz Jr , Jeff Kirsher Date: Wed, 22 Jul 2009 16:28:43 -0700 Message-ID: <20090722232842.26937.3550.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: Vasu Dev Updates netdev->vlan_features for NETIF_F_FCOE_CRC and NETIF_F_FSO, so that FCoE CRC and GSO offloads will get used for FCoE over ixgbe based vlan interface. Signed-off-by: Vasu Dev Signed-off-by: Yi Zou Acked-by: Peter P Waskiewicz Jr Signed-off-by: Jeff Kirsher --- drivers/net/ixgbe/ixgbe_main.c | 2 ++ 1 files changed, 2 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/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 79f60e8..d89c695 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -5588,6 +5588,8 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, if (!(device_caps & IXGBE_DEVICE_CAPS_FCOE_OFFLOADS)) { netdev->features |= NETIF_F_FCOE_CRC; netdev->features |= NETIF_F_FSO; + netdev->vlan_features |= NETIF_F_FCOE_CRC; + netdev->vlan_features |= NETIF_F_FSO; netdev->fcoe_ddp_xid = IXGBE_FCOE_DDP_MAX - 1; } else { adapter->flags &= ~IXGBE_FLAG_FCOE_ENABLED;