Commit e9c74cd8 authored by Ivan Vecera's avatar Ivan Vecera Committed by David S. Miller

be2net: reorder fields in be_eq_obj structure

Re-order fields in struct be_eq_obj to ensure that .napi field begins
at start of cache-line. Also the .adapter field is moved to the first
cache-line next to .q field and 3 fields (idx,msi_idx,spurious_intr)
and the 4-bytes hole to 3rd cache-line.
Signed-off-by: default avatarIvan Vecera <cera@cera.cz>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d6d9704a
...@@ -186,11 +186,11 @@ static inline void queue_tail_inc(struct be_queue_info *q) ...@@ -186,11 +186,11 @@ static inline void queue_tail_inc(struct be_queue_info *q)
struct be_eq_obj { struct be_eq_obj {
struct be_queue_info q; struct be_queue_info q;
struct be_adapter *adapter;
struct napi_struct napi;
u8 idx; /* array index */ u8 idx; /* array index */
u8 msix_idx; u8 msix_idx;
u16 spurious_intr; u16 spurious_intr;
struct napi_struct napi;
struct be_adapter *adapter;
cpumask_var_t affinity_mask; cpumask_var_t affinity_mask;
} ____cacheline_aligned_in_smp; } ____cacheline_aligned_in_smp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment