Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139513936
D1699.id3478.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D1699.id3478.diff
View Options
Index: sys/dev/sfxge/sfxge.h
===================================================================
--- sys/dev/sfxge/sfxge.h
+++ sys/dev/sfxge/sfxge.h
@@ -103,26 +103,26 @@
#define SFXGE_EV_BATCH 16384
struct sfxge_evq {
- struct sfxge_softc *sc __aligned(CACHE_LINE_SIZE);
- struct mtx lock __aligned(CACHE_LINE_SIZE);
-
- enum sfxge_evq_state init_state;
+ /* Structure members below are sorted by usage order */
+ struct sfxge_softc *sc;
+ struct mtx lock;
unsigned int index;
- unsigned int entries;
+ enum sfxge_evq_state init_state;
efsys_mem_t mem;
- unsigned int buf_base_id;
-
- boolean_t exception;
-
efx_evq_t *common;
unsigned int read_ptr;
+ boolean_t exception;
unsigned int rx_done;
unsigned int tx_done;
/* Linked list of TX queues with completions to process */
struct sfxge_txq *txq;
struct sfxge_txq **txqs;
-};
+
+ /* Structure members not used on event processing path */
+ unsigned int buf_base_id;
+ unsigned int entries;
+} __aligned(CACHE_LINE_SIZE);
#define SFXGE_NDESCS 1024
#define SFXGE_MODERATION 30
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 13, 10:57 PM (12 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26944528
Default Alt Text
D1699.id3478.diff (1 KB)
Attached To
Mode
D1699: sfxge: Remove extra cache-line alignment and reorder sfxge_evq_t
Attached
Detach File
Event Timeline
Log In to Comment