diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-16 17:01:31 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:01:00 -0400 |
commit | 3f0dec7f6069c308ee7110e29e2b2d63bc5baeea (patch) | |
tree | ae8a3a034dafc0dd63cab991595fee85fc831f8c /drivers/net | |
parent | 992c9623b148ba939e9cdba0d668eedd3af1a5d2 (diff) |
skge: rearrange fields
Do some minor rearrangement of data structures to try and optimize
cache usage.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/skge.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/skge.h b/drivers/net/skge.h index 3b16597c5d42..edd71468220c 100644 --- a/drivers/net/skge.h +++ b/drivers/net/skge.h | |||
@@ -2446,15 +2446,15 @@ enum pause_status { | |||
2446 | 2446 | ||
2447 | 2447 | ||
2448 | struct skge_port { | 2448 | struct skge_port { |
2449 | u32 msg_enable; | ||
2450 | struct skge_hw *hw; | 2449 | struct skge_hw *hw; |
2451 | struct net_device *netdev; | 2450 | struct net_device *netdev; |
2452 | int port; | 2451 | int port; |
2452 | u32 msg_enable; | ||
2453 | 2453 | ||
2454 | struct skge_ring tx_ring; | 2454 | struct skge_ring tx_ring; |
2455 | struct skge_ring rx_ring; | ||
2456 | 2455 | ||
2457 | struct net_device_stats net_stats; | 2456 | struct skge_ring rx_ring ____cacheline_aligned_in_smp; |
2457 | unsigned int rx_buf_size; | ||
2458 | 2458 | ||
2459 | struct timer_list link_timer; | 2459 | struct timer_list link_timer; |
2460 | enum pause_control flow_control; | 2460 | enum pause_control flow_control; |
@@ -2470,7 +2470,8 @@ struct skge_port { | |||
2470 | void *mem; /* PCI memory for rings */ | 2470 | void *mem; /* PCI memory for rings */ |
2471 | dma_addr_t dma; | 2471 | dma_addr_t dma; |
2472 | unsigned long mem_size; | 2472 | unsigned long mem_size; |
2473 | unsigned int rx_buf_size; | 2473 | |
2474 | struct net_device_stats net_stats; | ||
2474 | }; | 2475 | }; |
2475 | 2476 | ||
2476 | 2477 | ||