]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit323ff71e566994f77761e221361de5b4a52a612f
tree13e683ac12e63991b1166e0206381276b8c45276
parent55f5c3c55b5a682c4bb37628979c5909f9de7b30
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