[PATCH] gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPY

2020-08-18 Thread Mark Tomlinson
inner packets, but still defaults to IPv6. Fixes: 308edfdf1563 ("gre6: Cleanup GREv6 receive path, call common GRE functions") Signed-off-by: Mark Tomlinson --- net/ipv6/ip6_tunnel.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/ipv6/ip6_tunnel.c

[PATCH] ipv6: Support more than 32 MIFS

2020-07-09 Thread Mark Tomlinson
The function ip6mr_mfc_add() declared an array of ttls. If MAXMIFS is large, this would create a large stack frame. This is fixed, and made more efficient, by passing mf6cc_ifset to ip6mr_update_thresholds(). Signed-off-by: Mark Tomlinson --- As background to this patch, we have MAXMIFS set to

Re: [PATCH] net: VRF: Fix receiving multicast traffic

2016-09-22 Thread Mark Tomlinson
On 09/23/2016 10:41 AM, David Ahern wrote: > On 9/22/16 4:10 PM, Mark Tomlinson wrote: >> On 09/23/2016 03:14 AM, David Ahern wrote: >>> l3mdev devices do not support IPv4 multicast so checking mcast against that >>> device should not be working at all. For that

Re: [PATCH] net: VRF: Fix receiving multicast traffic

2016-09-22 Thread Mark Tomlinson
On 09/23/2016 03:14 AM, David Ahern wrote: > > l3mdev devices do not support IPv4 multicast so checking mcast against that > device should not be working at all. For that reason I was fine with the > change in the previous patch. ie., you want the real ingress device there not > the vrf device.

[PATCH] net: VRF: Fix receiving multicast traffic

2016-09-21 Thread Mark Tomlinson
->dev when checking multicast addresses. skb->dev has been set to the l3mdev by this point, so the check will be against that, rather than the ingress interface. Fixes: "net:VRF: Pass original iif to ip_route_input()" Signed-off-by: Mark Tomlinson --- net/ipv4/route.c | 2 +- 1

[PATCH v2] net: VRF: Pass original iif to ip_route_input()

2016-09-14 Thread Mark Tomlinson
ial net_device. This is passed to the other functions within ip_rcv_finish, so they still see the original interface. Signed-off-by: Mark Tomlinson Acked-by: David Ahern --- net/ipv4/ip_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ipv4/ip_input.c b/net/i

[PATCH] net: VRF: Pass original iif to ip_route_input()

2016-09-11 Thread Mark Tomlinson
ial net_device. This is passed to the other functions within ip_rcv_finish, so they still see the original interface. Please note that while this patch fixes my issue, I am not entirely sure why the skb->dev is changed to the master device, so I am not sure this is the right fix. Signed-off-by

[PATCH v2] net: Don't delete routes in different VRFs

2016-09-04 Thread Mark Tomlinson
("net: Add routes to the table associated with the device") Acked-by: David Ahern Tested-by: David Ahern Signed-off-by: Mark Tomlinson --- include/net/ip_fib.h | 3 ++- net/ipv4/fib_frontend.c | 3 ++- net/ipv4/fib_semantics.c | 8 ++-- 3 files changed, 10 insertions(+), 4 del

[PATCH] net: Don't delete routes in different VRFs

2016-09-01 Thread Mark Tomlinson
_info to hold a table id. When removing fib entries corresponding to a local ip address, this table id is also used in the comparison. The table id is populated when the fib_info is created. This was already done in some places, but not in ip_rt_ioctl(). This has now been fixed. Signed-off-by:

[PATCH] l2tp: Fix error creating L2TP tunnels

2016-02-14 Thread Mark Tomlinson
error. Other calls to this and other similar notification functions either ignore the error code, or filter ESRCH. This patch checks for ESRCH and does not flag this as an error. Reviewed-by: Hamish Martin Signed-off-by: Mark Tomlinson --- net/l2tp/l2tp_netlink.c | 18 ++ 1 file