MIPS: Octeon: Configure minimum PKO packet sizes on CN68XX
CN68XX has common minimum packet size filters that need to be configured for the traffic to work. Just set them to a default value. 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/10963/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
4397564542
commit
b92084ba54
|
@ -658,6 +658,21 @@ static int __cvmx_helper_global_setup_pko(void)
|
|||
fau_to.s.tout_val = 0xfff;
|
||||
fau_to.s.tout_enb = 0;
|
||||
cvmx_write_csr(CVMX_IOB_FAU_TIMEOUT, fau_to.u64);
|
||||
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN68XX)) {
|
||||
union cvmx_pko_reg_min_pkt min_pkt;
|
||||
|
||||
min_pkt.u64 = 0;
|
||||
min_pkt.s.size1 = 59;
|
||||
min_pkt.s.size2 = 59;
|
||||
min_pkt.s.size3 = 59;
|
||||
min_pkt.s.size4 = 59;
|
||||
min_pkt.s.size5 = 59;
|
||||
min_pkt.s.size6 = 59;
|
||||
min_pkt.s.size7 = 59;
|
||||
cvmx_write_csr(CVMX_PKO_REG_MIN_PKT, min_pkt.u64);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue