]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: cleanup code related to be_link_status_query()
authorSathya Perla <sathya.perla@emulex.com>
Fri, 28 Sep 2012 04:39:43 +0000 (04:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Sep 2012 06:15:34 +0000 (02:15 -0400)
commitc654f961f47aaa7dcf776f0f589c37643ee3d555
tree13e683ac12e63991b1166e0206381276b8c45276
parentbacbe9693823939abf9cbfec378177e35d5bf1a4
be2net: cleanup code related to be_link_status_query()

1) link_status_query() is always called to query the link-speed (speed
after applying qos). When there is no qos setting, link-speed is derived from
port-speed. Do all this inside this routine and hide this from the callers.

2) adpater->phy.forced_port_speed is not being set anywhere after being
initialized. Get rid of this variable.

3) Ignore async link_speed notifications till the initial value has been
fetched from FW.

Signed-off-by: Sathya Perla <sathya.perla@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_ethtool.c
drivers/net/ethernet/emulex/benet/be_main.c