[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4DABAE30.9080308@linux.vnet.ibm.com>
Date: Sun, 17 Apr 2011 23:21:20 -0400
From: Jim Dykman <dykmanj@...ux.vnet.ibm.com>
To: Stephen Hemminger <shemminger@...tta.com>
CC: netdev@...r.kernel.org,
Piyush Chaudhary <piyushc@...ux.vnet.ibm.com>,
Fu-Chung Chang <fcchang@...ux.vnet.ibm.com>,
"William S. Cadden" <wscadden@...ux.vnet.ibm.com>,
"Wen C. Chen" <winstonc@...ux.vnet.ibm.com>,
Scot Sakolish <sakolish@...ux.vnet.ibm.com>,
Jian Xiao <jian@...ux.vnet.ibm.com>,
"Carol L. Soto" <clsoto@...ux.vnet.ibm.com>,
"Sarah J. Sheppard" <sjsheppa@...ux.vnet.ibm.com>
Subject: Re: [PATCH 24/27] HFI: hf network driver
On 3/2/2011 5:26 PM, Stephen Hemminger wrote:
> On Wed, 2 Mar 2011 16:10:10 -0500
> dykmanj@...ux.vnet.ibm.com wrote:
>
>> +struct hf_if {
>> + u32 idx; /* 0, 1, 2, 3 ... */
>> + u32 ai; /* 0=hfi0, 1=hfi1 */
>> + char name[HF_MAX_NAME_LEN];
>> + u32 isr_id;
>> + u32 ip_addr;
>> + u32 state; /* CLOSE, OPEN */
>> + spinlock_t lock; /* lock for state */
>> + u32 sfifo_fv_polarity;
>> + u32 sfifo_slots_per_blk;
>> + u32 sfifo_packets;
>> + void __iomem *doorbell; /* mapped mmio_regs */
>> + struct hf_fifo tx_fifo;
>> + struct hf_fifo rx_fifo;
>> + struct hfi_client_info client;
>> + struct sk_buff **tx_skb; /* array to store tx
>> + 2k skb */
>> + void *sfifo_finishvec;
>> + struct net_device_stats net_stats;
>> +};
>
> You don't need net_stats in this structure if you use
> the standard netdev->stats structure instead.
>
> You won't need hf_get_stats then..
>
Ok, done in v2
Jim
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists