Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223767
b: refs/heads/master
c: 2f32c86
h: refs/heads/master
i:
  223765: da2c835
  223763: 9df11bc
  223759: 6a6b251
v: v3
  • Loading branch information
J. K. Cliburn authored and David S. Miller committed Jan 3, 2011
1 parent 872df9e commit 58a0aab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9556f9a1abdc56a179ac7ba6053469373b6de0f
refs/heads/master: 2f32c867219734b06abc980d4812f67b6d6fe517
10 changes: 10 additions & 0 deletions trunk/drivers/net/atlx/atl1.c
Original file line number Diff line number Diff line change
Expand Up @@ -3504,6 +3504,8 @@ static int atl1_set_ringparam(struct net_device *netdev,
struct atl1_rfd_ring rfd_old, rfd_new;
struct atl1_rrd_ring rrd_old, rrd_new;
struct atl1_ring_header rhdr_old, rhdr_new;
struct atl1_smb smb;
struct atl1_cmb cmb;
int err;

tpd_old = adapter->tpd_ring;
Expand Down Expand Up @@ -3544,11 +3546,19 @@ static int atl1_set_ringparam(struct net_device *netdev,
adapter->rrd_ring = rrd_old;
adapter->tpd_ring = tpd_old;
adapter->ring_header = rhdr_old;
/*
* Save SMB and CMB, since atl1_free_ring_resources
* will clear them.
*/
smb = adapter->smb;
cmb = adapter->cmb;
atl1_free_ring_resources(adapter);
adapter->rfd_ring = rfd_new;
adapter->rrd_ring = rrd_new;
adapter->tpd_ring = tpd_new;
adapter->ring_header = rhdr_new;
adapter->smb = smb;
adapter->cmb = cmb;

err = atl1_up(adapter);
if (err)
Expand Down

0 comments on commit 58a0aab

Please sign in to comment.