Re: [PATCH net] mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled

2019-07-29 Thread Petr Machata
David Miller writes: > From: Ido Schimmel > Date: Sat, 27 Jul 2019 20:35:32 +0300 > >> @@ -979,19 +979,36 @@ static int mlxsw_sp1_ptp_mtpppc_update(struct >> mlxsw_sp_port *mlxsw_sp_port, >> { >> struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; >> struct mlxsw_sp_port *tmp; >>

Re: [PATCH net] mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled

2019-07-29 Thread David Miller
From: Ido Schimmel Date: Sat, 27 Jul 2019 20:35:32 +0300 > @@ -979,19 +979,36 @@ static int mlxsw_sp1_ptp_mtpppc_update(struct > mlxsw_sp_port *mlxsw_sp_port, > { > struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; > struct mlxsw_sp_port *tmp; > + u16 orig_ing_types = 0; > +

[PATCH net] mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled

2019-07-27 Thread Ido Schimmel
From: Petr Machata Spectrum systems have a configurable limit on how far into the packet they parse. By default, the limit is 96 bytes. An IPv6 PTP packet is layered as Ethernet/IPv6/UDP (14+40+8 bytes), and sequence ID of a PTP event is only available 32 bytes into payload, for a total of 94 by