diff options
author | Somnath Kotur <somnath.kotur@emulex.com> | 2011-09-30 11:25:05 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-03 20:17:32 +0400 |
commit | 3de09455cfcde1898fb435ad425b9ad5d13ed362 (patch) | |
tree | 3cbe9378ce76b2f507fc7635301f7a60349c06b6 /drivers/net/ethernet/emulex/benet/be.h | |
parent | 5a56eb10babbcd7b3796dc3c28c271260aa3608d (diff) | |
download | linux-3de09455cfcde1898fb435ad425b9ad5d13ed362.tar.xz |
be2net: Making die temperature ioctl call async
Also changing it's frequency to once every 64s instead of existing 32s as
it was shown to affect performance
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 894f1a91d9c9..644e8fed8364 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -137,6 +137,11 @@ static inline void *queue_tail_node(struct be_queue_info *q) return q->dma_mem.va + q->tail * q->entry_size; } +static inline void *queue_index_node(struct be_queue_info *q, u16 index) +{ + return q->dma_mem.va + index * q->entry_size; +} + static inline void queue_head_inc(struct be_queue_info *q) { index_inc(&q->head, q->len); |