diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-03-09 08:50:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-10 05:10:02 -0700 |
commit | d32cc3d24eace8a271a39ffe8aeae1861f400d2d (patch) | |
tree | 34e15aed220242cf6b14d854b496d42747cf9418 /drivers/net/netxen/netxen_nic_init.c | |
parent | 0ddc110c6fef34c554999448cdffe9c174a15fc9 (diff) | |
download | op-kernel-dev-d32cc3d24eace8a271a39ffe8aeae1861f400d2d.zip op-kernel-dev-d32cc3d24eace8a271a39ffe8aeae1861f400d2d.tar.gz |
netxen: small xmit optimizations
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_init.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index f816434..72aba63 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c @@ -955,6 +955,7 @@ int netxen_process_cmd_ring(struct netxen_adapter *adapter) int done = 0; last_consumer = adapter->last_cmd_consumer; + barrier(); /* cmd_consumer can change underneath */ consumer = le32_to_cpu(*(adapter->cmd_consumer)); while (last_consumer != consumer) { @@ -1005,6 +1006,7 @@ int netxen_process_cmd_ring(struct netxen_adapter *adapter) * There is still a possible race condition and the host could miss an * interrupt. The card has to take care of this. */ + barrier(); /* cmd_consumer can change underneath */ consumer = le32_to_cpu(*(adapter->cmd_consumer)); done = (last_consumer == consumer); |