From patchwork Fri Mar 16 17:58:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anirban Chakraborty X-Patchwork-Id: 147231 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2B74EB6EEF for ; Sat, 17 Mar 2012 05:12:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505Ab2CPSMi (ORCPT ); Fri, 16 Mar 2012 14:12:38 -0400 Received: from ch1ehsobe002.messaging.microsoft.com ([216.32.181.182]:35267 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753795Ab2CPSMh (ORCPT ); Fri, 16 Mar 2012 14:12:37 -0400 Received: from mail132-ch1-R.bigfish.com (10.43.68.236) by CH1EHSOBE007.bigfish.com (10.43.70.57) with Microsoft SMTP Server id 14.1.225.23; Fri, 16 Mar 2012 18:12:36 +0000 Received: from mail132-ch1 (localhost [127.0.0.1]) by mail132-ch1-R.bigfish.com (Postfix) with ESMTP id 2840B3007B3; Fri, 16 Mar 2012 18:12:36 +0000 (UTC) X-SpamScore: 6 X-BigFish: VPS6(zzzz1202hzz8275bh34b0nz2fh2a8h668h839hd24h) X-Forefront-Antispam-Report: CIP:198.70.193.61; KIP:(null); UIP:(null); IPV:NLI; H:avexcashub1.qlogic.com; RD:avexcashub1.qlogic.com; EFVD:NLI Received-SPF: pass (mail132-ch1: domain of qlogic.com designates 198.70.193.61 as permitted sender) client-ip=198.70.193.61; envelope-from=anirban.chakraborty@qlogic.com; helo=avexcashub1.qlogic.com ; 1.qlogic.com ; Received: from mail132-ch1 (localhost.localdomain [127.0.0.1]) by mail132-ch1 (MessageSwitch) id 1331921554951669_10570; Fri, 16 Mar 2012 18:12:34 +0000 (UTC) Received: from CH1EHSMHS014.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.234]) by mail132-ch1.bigfish.com (Postfix) with ESMTP id E3F13360045; Fri, 16 Mar 2012 18:12:34 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.61) by CH1EHSMHS014.bigfish.com (10.43.70.14) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 16 Mar 2012 18:12:34 +0000 Received: from mx.mv.qlogic.com (10.29.3.18) by avexcashub1.qlc.com (10.1.4.161) with Microsoft SMTP Server id 8.3.192.1; Fri, 16 Mar 2012 11:12:33 -0700 Received: from lnxdev-sm-001.mv.qlogic.com (dut6217.mv.qlogic.com [172.29.56.217]) by mx.mv.qlogic.com (Postfix) with ESMTP id 8046F45E2B; Fri, 16 Mar 2012 11:12:33 -0700 (PDT) Received: by lnxdev-sm-001.mv.qlogic.com (Postfix, from userid 0) id 0BEDC14A872; Fri, 16 Mar 2012 10:58:31 -0700 (PDT) From: Anirban Chakraborty To: David Miller CC: Ben Hutchings , netdev , Dept_NX_Linux_NIC_Driver , Manish chopra Subject: [PATCH net-next] ethtool: Added a field fw dump_state Date: Fri, 16 Mar 2012 10:58:30 -0700 Message-ID: <1331920711-16049-1-git-send-email-anirban.chakraborty@qlogic.com> X-Mailer: git-send-email 1.6.0.2 MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Manish chopra This field is added to enable/disable firmware dump. Signed-off-by: Manish chopra Signed-off-by: Anirban Chakraborty --- include/linux/ethtool.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index e1d9e0e..6ebc7de 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -666,15 +666,22 @@ struct ethtool_flash { * %ETHTOOL_GET_DUMP_DATA and this is returned as dump length by driver * for %ETHTOOL_GET_DUMP_FLAG command * @data: data collected for get dump data operation + * @dump_state: state of the firmware dump. which can be enable/disable. */ + +#define ETH_FW_DUMP_ENABLE 1 +#define ETH_FW_DUMP_DISABLE 0 + struct ethtool_dump { __u32 cmd; __u32 version; __u32 flag; __u32 len; __u8 data[0]; + __u8 dump_state; }; + /* for returning and changing feature sets */ /**