Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214569
b: refs/heads/master
c: b71c7aa
h: refs/heads/master
i:
  214567: d4f6dae
v: v3
  • Loading branch information
Giuseppe CAVALLARO authored and David S. Miller committed Sep 17, 2010
1 parent 5a35729 commit 3c6bf50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 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: c629882ac73cab2cd41d9948caeed633fc570fc0
refs/heads/master: b71c7aaa1e2a9858f0c469026098fbd6e046d7bb
2 changes: 1 addition & 1 deletion trunk/drivers/net/stmmac/enh_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static void enh_desc_release_tx_desc(struct dma_desc *p)
{
int ter = p->des01.etx.end_ring;

memset(p, 0, sizeof(struct dma_desc));
memset(p, 0, offsetof(struct dma_desc, des2));
p->des01.etx.end_ring = ter;
}

Expand Down
17 changes: 1 addition & 16 deletions trunk/drivers/net/stmmac/norm_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,7 @@ static void ndesc_release_tx_desc(struct dma_desc *p)
{
int ter = p->des01.tx.end_ring;

/* clean field used within the xmit */
p->des01.tx.first_segment = 0;
p->des01.tx.last_segment = 0;
p->des01.tx.buffer1_size = 0;

/* clean status reported */
p->des01.tx.error_summary = 0;
p->des01.tx.underflow_error = 0;
p->des01.tx.no_carrier = 0;
p->des01.tx.loss_carrier = 0;
p->des01.tx.excessive_deferral = 0;
p->des01.tx.excessive_collisions = 0;
p->des01.tx.late_collision = 0;
p->des01.tx.heartbeat_fail = 0;
p->des01.tx.deferred = 0;

memset(p, 0, offsetof(struct dma_desc, des2));
/* set termination field */
p->des01.tx.end_ring = ter;
}
Expand Down

0 comments on commit 3c6bf50

Please sign in to comment.