]> git.baikalelectronics.ru Git - kernel.git/commit
net: gianfar: correctly determine the number of queue groups
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 5 Mar 2015 13:48:23 +0000 (14:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 03:18:32 +0000 (22:18 -0500)
commit6910ce62591e910f835a631a0a47e55f1671c66b
tree211c1c1ad25304734b47725770a25b8fc40613f7
parent7f6568d60e8caca4d3872f13fe4becd95beaf0a4
net: gianfar: correctly determine the number of queue groups

eTSEC of-nodes may have children which are not queue-group nodes. For
example new-style fixed-phy declarations. These where incorrectly
assumed to be additional queue-groups.

Change the search to filter out any nodes which are not queue-groups,
or have been disabled.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c