Re: tcp sync cache signed use counter

2023-09-04 Thread Vitaliy Makkoveev
> On 4 Sep 2023, at 23:43, Christian Weisgerber wrote: > > Alexander Bluhm: > >> Variable scs_use is basically counting packet insertions to syn >> cache, so I would prefer type long to exclude overflow on fast >> machines. With the current limits int should be enough, but long >> does not hurt

Re: tcp sync cache signed use counter

2023-09-04 Thread Christian Weisgerber
Alexander Bluhm: > Variable scs_use is basically counting packet insertions to syn > cache, so I would prefer type long to exclude overflow on fast > machines. With the current limits int should be enough, but long > does not hurt. But long is the same size as int. On our 32-bit archs. Or are

Re: tcp sync cache signed use counter

2023-09-04 Thread Vitaliy Makkoveev
> On 4 Sep 2023, at 19:52, Alexander Bluhm wrote: > > On Mon, Sep 04, 2023 at 07:22:03PM +0300, Vitaliy Makkoveev wrote: >>> On 4 Sep 2023, at 16:19, Alexander Bluhm wrote: >>> >>> Hi, >>> >>> Variable scs_use is basically counting packet insertions to syn >>> cache, so I would prefer type lon

Re: tcp sync cache signed use counter

2023-09-04 Thread Alexander Bluhm
On Mon, Sep 04, 2023 at 07:22:03PM +0300, Vitaliy Makkoveev wrote: > > On 4 Sep 2023, at 16:19, Alexander Bluhm wrote: > > > > Hi, > > > > Variable scs_use is basically counting packet insertions to syn > > cache, so I would prefer type long to exclude overflow on fast > > machines. With the cu

Re: tcp sync cache signed use counter

2023-09-04 Thread Vitaliy Makkoveev
> On 4 Sep 2023, at 16:19, Alexander Bluhm wrote: > > Hi, > > Variable scs_use is basically counting packet insertions to syn > cache, so I would prefer type long to exclude overflow on fast > machines. With the current limits int should be enough, but long > does not hurt. > > It can be negat

tcp sync cache signed use counter

2023-09-04 Thread Alexander Bluhm
Hi, Variable scs_use is basically counting packet insertions to syn cache, so I would prefer type long to exclude overflow on fast machines. With the current limits int should be enough, but long does not hurt. It can be negative as it starts at a positive limit and counts backwards. After all