]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: cleanup code related to be_link_status_query()
authorSathya Perla <sathya.perla@emulex.com>
Fri, 7 Dec 2012 10:52:46 +0000 (05:52 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 17 Dec 2012 08:42:37 +0000 (00:42 -0800)
commit8c17de139c34833ea9f36e94b02ac25cd0087d88
tree51197d2d73871c2246a51f4c68fefcd0b156a345
parent5742fcb397ae3e89ba7afd0d8b5633afb92a8bab
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/benet/be.h
drivers/net/benet/be_cmds.c
drivers/net/benet/be_cmds.h
drivers/net/benet/be_ethtool.c
drivers/net/benet/be_main.c