Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Octeon: Set up 1:1 mapping between CN68XX PKO queues and ports

Use the internal port number also as the queue number on CN68XX.

Signed-off-by: Janne Huttunen <janne.huttunen@nokia.com>
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: David Daney <david.daney@cavium.com>
Cc: David Daney <ddaney.cavm@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Janne Huttunen <janne.huttunen@nokia.com>
Cc: Aaro Koskinen <aaro.koskinen@nokia.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org
Patchwork: https://patchwork.linux-mips.org/patch/10962/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Janne Huttunen and committed by
Ralf Baechle
85847d80 153bfe38

+3
+3
arch/mips/include/asm/octeon/cvmx-pko.h
··· 542 542 */ 543 543 static inline int cvmx_pko_get_base_queue(int port) 544 544 { 545 + if (OCTEON_IS_MODEL(OCTEON_CN68XX)) 546 + return port; 547 + 545 548 return cvmx_pko_get_base_queue_per_core(port, 0); 546 549 } 547 550