summaryrefslogtreecommitdiff
path: root/drivers/net/benet/be_cmds.h
diff options
context:
space:
mode:
authorSomnath Kotur <somnath.kotur@emulex.com>2011-06-01 00:33:22 +0000
committerDavid S. Miller <davem@davemloft.net>2011-05-31 22:15:28 -0700
commit34b1ef04fc050d171e055f75d6a3384e1323bd38 (patch)
tree8f1f77fb1b2440a07c412c52d9cd5bd979d4516a /drivers/net/benet/be_cmds.h
parent5bf74c91d7bf56be47c215e6a314ba42da0b68ad (diff)
be2net: Fallback to the older opcode if MCC_CREATE_EXT opcode is not supported on the card
Instead of failing the init/probe code in the driver fallback to the older opcode to ensure the driver is loaded thereby enabling users to upgrade the f/w to whatever version is required. Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.h')
-rw-r--r--drivers/net/benet/be_cmds.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h
index 8148cc66cbe9..d08289e21f61 100644
--- a/drivers/net/benet/be_cmds.h
+++ b/drivers/net/benet/be_cmds.h
@@ -434,6 +434,14 @@ struct be_cmd_req_mcc_create {
struct be_cmd_req_hdr hdr;
u16 num_pages;
u16 cq_id;
+ u8 context[sizeof(struct amap_mcc_context_be) / 8];
+ struct phys_addr pages[8];
+} __packed;
+
+struct be_cmd_req_mcc_ext_create {
+ struct be_cmd_req_hdr hdr;
+ u16 num_pages;
+ u16 cq_id;
u32 async_event_bitmap[1];
u8 context[sizeof(struct amap_mcc_context_be) / 8];
struct phys_addr pages[8];