diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2010-07-22 22:04:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-23 15:42:46 -0400 |
commit | 3486be29e63a9e8b0b013a9581879d8a48790d20 (patch) | |
tree | 0b138b6b5db29132f65e3bf0d3e162774c7dd60e /drivers | |
parent | 8943807c214535c079bd30469562d1126b70bc2a (diff) |
be2net: variable name changes
This patch changes names of some variables.
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/benet/be.h | 2 | ||||
-rw-r--r-- | drivers/net/benet/be_cmds.c | 4 | ||||
-rw-r--r-- | drivers/net/benet/be_cmds.h | 2 | ||||
-rw-r--r-- | drivers/net/benet/be_main.c | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index 8cfe3c4fea04..434bc4bb6652 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h | |||
@@ -285,7 +285,7 @@ struct be_adapter { | |||
285 | u32 port_num; | 285 | u32 port_num; |
286 | bool promiscuous; | 286 | bool promiscuous; |
287 | bool wol; | 287 | bool wol; |
288 | u32 cap; | 288 | u32 function_mode; |
289 | u32 rx_fc; /* Rx flow control */ | 289 | u32 rx_fc; /* Rx flow control */ |
290 | u32 tx_fc; /* Tx flow control */ | 290 | u32 tx_fc; /* Tx flow control */ |
291 | int link_speed; | 291 | int link_speed; |
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index 45b6f9050342..6eaf8a3fa5ea 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c | |||
@@ -1258,7 +1258,7 @@ err: | |||
1258 | } | 1258 | } |
1259 | 1259 | ||
1260 | /* Uses mbox */ | 1260 | /* Uses mbox */ |
1261 | int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num, u32 *cap) | 1261 | int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num, u32 *mode) |
1262 | { | 1262 | { |
1263 | struct be_mcc_wrb *wrb; | 1263 | struct be_mcc_wrb *wrb; |
1264 | struct be_cmd_req_query_fw_cfg *req; | 1264 | struct be_cmd_req_query_fw_cfg *req; |
@@ -1279,7 +1279,7 @@ int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num, u32 *cap) | |||
1279 | if (!status) { | 1279 | if (!status) { |
1280 | struct be_cmd_resp_query_fw_cfg *resp = embedded_payload(wrb); | 1280 | struct be_cmd_resp_query_fw_cfg *resp = embedded_payload(wrb); |
1281 | *port_num = le32_to_cpu(resp->phys_port); | 1281 | *port_num = le32_to_cpu(resp->phys_port); |
1282 | *cap = le32_to_cpu(resp->function_cap); | 1282 | *mode = le32_to_cpu(resp->function_mode); |
1283 | } | 1283 | } |
1284 | 1284 | ||
1285 | spin_unlock(&adapter->mbox_lock); | 1285 | spin_unlock(&adapter->mbox_lock); |
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index 3b69e71d7d03..036531cd200f 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h | |||
@@ -749,7 +749,7 @@ struct be_cmd_resp_query_fw_cfg { | |||
749 | u32 be_config_number; | 749 | u32 be_config_number; |
750 | u32 asic_revision; | 750 | u32 asic_revision; |
751 | u32 phys_port; | 751 | u32 phys_port; |
752 | u32 function_cap; | 752 | u32 function_mode; |
753 | u32 rsvd[26]; | 753 | u32 rsvd[26]; |
754 | }; | 754 | }; |
755 | 755 | ||
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 79adcdd8fc5c..d5b097d836b9 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -963,7 +963,7 @@ static void be_rx_compl_process(struct be_adapter *adapter, | |||
963 | 963 | ||
964 | /* vlanf could be wrongly set in some cards. | 964 | /* vlanf could be wrongly set in some cards. |
965 | * ignore if vtm is not set */ | 965 | * ignore if vtm is not set */ |
966 | if ((adapter->cap & 0x400) && !vtm) | 966 | if ((adapter->function_mode & 0x400) && !vtm) |
967 | vlanf = 0; | 967 | vlanf = 0; |
968 | 968 | ||
969 | if (unlikely(vlanf)) { | 969 | if (unlikely(vlanf)) { |
@@ -1003,7 +1003,7 @@ static void be_rx_compl_process_gro(struct be_adapter *adapter, | |||
1003 | 1003 | ||
1004 | /* vlanf could be wrongly set in some cards. | 1004 | /* vlanf could be wrongly set in some cards. |
1005 | * ignore if vtm is not set */ | 1005 | * ignore if vtm is not set */ |
1006 | if ((adapter->cap & 0x400) && !vtm) | 1006 | if ((adapter->function_mode & 0x400) && !vtm) |
1007 | vlanf = 0; | 1007 | vlanf = 0; |
1008 | 1008 | ||
1009 | skb = napi_get_frags(&eq_obj->napi); | 1009 | skb = napi_get_frags(&eq_obj->napi); |
@@ -2500,7 +2500,7 @@ static int be_get_config(struct be_adapter *adapter) | |||
2500 | return status; | 2500 | return status; |
2501 | 2501 | ||
2502 | status = be_cmd_query_fw_cfg(adapter, | 2502 | status = be_cmd_query_fw_cfg(adapter, |
2503 | &adapter->port_num, &adapter->cap); | 2503 | &adapter->port_num, &adapter->function_mode); |
2504 | if (status) | 2504 | if (status) |
2505 | return status; | 2505 | return status; |
2506 | 2506 | ||
@@ -2520,7 +2520,7 @@ static int be_get_config(struct be_adapter *adapter) | |||
2520 | memcpy(adapter->netdev->perm_addr, mac, ETH_ALEN); | 2520 | memcpy(adapter->netdev->perm_addr, mac, ETH_ALEN); |
2521 | } | 2521 | } |
2522 | 2522 | ||
2523 | if (adapter->cap & 0x400) | 2523 | if (adapter->function_mode & 0x400) |
2524 | adapter->max_vlans = BE_NUM_VLANS_SUPPORTED/4; | 2524 | adapter->max_vlans = BE_NUM_VLANS_SUPPORTED/4; |
2525 | else | 2525 | else |
2526 | adapter->max_vlans = BE_NUM_VLANS_SUPPORTED; | 2526 | adapter->max_vlans = BE_NUM_VLANS_SUPPORTED; |