diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2013-07-23 13:55:02 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-25 02:41:52 +0400 |
commit | 95046b927a54f461766f83a212c6a93bc5fd2e67 (patch) | |
tree | 0d5518d5ca12bcd2d9a32740b42eac13049e7b9c /drivers/net/ethernet/emulex/benet/be_cmds.h | |
parent | b5bb9776b143dcf7931c6e00330bf8d518376760 (diff) | |
download | linux-95046b927a54f461766f83a212c6a93bc5fd2e67.tar.xz |
be2net: refactor MAC-addr setup code
The code to configure the permanent MAC in be_setup() has become quite
complicated, with different FW cmds being used for BEx, SH-R and Lancer.
Simplify the logic by moving some of this complexity to be_cmds.c. This
makes the code in be_setup() a little more readable.
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_cmds.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.h b/drivers/net/ethernet/emulex/benet/be_cmds.h index 671a89d84f98..5e9e2b0e920a 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.h +++ b/drivers/net/ethernet/emulex/benet/be_cmds.h @@ -1934,6 +1934,7 @@ extern int be_cmd_get_mac_from_list(struct be_adapter *adapter, u8 *mac, u8 domain); extern int be_cmd_get_active_mac(struct be_adapter *adapter, u32 pmac_id, u8 *mac); +extern int be_cmd_get_perm_mac(struct be_adapter *adapter, u8 *mac); extern int be_cmd_set_mac_list(struct be_adapter *adapter, u8 *mac_array, u8 mac_count, u32 domain); extern int be_cmd_set_hsw_config(struct be_adapter *adapter, u16 pvid, |