public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Pradeep Dalvi <pradeep@netxen.com>
To: Randy Dunlap <rdunlap@xenotime.net>
Cc: netdev@vger.kernel.org, Jeff Garzik <jeff@garzik.org>,
	Sanjeev Jorapur <sanjeev@netxen.com>, Rob Mapes <rob@netxen.com>,
	unmproj@linsyssoft.com, brazilnut@us.ibm.com, wendyx@us.ibm.com,
	"Amit S. Kale" <amitkale@netxen.com>
Subject: Re: [PATCH 2.6.18-rc7 1/9] NetXen: Makefile and driver main file
Date: Tue, 19 Sep 2006 08:18:59 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0609190814350.25990@dut39> (raw)
In-Reply-To: <Pine.LNX.4.64.0609151134120.7710@dut39>

Randy,

Thanks for feedback. We have incorporated all of the suggestions.

--
pradeep

diff -u linux-2.6.18-rc7/drivers/net/netxen/netxen_nic_main.c linux-2.6.18-rc7/drivers/net/netxen/netxen_nic_main.c
--- linux-2.6.18-rc7/drivers/net/netxen/netxen_nic_main.c	2006-09-15 10:51:59.000000000 -0700
+++ linux-2.6.18-rc7/drivers/net/netxen/netxen_nic_main.c	2006-09-19 07:51:20.000000000 -0700
@@ -561,9 +561,9 @@
  	return 0;
  }

-/**
+/*
   * netxen_nic_close - Disables a network interface entry point
- **/
+ */
  static int netxen_nic_close(struct net_device *netdev)
  {
  	struct netxen_port *port = netdev_priv(netdev);
@@ -628,7 +628,7 @@

  	u32 producer = 0;
  	u32 saved_producer = 0;
-	struct cmd_desc_type0_t *hwdesc;
+	struct cmd_desc_type0 *hwdesc;
  	int k;
  	struct netxen_cmd_buffer *pbuf = NULL;
  	unsigned int tries = 0;
@@ -691,7 +691,7 @@
  		if (((skb->nh.iph)->ihl * sizeof(u32)) +
  		    ((skb->h.th)->doff * sizeof(u32)) +
  		    sizeof(struct ethhdr) >
-		    (sizeof(struct cmd_desc_type0_t) - NET_IP_ALIGN)) {
+		    (sizeof(struct cmd_desc_type0) - NET_IP_ALIGN)) {
  			no_of_desc++;
  		}
  	}
@@ -733,7 +733,7 @@
  	producer = local_producer;
  	saved_producer = producer;
  	hwdesc = &hw->cmd_desc_head[producer];
-	memset(hwdesc, 0, sizeof(struct cmd_desc_type0_t));
+	memset(hwdesc, 0, sizeof(struct cmd_desc_type0));
  	/* Take skb->data itself */
  	pbuf = &adapter->cmd_buf_arr[producer];
  	if (skb_shinfo(skb)->gso_size > 0) {
@@ -773,7 +773,7 @@
  			producer = get_next_index(producer,
  						  adapter->max_tx_desc_count);
  			hwdesc = &hw->cmd_desc_head[producer];
-			memset(hwdesc, 0, sizeof(struct cmd_desc_type0_t));
+			memset(hwdesc, 0, sizeof(struct cmd_desc_type0));
  		}
  		frag = &skb_shinfo(skb)->frags[i - 1];
  		len = frag->size;
@@ -819,9 +819,9 @@
  	if (hw->cmd_desc_head[saved_producer].opcode == TX_TCP_LSO) {
  		int hdr_len, first_hdr_len, more_hdr;
  		hdr_len = hw->cmd_desc_head[saved_producer].total_hdr_length;
-		if (hdr_len > (sizeof(struct cmd_desc_type0_t) - NET_IP_ALIGN)) {
+		if (hdr_len > (sizeof(struct cmd_desc_type0) - NET_IP_ALIGN)) {
  			first_hdr_len =
-			    sizeof(struct cmd_desc_type0_t) - NET_IP_ALIGN;
+			    sizeof(struct cmd_desc_type0) - NET_IP_ALIGN;
  			more_hdr = 1;
  		} else {
  			first_hdr_len = hdr_len;
@@ -964,11 +964,11 @@
  	return ret;
  }

-/**
+/*
   * netxen_intr - Interrupt Handler
   * @irq: interrupt number
   * data points to adapter stucture (which may be handling more than 1 port
- **/
+ */
  irqreturn_t netxen_intr(int irq, void *data, struct pt_regs * regs)
  {
  	struct netxen_adapter *adapter;


  reply	other threads:[~2006-09-19 15:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15 18:33 [PATCH 2.6.18-rc7 0/9] NetXen: 1G/10G Ethernet Driver Amit S. Kale
2006-09-15 18:39 ` [PATCH 2.6.18-rc7 1/9] NetXen: Makefile and driver main file Amit S. Kale
2006-09-19 15:18   ` Pradeep Dalvi [this message]
2006-09-15 18:40 ` [PATCH 2.6.18-rc7 2/9] NetXen: Hardware access routines Amit S. Kale
2006-09-19 15:20   ` Pradeep Dalvi
2006-09-15 18:44 ` [PATCH 2.6.18-rc7 3/9] NetXen: hw initilization routines Amit S. Kale
2006-09-19 15:23   ` Pradeep Dalvi
2006-09-15 18:45 ` [PATCH 2.6.18-rc7 4/9] NetXen: intr routines and niu handling Amit S. Kale
2006-09-19 15:25   ` Pradeep Dalvi
2006-09-15 18:48 ` [PATCH 2.6.18-rc7 5/9] NetXen: ethtool interface Amit S. Kale
2006-09-19 15:26   ` Pradeep Dalvi
2006-09-15 18:51 ` [PATCH 2.6.18-rc7 6/9] NetXen: Main header file Amit S. Kale
2006-09-15 19:41   ` Randy.Dunlap
2006-09-19 15:28   ` Pradeep Dalvi
2006-09-15 18:57 ` [PATCH 2.6.18-rc7 7/9] NetXen: hw access routines " Amit S. Kale
2006-09-19 15:30   ` Pradeep Dalvi
2006-09-15 19:01 ` [PATCH 2.6.18-rc7 8/9] NetXen: Header file and ioctl " Amit S. Kale
2006-09-15 19:04 ` [PATCH 2.6.18-rc7 9/9] NetXen: CRB reg definitions Amit S. Kale
2006-09-19 15:32   ` Pradeep Dalvi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0609190814350.25990@dut39 \
    --to=pradeep@netxen.com \
    --cc=amitkale@netxen.com \
    --cc=brazilnut@us.ibm.com \
    --cc=jeff@garzik.org \
    --cc=netdev@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    --cc=rob@netxen.com \
    --cc=sanjeev@netxen.com \
    --cc=unmproj@linsyssoft.com \
    --cc=wendyx@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox