diff options
author | Sritej Velaga <sritej.velaga@qlogic.com> | 2012-02-03 11:35:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-04 15:59:28 -0500 |
commit | 2dcd5d95ad6b281fca6f2d5e252bbf7e8e20655b (patch) | |
tree | 3deaaa4c47ca20b7f2113cc078b8bb3af1619ed2 /drivers/net/ethernet/qlogic/netxen/netxen_nic.h | |
parent | e1f4c485cdb2b1d7aae172b731f6c2b403381ebb (diff) | |
download | lwn-2dcd5d95ad6b281fca6f2d5e252bbf7e8e20655b.tar.gz lwn-2dcd5d95ad6b281fca6f2d5e252bbf7e8e20655b.zip |
netxen_nic: fix cdrp race condition
Reading CRB registers(if reqd) before releasing the api lock.
Signed-off-by: Sritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/netxen/netxen_nic.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic.h b/drivers/net/ethernet/qlogic/netxen/netxen_nic.h index a876dffd7101..1b09ba172310 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic.h +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic.h @@ -686,6 +686,18 @@ struct netxen_recv_context { dma_addr_t phys_addr; }; +struct _cdrp_cmd { + u32 cmd; + u32 arg1; + u32 arg2; + u32 arg3; +}; + +struct netxen_cmd_args { + struct _cdrp_cmd req; + struct _cdrp_cmd rsp; +}; + /* New HW context creation */ #define NX_OS_CRB_RETRY_COUNT 4000 |