be2net: fixup TX-rate setting code for Skyhawk-R
authorRavikumar Nelavelli <ravikumar.nelavelli@emulex.com>
Fri, 30 May 2014 13:36:24 +0000 (19:06 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 May 2014 00:27:33 +0000 (17:27 -0700)
commit0f77ba73533ab9ae3845f4c7439d340dcafef7ad
tree27797bff8c650459bb7f2b413d59faa346d54e38
parenta0794885702eeab80471d8e5bdd2bfb00e6eb94f
be2net: fixup TX-rate setting code for Skyhawk-R

Skyhawk-R FW supports TX-rate setting only as a % value of the link
speed, set via the SET_PROFILE_CONFIG cmd.

This patch makes the necessary changes to the FW cmd descriptors to support
the above change and also introduces checks in be_set_vf_tx_rate() to allow
only discrete values (that map to % of the link-speed).

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