Re: [PATCH v3 net-next] net: multipath routing: configurable seed

2021-04-15 Thread Pavel Balaev
On Wed, Apr 14, 2021 at 08:24:11PM -0700, David Ahern wrote: > On 4/14/21 12:33 AM, Pavel Balaev wrote: > >> > >> This should work the same for IPv6. > > I wanted to add IPv6 support after IPv4 will be approved, > > anyway no problem, will add IPv6 in next versio

Re: [PATCH v3 net-next] net: multipath routing: configurable seed

2021-04-14 Thread Pavel Balaev
On Tue, Apr 13, 2021 at 04:15:21PM -0700, David Miller wrote: > From: Balaev Pavel > Date: Tue, 13 Apr 2021 14:55:04 +0300 > > > @@ -222,6 +230,9 @@ struct netns_ipv4 { > > #ifdef CONFIG_IP_ROUTE_MULTIPATH > > u8 sysctl_fib_multipath_use_neigh; > > u8 sysctl_fib_multipath_hash_policy; >

Re: [PATCH v3 net-next] net: multipath routing: configurable seed

2021-04-14 Thread Pavel Balaev
On Tue, Apr 13, 2021 at 08:28:52PM -0700, David Ahern wrote: > On 4/13/21 4:55 AM, Balaev Pavel wrote: > > Ability for a user to assign seed value to multipath route hashes. > > Now kernel uses random seed value to prevent hash-flooding DoS attacks; > > however, it disables some use cases, f.e: > >

[PATCH v3] ipv4: make DSCP values works with ip rules

2018-11-27 Thread Pavel Balaev
| table dscp: | | 172.16.0.0/24 via 10.200.0.2 | +-+ +--+ -> | eth0: 10.200.0.2 | | eth1: 172.16.0.1 | | host1 | +--+ Signed-off-by: Pavel Balaev --- include/net/route.h | 2 +- include/uapi/linux/ip.h |

Re: [PATCH v2] ipv4: make DSCP values works with ip rules

2018-11-20 Thread Pavel Balaev
On Tue, Nov 20, 2018 at 03:12:18PM +0100, Sabrina Dubroca wrote: > Hi Pavel, > > 2018-11-20, 16:29:36 +0300, Pavel Balaev wrote: > > This patch adds ability to set DSCP values in ip rules. > > You dropped the RFC reference that you had in v1. > RFC2474 and RFC2597 valu

[PATCH v2] ipv4: make DSCP values works with ip rules

2018-11-20 Thread Pavel Balaev
| host1 | +--+ Signed-off-by: Pavel Balaev --- include/net/route.h | 2 +- include/uapi/linux/ip.h | 2 ++ net/ipv4/fib_rules.c| 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/net/route.h b/include/net/route.h index bb53cdba..b984ecff 100644 --- a/incl

Re: [PATCH] ipv4: allow newer DSCP values in ip rules

2018-11-20 Thread Pavel Balaev
On Mon, Nov 19, 2018 at 03:11:29PM -0800, David Miller wrote: > From: Pavel Balaev > Date: Mon, 19 Nov 2018 12:00:45 +0300 > > > After this patch this one can use it: > > You can "configure it" but it doesn't work at all. > > Did you test this in

[PATCH] ipv4: allow newer DSCP values in ip rules

2018-11-19 Thread Pavel Balaev
ch 8.8.8.9 tos 0x80 default tos CS4 via 192.168.0.6 dev lan table test Signed-off-by: Pavel Balaev --- net/ipv4/fib_rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index f8eb78d0..7a6c5bfe 100644 --- a/net/ipv4/fib_rules.c

Re: [PATCH] allow DSCP values in ip rules

2018-11-15 Thread Pavel Balaev
On Wed, Nov 14, 2018 at 05:30:37PM +0300, Pavel Balaev wrote: > Hello, for now IP rules supports only old TOS values and we cannot use > DSCP. > > This patch adds support for DSCP values in IP rules: > > $ ip r add default via 192.168.0.6 table test > $ ip ru add tos 0x80

Re: [PATCH] allow DSCP values in ip rules

2018-11-15 Thread Pavel Balaev
On Wed, Nov 14, 2018 at 05:30:37PM +0300, Pavel Balaev wrote: > Hello, for now IP rules supports only old TOS values and we cannot use > DSCP. > > This patch adds support for DSCP values in IP rules: > > $ ip r add default via 192.168.0.6 table test > $ ip ru add tos 0x80

[PATCH] allow DSCP values in ip rulesB

2018-11-14 Thread Pavel Balaev
: from all lookup main 32767: from all lookup default $ ip r get fibmatch 8.8.8.9 tos 0x80 default tos CS4 via 192.168.0.6 dev lan table test Signed-off-by: Pavel Balaev --- net/ipv4/fib_rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/fib_rules.c b/net/ipv4