diff options
author | Ivan Vecera <cera@cera.cz> | 2018-07-10 22:59:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-12 00:03:30 -0700 |
commit | e9c74cd85c00e46bff62d3bb2ce8c5fd02bf465e (patch) | |
tree | b87ef12b122bf3b329a2ccb37df434b9f1000c57 /drivers/net/ethernet | |
parent | d6d9704af8f42155791dc46d39d380e200c819ae (diff) | |
download | linux-e9c74cd85c00e46bff62d3bb2ce8c5fd02bf465e.tar.gz |
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: Ivan Vecera <cera@cera.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index e71e5e592626..716b4bc410f5 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -186,11 +186,11 @@ static inline void queue_tail_inc(struct be_queue_info *q) struct be_eq_obj { struct be_queue_info q; + struct be_adapter *adapter; + struct napi_struct napi; u8 idx; /* array index */ u8 msix_idx; u16 spurious_intr; - struct napi_struct napi; - struct be_adapter *adapter; cpumask_var_t affinity_mask; } ____cacheline_aligned_in_smp; |