diff options
author | Vasanthy Kolluri <vkolluri@cisco.com> | 2011-06-09 10:37:02 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-09 14:58:09 -0700 |
commit | 7d260ec26ee56495bcb32491d44ed4590cc838a0 (patch) | |
tree | 38e64fbdb28fbe522da30800c890037129c8dc1f /drivers/net/enic/vnic_cq.h | |
parent | e1fb77bfd062b8d38fb0e428ae0edcd2dc4ec07b (diff) | |
download | talos-obmc-linux-7d260ec26ee56495bcb32491d44ed4590cc838a0.tar.gz talos-obmc-linux-7d260ec26ee56495bcb32491d44ed4590cc838a0.zip |
enic: Get/Set interrupt resource index for transmit and receive queues
Instead of deriving the index of a transmit/receive interrupt resource
from the transmit/receive queue index, always save and retrieve it
using an additional variable.
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: Danny Guo <dannguo@cisco.com>
Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: David Wang <dwang2@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/vnic_cq.h')
-rw-r--r-- | drivers/net/enic/vnic_cq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/enic/vnic_cq.h b/drivers/net/enic/vnic_cq.h index 552d3daf2508..579315cbe803 100644 --- a/drivers/net/enic/vnic_cq.h +++ b/drivers/net/enic/vnic_cq.h @@ -57,6 +57,7 @@ struct vnic_cq { struct vnic_dev_ring ring; unsigned int to_clean; unsigned int last_color; + unsigned int interrupt_offset; }; static inline unsigned int vnic_cq_service(struct vnic_cq *cq, |