diff options
author | Marian Cristian Rotariu <marian.rotariu@freescale.com> | 2014-09-29 12:59:52 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:34:39 (GMT) |
commit | 3844262a023733d888bb388c6e81271058a26ea9 (patch) | |
tree | 6fdc54ff446fa8810a39343c72e5d9df9cd6a8e2 /drivers | |
parent | f27de8069a3e433d78a587cf7ff2a75b8fcbe1d1 (diff) | |
download | linux-fsl-qoriq-3844262a023733d888bb388c6e81271058a26ea9.tar.xz |
offline_port: fix dt parser for tx frame queues
With the current implementation the user has the possibility to initialize
some queues that exit the offline port. The format of the device tree format
is:
fsl,qman-frame-queues-egress = <base_id1 count1 ... base_idn countn>;
fsl,qman-channel-ids-egress = <channel_id1 ... channel_idn>;
Intuitively, the base_id1, count1 frame queues batch are placed in the
channel_id1 QMan channel. Because the list_add() adds an entry at the beginning
of the list, the map between the frame queues and their channel ID is reversed.
This patch adds a particular entry at the end of the fq list using
list_add_tail() function.
Signed-off-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
Change-Id: I8d3a2fd3c36f63d15837ffe90bf6e4e8b041a3e5
Reviewed-on: http://git.am.freescale.net:8181/20154
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Tested-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/offline_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/offline_port.c b/drivers/net/ethernet/freescale/dpa/offline_port.c index b9f17cf..042f44a 100644 --- a/drivers/net/ethernet/freescale/dpa/offline_port.c +++ b/drivers/net/ethernet/freescale/dpa/offline_port.c @@ -491,7 +491,7 @@ oh_port_probe(struct platform_device *_of_dev) fqd->fqs_count = crt_fq_count; /* channel ID is specified in another attribute */ fqd->channel_id = 0; - list_add(&fqd->fq_list, &oh_config->fqs_egress_list); + list_add_tail(&fqd->fq_list, &oh_config->fqs_egress_list); /* allocate the queue */ |