]> 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)
commit15bc1b7d8eaf404b54ae43a56343e5d6b62519ff
tree43c03304cf17289018579e617c3905b57889ec9e
parentd364aa1d2a6424951fdf5d1ccd8b8fdd35001009
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