Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369824
b: refs/heads/master
c: 28710c5
h: refs/heads/master
v: v3
  • Loading branch information
Kalesh AP authored and David S. Miller committed Apr 29, 2013
1 parent a4cc079 commit 77a2267
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 14d3692f04a050a0d1e4637b56f997a168c591f6
refs/heads/master: 28710c55f4a62b6c595d1a7134e7196c63838e1c
5 changes: 4 additions & 1 deletion trunk/drivers/net/ethernet/emulex/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -2936,7 +2936,7 @@ static struct be_nic_resource_desc *be_get_nic_desc(u8 *buf, u32 desc_count,
int i;

for (i = 0; i < desc_count; i++) {
desc->desc_len = RESOURCE_DESC_SIZE;
desc->desc_len = desc->desc_len ? : RESOURCE_DESC_SIZE;
if (((void *)desc + desc->desc_len) >
(void *)(buf + max_buf_size)) {
desc = NULL;
Expand Down Expand Up @@ -2987,6 +2987,9 @@ int be_cmd_get_func_config(struct be_adapter *adapter)
OPCODE_COMMON_GET_FUNC_CONFIG,
cmd.size, wrb, &cmd);

if (skyhawk_chip(adapter))
req->hdr.version = 1;

status = be_mbox_notify_wait(adapter);
if (!status) {
struct be_cmd_resp_get_func_config *resp = cmd.va;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/emulex/benet/be_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ struct be_cmd_req_get_func_config {
};

struct be_cmd_resp_get_func_config {
struct be_cmd_req_hdr hdr;
struct be_cmd_resp_hdr hdr;
u32 desc_count;
u8 func_param[MAX_RESOURCE_DESC * RESOURCE_DESC_SIZE];
};
Expand Down

0 comments on commit 77a2267

Please sign in to comment.