Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193867
b: refs/heads/master
c: 3363276
h: refs/heads/master
i:
  193865: bc2fe1b
  193863: 8ff9949
v: v3
  • Loading branch information
Sreenivasa Honnur authored and David S. Miller committed Mar 29, 2010
1 parent 4423809 commit 41b07f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 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: 18dec74c16abaa92d663dfef64ee6503e085be89
refs/heads/master: 3363276f1c420b7de92169ddabd2bb88aa26a7d6
14 changes: 4 additions & 10 deletions trunk/drivers/net/vxge/vxge-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,14 +1217,13 @@ __vxge_hw_ring_mempool_item_alloc(struct vxge_hw_mempool *mempoolh,
}

/*
* __vxge_hw_ring_initial_replenish - Initial replenish of RxDs
* __vxge_hw_ring_replenish - Initial replenish of RxDs
* This function replenishes the RxDs from reserve array to work array
*/
enum vxge_hw_status
vxge_hw_ring_replenish(struct __vxge_hw_ring *ring, u16 min_flag)
vxge_hw_ring_replenish(struct __vxge_hw_ring *ring)
{
void *rxd;
int i = 0;
struct __vxge_hw_channel *channel;
enum vxge_hw_status status = VXGE_HW_OK;

Expand All @@ -1245,11 +1244,6 @@ vxge_hw_ring_replenish(struct __vxge_hw_ring *ring, u16 min_flag)
}

vxge_hw_ring_rxd_post(ring, rxd);
if (min_flag) {
i++;
if (i == VXGE_HW_RING_MIN_BUFF_ALLOCATION)
break;
}
}
status = VXGE_HW_OK;
exit:
Expand Down Expand Up @@ -1354,7 +1348,7 @@ __vxge_hw_ring_create(struct __vxge_hw_vpath_handle *vp,
* Currently we don't have a case when the 1) is done without the 2).
*/
if (ring->rxd_init) {
status = vxge_hw_ring_replenish(ring, 1);
status = vxge_hw_ring_replenish(ring);
if (status != VXGE_HW_OK) {
__vxge_hw_ring_delete(vp);
goto exit;
Expand Down Expand Up @@ -1416,7 +1410,7 @@ enum vxge_hw_status __vxge_hw_ring_reset(struct __vxge_hw_ring *ring)
goto exit;

if (ring->rxd_init) {
status = vxge_hw_ring_replenish(ring, 1);
status = vxge_hw_ring_replenish(ring);
if (status != VXGE_HW_OK)
goto exit;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ vxge_rx_1b_compl(struct __vxge_hw_ring *ringh, void *dtr,
ring->ndev->name, __func__, __LINE__);
ring->pkts_processed = 0;

vxge_hw_ring_replenish(ringh, 0);
vxge_hw_ring_replenish(ringh);

do {
prefetch((char *)dtr + L1_CACHE_BYTES);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/net/vxge/vxge-traffic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ vxge_hw_ring_rxd_post_post(
void *rxdh);

enum vxge_hw_status
vxge_hw_ring_replenish(struct __vxge_hw_ring *ring_handle, u16 min_flag);
vxge_hw_ring_replenish(struct __vxge_hw_ring *ring_handle);

void
vxge_hw_ring_rxd_post_post_wmb(
Expand Down Expand Up @@ -2087,7 +2087,6 @@ void vxge_hw_fifo_txdl_free(

#define VXGE_HW_RING_NEXT_BLOCK_POINTER_OFFSET (VXGE_HW_BLOCK_SIZE-8)
#define VXGE_HW_RING_MEMBLOCK_IDX_OFFSET (VXGE_HW_BLOCK_SIZE-16)
#define VXGE_HW_RING_MIN_BUFF_ALLOCATION 64

/*
* struct __vxge_hw_ring_rxd_priv - Receive descriptor HW-private data.
Expand Down

0 comments on commit 41b07f3

Please sign in to comment.