Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203687
b: refs/heads/master
c: 3486be2
h: refs/heads/master
i:
  203685: 1478d5d
  203683: 9dd2b72
  203679: 49853ab
v: v3
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Jul 23, 2010
1 parent dcaca9f commit 00ffb41
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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: 8943807c214535c079bd30469562d1126b70bc2a
refs/heads/master: 3486be29e63a9e8b0b013a9581879d8a48790d20
2 changes: 1 addition & 1 deletion trunk/drivers/net/benet/be.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ struct be_adapter {
u32 port_num;
bool promiscuous;
bool wol;
u32 cap;
u32 function_mode;
u32 rx_fc; /* Rx flow control */
u32 tx_fc; /* Tx flow control */
int link_speed;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ int be_cmd_get_flow_control(struct be_adapter *adapter, u32 *tx_fc, u32 *rx_fc)
}

/* Uses mbox */
int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num, u32 *cap)
int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num, u32 *mode)
{
struct be_mcc_wrb *wrb;
struct be_cmd_req_query_fw_cfg *req;
Expand All @@ -1279,7 +1279,7 @@ int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num, u32 *cap)
if (!status) {
struct be_cmd_resp_query_fw_cfg *resp = embedded_payload(wrb);
*port_num = le32_to_cpu(resp->phys_port);
*cap = le32_to_cpu(resp->function_cap);
*mode = le32_to_cpu(resp->function_mode);
}

spin_unlock(&adapter->mbox_lock);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/benet/be_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ struct be_cmd_resp_query_fw_cfg {
u32 be_config_number;
u32 asic_revision;
u32 phys_port;
u32 function_cap;
u32 function_mode;
u32 rsvd[26];
};

Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ static void be_rx_compl_process(struct be_adapter *adapter,

/* vlanf could be wrongly set in some cards.
* ignore if vtm is not set */
if ((adapter->cap & 0x400) && !vtm)
if ((adapter->function_mode & 0x400) && !vtm)
vlanf = 0;

if (unlikely(vlanf)) {
Expand Down Expand Up @@ -1003,7 +1003,7 @@ static void be_rx_compl_process_gro(struct be_adapter *adapter,

/* vlanf could be wrongly set in some cards.
* ignore if vtm is not set */
if ((adapter->cap & 0x400) && !vtm)
if ((adapter->function_mode & 0x400) && !vtm)
vlanf = 0;

skb = napi_get_frags(&eq_obj->napi);
Expand Down Expand Up @@ -2500,7 +2500,7 @@ static int be_get_config(struct be_adapter *adapter)
return status;

status = be_cmd_query_fw_cfg(adapter,
&adapter->port_num, &adapter->cap);
&adapter->port_num, &adapter->function_mode);
if (status)
return status;

Expand All @@ -2520,7 +2520,7 @@ static int be_get_config(struct be_adapter *adapter)
memcpy(adapter->netdev->perm_addr, mac, ETH_ALEN);
}

if (adapter->cap & 0x400)
if (adapter->function_mode & 0x400)
adapter->max_vlans = BE_NUM_VLANS_SUPPORTED/4;
else
adapter->max_vlans = BE_NUM_VLANS_SUPPORTED;
Expand Down

0 comments on commit 00ffb41

Please sign in to comment.