Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255486
b: refs/heads/master
c: 7d260ec
h: refs/heads/master
v: v3
  • Loading branch information
Vasanthy Kolluri authored and David S. Miller committed Jun 9, 2011
1 parent 8ba5861 commit af9c8ab
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1fb77bfd062b8d38fb0e428ae0edcd2dc4ec07b
refs/heads/master: 7d260ec26ee56495bcb32491d44ed4590cc838a0
2 changes: 1 addition & 1 deletion trunk/drivers/net/enic/enic.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#define DRV_NAME "enic"
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
#define DRV_VERSION "2.1.1.17"
#define DRV_VERSION "2.1.1.19"
#define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc"

#define ENIC_BARS_MAX 6
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ static inline unsigned int enic_legacy_notify_intr(void)

static inline unsigned int enic_msix_rq_intr(struct enic *enic, unsigned int rq)
{
return rq;
return enic->cq[enic_cq_rq(enic, rq)].interrupt_offset;
}

static inline unsigned int enic_msix_wq_intr(struct enic *enic, unsigned int wq)
{
return enic->rq_count + wq;
return enic->cq[enic_cq_wq(enic, wq)].interrupt_offset;
}

static inline unsigned int enic_msix_err_intr(struct enic *enic)
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/enic/vnic_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ void vnic_cq_init(struct vnic_cq *cq, unsigned int flow_control_enable,
iowrite32(cq_message_enable, &cq->ctrl->cq_message_enable);
iowrite32(interrupt_offset, &cq->ctrl->interrupt_offset);
writeq(cq_message_addr, &cq->ctrl->cq_message_addr);

cq->interrupt_offset = interrupt_offset;
}

void vnic_cq_clean(struct vnic_cq *cq)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/enic/vnic_cq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit af9c8ab

Please sign in to comment.