aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-03-16 14:01:31 -0700
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:01:00 -0400
commit3f0dec7f6069c308ee7110e29e2b2d63bc5baeea (patch)
treeae8a3a034dafc0dd63cab991595fee85fc831f8c
parent992c9623b148ba939e9cdba0d668eedd3af1a5d2 (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>
-rw-r--r--drivers/net/skge.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/skge.h b/drivers/net/skge.h
index 3b16597c5d4..edd71468220 100644
--- a/drivers/net/skge.h
+++ b/drivers/net/skge.h
@@ -2446,15 +2446,15 @@ enum pause_status {
struct skge_port {
- u32 msg_enable;
struct skge_hw *hw;
struct net_device *netdev;
int port;
+ u32 msg_enable;
struct skge_ring tx_ring;
- struct skge_ring rx_ring;
- struct net_device_stats net_stats;
+ struct skge_ring rx_ring ____cacheline_aligned_in_smp;
+ unsigned int rx_buf_size;
struct timer_list link_timer;
enum pause_control flow_control;
@@ -2470,7 +2470,8 @@ struct skge_port {
void *mem; /* PCI memory for rings */
dma_addr_t dma;
unsigned long mem_size;
- unsigned int rx_buf_size;
+
+ struct net_device_stats net_stats;
};