From: Janne Huttunen <[email protected]>

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

Signed-off-by: Janne Huttunen <[email protected]>
Signed-off-by: Aaro Koskinen <[email protected]>
---
 arch/mips/include/asm/octeon/cvmx-pko.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/include/asm/octeon/cvmx-pko.h 
b/arch/mips/include/asm/octeon/cvmx-pko.h
index 3da59bb..5f47f76 100644
--- a/arch/mips/include/asm/octeon/cvmx-pko.h
+++ b/arch/mips/include/asm/octeon/cvmx-pko.h
@@ -542,6 +542,9 @@ static inline int cvmx_pko_get_base_queue_per_core(int 
port, int core)
  */
 static inline int cvmx_pko_get_base_queue(int port)
 {
+       if (OCTEON_IS_MODEL(OCTEON_CN68XX))
+               return port;
+
        return cvmx_pko_get_base_queue_per_core(port, 0);
 }
 
-- 
2.4.3

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to