be2net: refactor MAC-addr setup code
authorSathya Perla <sathya.perla@emulex.com>
Tue, 23 Jul 2013 09:55:02 +0000 (15:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2013 22:41:52 +0000 (15:41 -0700)
commit95046b927a54f461766f83a212c6a93bc5fd2e67
tree0d5518d5ca12bcd2d9a32740b42eac13049e7b9c
parentb5bb9776b143dcf7931c6e00330bf8d518376760
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>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c