Permalink
Browse files

igb: Cache align msix, rx and tx data

  • Loading branch information...
1 parent f23fc0d commit ff230ec8e08911c0ec9fcd292c2feaab0f7f1241 Sepherosa Ziehau committed Oct 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 sys/dev/netif/igb/if_igb.h
@@ -237,7 +237,7 @@ struct igb_tx_ring {
u_long no_desc_avail;
u_long tx_packets;
-};
+} __cachealign;
/*
* Receive ring: one per queue
@@ -266,7 +266,7 @@ struct igb_rx_ring {
/* Soft stats */
u_long rx_packets;
-};
+} __cachealign;
struct igb_msix_data {
struct lwkt_serialize *msix_serialize;
@@ -287,7 +287,7 @@ struct igb_msix_data {
u_int msix_vector;
int msix_rate;
char msix_rate_desc[32];
-};
+} __cachealign;
struct igb_softc {
struct arpcom arpcom;

0 comments on commit ff230ec

Please sign in to comment.