Re: [PATCH net-next] net: DSCP in IPv4 routing v2

2020-11-23 Thread Russell Strong
On Mon, 23 Nov 2020 23:55:05 +0100 Guillaume Nault wrote: > On Sat, Nov 21, 2020 at 06:24:46PM +1000, Russell Strong wrote: > > From 2f27f92d5a6f4dd69ac4af32cdb51ba8d2083606 Mon Sep 17 00:00:00 2001 > > From: Russell Strong > > Date: Sat, 21 Nov 2020 18:12:43 +1000 > &g

[PATCH net-next] net: DSCP in IPv4 routing v2

2020-11-21 Thread Russell Strong
>From 2f27f92d5a6f4dd69ac4af32cdb51ba8d2083606 Mon Sep 17 00:00:00 2001 From: Russell Strong Date: Sat, 21 Nov 2020 18:12:43 +1000 Subject: [PATCH] DSCP in IPv4 routing v2 This patch allows the use of DSCP values in routing The following macros define the scope of IPv4 TOS bits used in rout

Re: [PATCH net-next] net: DSCP in IPv4 routing

2020-11-14 Thread Russell Strong
IPTOS_RT_MASK -> iptos_rt_mask Signed-off-by: Russell Strong --- .../ethernet/mellanox/mlx5/core/en/tc_tun.c | 3 +- drivers/net/geneve.c | 4 +-- drivers/net/ipvlan/ipvlan_core.c | 2 +- drivers/net/ppp/pptp.c| 2 +- d

Re: [PATCH net-next] net: DSCP in IPv4 routing

2020-11-14 Thread Russell Strong
[PATCH 1/2] DSCP in IPv4 routing TOS handling in ipv4 routing does not use all the bits in a DSCP value. This change introduces a sysctl "route_tos_as_dscp" control that, when enabled, widens masks to used the 6 DSCP bits in routing. This commit adds the sysctl Signed-off-by: Russ

Re: [PATCH net-next] net: DSCP in IPv4 routing

2020-11-14 Thread Russell Strong
On Fri, 13 Nov 2020 10:02:25 +0100 Guillaume Nault wrote: > On Thu, Nov 12, 2020 at 07:36:56PM -0800, Stephen Hemminger wrote: > > On Fri, 13 Nov 2020 12:06:37 +1000 > > Russell Strong wrote: > > > > > diff --git a/include/uapi/linux/in_route.h > > >

[PATCH net-next] net: DSCP in IPv4 routing

2020-11-12 Thread Russell Strong
default and verified that lookups are indeed performed from the correct table. This now works instead of failing with "Error: Invalid tos." Signed-off-by: Russell Strong --- include/net/route.h | 2 +- include/uapi/linux/in_route.h | 2 +- include/uapi/linux/ip.h | 2 ++

IPv4 TOS vs DSCP

2020-11-11 Thread Russell Strong
Hello, After needing to do policy based routing based on DSCP, I discovered that IPv4 does not support this. It does support TOS, but this has never been upgraded to the new ( now quite old ) DSCP interpretation. Is there a historical reason why the interpretation has not changed? I could copy

Re: amplifying qdisc

2020-07-19 Thread Russell Strong
On Mon, 13 Jul 2020 09:52:28 -0700 Stephen Hemminger wrote: > On Sun, 12 Jul 2020 11:40:01 +1000 > Russell Strong wrote: > > > On Wed, 8 Jul 2020 23:26:34 -0700 > > Stephen Hemminger wrote: > > > > > On Thu, 9 Jul 2020 16:10:34 +1000 > > >

Re: amplifying qdisc

2020-07-11 Thread Russell Strong
On Wed, 8 Jul 2020 23:26:34 -0700 Stephen Hemminger wrote: > On Thu, 9 Jul 2020 16:10:34 +1000 > Russell Strong wrote: > > > Hi, > > > > I'm attempting to fill a link with background traffic that is sent > > whenever the link is idle. To do this I'

amplifying qdisc

2020-07-08 Thread Russell Strong
Identifier: GPL-2.0-or-later /* * net/sched/sch_amp.c amplifying qdisc * * Authors: Russell Strong */ #include #include #include #include #include #include #include struct amp_sched_data { u32 duplicates; u32 remaining; }; static int amp_enqueue(struct sk_buff *s