diff options
author | Rasesh Mody <rmody@brocade.com> | 2012-12-11 12:24:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-11 18:25:46 -0500 |
commit | 5e46631fdb1e5611969c1e61106a59a3b38af078 (patch) | |
tree | 1a9b2916295f0689039378729d8b1df289c5162e /drivers/net/ethernet/brocade/bna/bnad.h | |
parent | f9c4d420c12de65e58a1a14ccee03e8b5cf99f5b (diff) | |
download | blackbird-op-linux-5e46631fdb1e5611969c1e61106a59a3b38af078.tar.gz blackbird-op-linux-5e46631fdb1e5611969c1e61106a59a3b38af078.zip |
bna: Code Cleanup and Enhancements
Change details:
- Remove unnecessary prefetch
- Simplify checking & comparison of CQ flags
- Dereference & store unmap_array, unmap_cons & current unmap_array
element only once
- Make structures tx_config & rx_config cache line aligned.
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bnad.h')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.h b/drivers/net/ethernet/brocade/bna/bnad.h index d78339224751..367b3a1eff0e 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.h +++ b/drivers/net/ethernet/brocade/bna/bnad.h @@ -284,8 +284,8 @@ struct bnad { u8 tx_coalescing_timeo; u8 rx_coalescing_timeo; - struct bna_rx_config rx_config[BNAD_MAX_RX]; - struct bna_tx_config tx_config[BNAD_MAX_TX]; + struct bna_rx_config rx_config[BNAD_MAX_RX] ____cacheline_aligned; + struct bna_tx_config tx_config[BNAD_MAX_TX] ____cacheline_aligned; void __iomem *bar0; /* BAR0 address */ |