be2net: refactor multi-channel config code for Skyhawk-R chip
authorVasundhara Volam <vasundhara.volam@emulex.com>
Wed, 12 Feb 2014 10:39:25 +0000 (16:09 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 23:19:22 +0000 (18:19 -0500)
commitf93f160b5a3546b6d3143894f63a326442071e48
tree53f2677bd1211e2d818324d3c99977fce3d75549
parent40263820b4488971c6623d938be663020d6e916d
be2net: refactor multi-channel config code for Skyhawk-R chip

Currently multi-channel configuration is read via the QUERY_FW_CONFIG cmd.
This method has been deprecated by the Skyhawk-R FW. Instead,
GET_PROFILE_CONFIG::port-desc must be used to query this configuration.

This patch also:
a) introduces a few macros to identify certain categories of multi-channel
configs
2) re-factors the be_cmd_set_profile_config() code to be able to read any kind
of desc (and not just the nic-desc.)

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_hw.h
drivers/net/ethernet/emulex/benet/be_main.c