netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] Removing the unused PAGE_USE_COUNT() macro on ixgbe driver
@ 2009-02-10 18:16 Breno Leitao
  2009-02-11  1:21 ` Waskiewicz Jr, Peter P
  0 siblings, 1 reply; 3+ messages in thread
From: Breno Leitao @ 2009-02-10 18:16 UTC (permalink / raw)
  To: netdev, e1000-devel; +Cc: Jay Vosburgh

Removing the unused PAGE_USE_COUNT() macro. Also removing the unused pages 
variable at ixgbe_configure_rx() function.

Signed-off-by: Breno Leitão <leitao@linux.vnet.ibm.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>

----

diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index a3572d1..8c32c18 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -1553,9 +1553,6 @@ static void ixgbe_configure_srrctl(struct ixgbe_adapter *adapter, int index)
 	IXGBE_WRITE_REG(&adapter->hw, IXGBE_SRRCTL(index), srrctl);
 }
 
-#define PAGE_USE_COUNT(S) (((S) >> PAGE_SHIFT) + \
-                           (((S) & (PAGE_SIZE - 1)) ? 1 : 0))
-
 /**
  * ixgbe_configure_rx - Configure 8259x Receive Unit after Reset
  * @adapter: board private structure
@@ -1574,7 +1571,6 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter)
 	                  0xA54F2BEC, 0xEA49AF7C, 0xE214AD3D, 0xB855AABE,
 	                  0x6A3E67EA, 0x14364D17, 0x3BED200D};
 	u32 fctrl, hlreg0;
-	u32 pages;
 	u32 reta = 0, mrqc;
 	u32 rdrxctl;
 	int rx_buf_len;
@@ -1604,8 +1600,6 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter)
 		hlreg0 |= IXGBE_HLREG0_JUMBOEN;
 	IXGBE_WRITE_REG(hw, IXGBE_HLREG0, hlreg0);
 
-	pages = PAGE_USE_COUNT(adapter->netdev->mtu);
-
 	rdlen = adapter->rx_ring[0].count * sizeof(union ixgbe_adv_rx_desc);
 	/* disable receives while setting up the descriptors */
 	rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] Removing the unused PAGE_USE_COUNT() macro on ixgbe driver
  2009-02-10 18:16 [PATCH net-next] Removing the unused PAGE_USE_COUNT() macro on ixgbe driver Breno Leitao
@ 2009-02-11  1:21 ` Waskiewicz Jr, Peter P
  2009-02-11  1:25   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Waskiewicz Jr, Peter P @ 2009-02-11  1:21 UTC (permalink / raw)
  To: Breno Leitao; +Cc: e1000-devel@lists.sourceforge.net, netdev, Jay Vosburgh

[-- Attachment #1: Type: TEXT/PLAIN, Size: 350 bytes --]

On Tue, 10 Feb 2009, Breno Leitao wrote:

> Removing the unused PAGE_USE_COUNT() macro. Also removing the unused pages 
> variable at ixgbe_configure_rx() function.
> 
> Signed-off-by: Breno Leitão <leitao@linux.vnet.ibm.com>
> Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>

Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>

[-- Attachment #2: Type: text/plain, Size: 467 bytes --]

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] Removing the unused PAGE_USE_COUNT() macro on ixgbe driver
  2009-02-11  1:21 ` Waskiewicz Jr, Peter P
@ 2009-02-11  1:25   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2009-02-11  1:25 UTC (permalink / raw)
  To: peter.p.waskiewicz.jr; +Cc: leitao, netdev, e1000-devel, fubar

From: "Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@intel.com>
Date: Tue, 10 Feb 2009 17:21:12 -0800 (Pacific Standard Time)

> On Tue, 10 Feb 2009, Breno Leitao wrote:
> 
> > Removing the unused PAGE_USE_COUNT() macro. Also removing the unused pages 
> > variable at ixgbe_configure_rx() function.
> > 
> > Signed-off-by: Breno Leitão <leitao@linux.vnet.ibm.com>
> > Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
> 
> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>

Applied, thanks everyone.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-11  1:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-10 18:16 [PATCH net-next] Removing the unused PAGE_USE_COUNT() macro on ixgbe driver Breno Leitao
2009-02-11  1:21 ` Waskiewicz Jr, Peter P
2009-02-11  1:25   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).