]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit797652f07617a09f53cd8546908a18b26102828e
tree53f2677bd1211e2d818324d3c99977fce3d75549
parent3e89ca1988baeab709cfc585055462e1e85cae90
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