]> 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)
commita5eef432017fc4e8a25e248c5bcc0e482a695d46
tree211c1c1ad25304734b47725770a25b8fc40613f7
parentf150fb2b932ab38575afd38bb1de82690ae1c9c7
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