]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: EEE code refactoring
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 10 Sep 2012 05:51:06 +0000 (05:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Sep 2012 20:40:29 +0000 (16:40 -0400)
commit314144b54b67b847fc152f15e77795fcf719a7af
tree43c03304cf17289018579e617c3905b57889ec9e
parent3c3ad591a66fea3bc2143e5bb18080561e949c24
bnx2x: EEE code refactoring

In order to lay the foundation for 1G EEE support, several segments of code
which are common to both 1G and 10G EEE configurations were extracted from
the 10G EEE configuration flow to their own functions.
E.g., bnx2x_eee_initial_config, bnx2x_eee_advertise, bnx2x_eee_disable, etc.

The rest of the EEE functions were relocated and placed in a single,
continuous section of the file.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c