Re: [PATCH v2] netem: fix zero division in tabledist

2020-10-29 Thread Jakub Kicinski
On Wed, 28 Oct 2020 11:19:59 -0700 Stephen Hemminger wrote: > On Wed, 28 Oct 2020 17:07:31 + > Aleksandr Nogikh wrote: > > > From: Aleksandr Nogikh > > > > Currently it is possible to craft a special netlink RTM_NEWQDISC > > command that can result in jitter being equal to 0x8000. It is

Re: [PATCH v2] netem: fix zero division in tabledist

2020-10-28 Thread Stephen Hemminger
On Wed, 28 Oct 2020 17:07:31 + Aleksandr Nogikh wrote: > From: Aleksandr Nogikh > > Currently it is possible to craft a special netlink RTM_NEWQDISC > command that can result in jitter being equal to 0x8000. It is > enough to set the 32 bit jitter to 0x0200 (it will later be > multi

[PATCH v2] netem: fix zero division in tabledist

2020-10-28 Thread Aleksandr Nogikh
From: Aleksandr Nogikh Currently it is possible to craft a special netlink RTM_NEWQDISC command that can result in jitter being equal to 0x8000. It is enough to set the 32 bit jitter to 0x0200 (it will later be multiplied by 2^6) or just set the 64 bit jitter via TCA_NETEM_JITTER64. This