OSDN Git Service

Merge branch 'stmmac-Clean-up-and-tune-up'
authorDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 15:00:16 +0000 (11:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 15:00:16 +0000 (11:00 -0400)
commit10151339e8c9d33cb6a9e6aba22a59efa02383d1
treefc1b7bfb3026fe7e17c0f449039884c1ecf5e9da
parent538e2de104cfb4ef1acb35af42427bff42adbe4d
parent61fac60a6ab72efb3b1ef7d052724fbeed52fe97
Merge branch 'stmmac-Clean-up-and-tune-up'

Jose Abreu says:

====================
net: stmmac: Clean-up and tune-up

This targets to uniformize the handling of the different GMAC versions in
stmmac_main.c file and also tune-up the HW.

Currently there are some if/else conditions in the main source file which
calls different callbacks depending on the ID of GMAC.

With the introducion of a generic HW interface handling which automatically
selects the GMAC callbacks to be used, it is now unpleasant to see if
conditions in the main code because this should be completely agnostic of the
GMAC version.

This series removes most of these conditions. There are some if conditions
that remain untouched but the callbacks handling are now uniformized.

Tested in GMAC5, hope I didn't break any previous versions.

Please check [1] for performance analisys of patches 3-12.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>