Author: melifaro
Date: Fri Dec 18 22:00:57 2020
New Revision: 368769
URL: https://svnweb.freebsd.org/changeset/base/368769
Log:
Switch direct rt fields access in rtsock.c to newly-create field acessors.
rtsock code was build around the assumption that each rtentry record
in the system ra
Author: melifaro
Date: Mon Dec 14 22:54:32 2020
New Revision: 368651
URL: https://svnweb.freebsd.org/changeset/base/368651
Log:
Fix LINT-NOINET6 build after r368571.
Reported by: mjg
Modified:
head/sys/netpfil/ipfw/ip_fw_table_algo.c
Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c
=
Author: melifaro
Date: Mon Dec 14 22:23:08 2020
New Revision: 368648
URL: https://svnweb.freebsd.org/changeset/base/368648
Log:
Enable ROUTE_MPATH support in GENERIC kernels.
Ability to load-balance traffic over multiple path is a must-have thing for
routers.
It may be used by the server
Author: melifaro
Date: Sat Dec 12 01:05:31 2020
New Revision: 368572
URL: https://svnweb.freebsd.org/changeset/base/368572
Log:
Fix NOINET6 build broken by r368571.
Modified:
head/sys/netpfil/ipfw/ip_fw_table_algo.c
Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c
=
Author: melifaro
Date: Fri Dec 11 23:57:30 2020
New Revision: 368571
URL: https://svnweb.freebsd.org/changeset/base/368571
Log:
ipfw kfib algo: Use rt accessors instead of accessing rib/rtentry directly.
This removes assumptions on prefix storage and rtentry layout
from an external code.
Author: melifaro
Date: Thu Dec 3 22:23:57 2020
New Revision: 368317
URL: https://svnweb.freebsd.org/changeset/base/368317
Log:
Add IPv4/IPv6 rtentry prefix accessors.
Multiple consumers like ipfw, netflow or new route lookup algorithms
need to get the prefix data out of struct rtentry.
Author: melifaro
Date: Mon Nov 30 21:59:52 2020
New Revision: 368199
URL: https://svnweb.freebsd.org/changeset/base/368199
Log:
Move inner loop logic out of sysctl_sysctl_next_ls().
Refactor sysctl_sysctl_next_ls():
* Move huge inner loop out of sysctl_sysctl_next_ls() into a separate
Author: melifaro
Date: Mon Nov 30 21:42:55 2020
New Revision: 368198
URL: https://svnweb.freebsd.org/changeset/base/368198
Log:
Renumber NHR_* flags after NHR_IFAIF removal in r368127.
Suggested by: rpokala
Modified:
head/sys/net/route.h
Modified: head/sys/net/route.h
==
Author: melifaro
Date: Sun Nov 29 19:43:33 2020
New Revision: 368164
URL: https://svnweb.freebsd.org/changeset/base/368164
Log:
Remove RADIX_MPATH config option.
ROUTE_MPATH is the new config option controlling new multipath routing
implementation. Remove the last pieces of RADIX_MPATH-r
Author: melifaro
Date: Sun Nov 29 13:54:49 2020
New Revision: 368150
URL: https://svnweb.freebsd.org/changeset/base/368150
Log:
Introduce rib_walk_ext_internal() to allow iteration with rnh pointer.
This solves the case when rib is not yet attached/detached to/from the
system rib array.
Author: melifaro
Date: Sun Nov 29 13:52:06 2020
New Revision: 368149
URL: https://svnweb.freebsd.org/changeset/base/368149
Log:
Add nhop_ref_any() to unify referencing nhop or nexthop group.
It allows code within routing subsystem to transparently reference nexthops
and nexthop groups, s
Author: melifaro
Date: Sun Nov 29 13:41:49 2020
New Revision: 368147
URL: https://svnweb.freebsd.org/changeset/base/368147
Log:
Refactor fib4/fib6 functions.
No functional changes.
* Make lookup path of fib<4|6>_lookup_debugnet() separate functions
(fib<46>_lookup_rt()). These will
Author: melifaro
Date: Sun Nov 29 13:27:24 2020
New Revision: 368146
URL: https://svnweb.freebsd.org/changeset/base/368146
Log:
Add tracking for rib/nhops/nhgrp objects and provide cumulative number
accessors.
The resulting KPI can be used by routing table consumers to estimate the
requir
Author: melifaro
Date: Sat Nov 28 15:46:40 2020
New Revision: 368128
URL: https://svnweb.freebsd.org/changeset/base/368128
Log:
Add nhgrp_get_idx() as a counterpart for nhop_get_idx().
It allows the routing-related code to reference nexthop groups by index
instead of storing a pointer.
Author: melifaro
Date: Sat Nov 28 15:11:59 2020
New Revision: 368127
URL: https://svnweb.freebsd.org/changeset/base/368127
Log:
Cleanup nexthops request flags:
* remove NHR_IFAIF as it was used by previous version of nexthop KPI
* update NHR_REF description
Modified:
head/sys/net/route.h
Author: melifaro
Date: Sun Nov 22 20:21:10 2020
New Revision: 367941
URL: https://svnweb.freebsd.org/changeset/base/367941
Log:
Refactor rib iterator functions.
* Make rib_walk() order of arguments consistent with the rest of RIB api
* Add rib_walk_ext() allowing to exec callback before/a
Author: melifaro
Date: Sun Nov 8 18:27:49 2020
New Revision: 367491
URL: https://svnweb.freebsd.org/changeset/base/367491
Log:
Switch net.add_addr_allfibs default to 0.
The goal of the fib support is to provide multiple independent
routing tables, isolated from each other.
net.add_add
Author: melifaro
Date: Sun Nov 8 18:11:12 2020
New Revision: 367490
URL: https://svnweb.freebsd.org/changeset/base/367490
Log:
Temporarily revert setting net.add_addr_allfibs to 0.
It accidentally sweeped in r367486.
Revert to allow for proper commit message & warning.
Modified:
head/sys
Author: melifaro
Date: Sun Nov 8 13:30:44 2020
New Revision: 367486
URL: https://svnweb.freebsd.org/changeset/base/367486
Log:
Fix build broken by r367484: add route_ifaddrs.c.
Pointy hat to: melifaro
Reported by: jenkins
Added:
head/sys/net/route/route_ifaddrs.c (contents, props c
Author: melifaro
Date: Sun Nov 8 11:12:00 2020
New Revision: 367484
URL: https://svnweb.freebsd.org/changeset/base/367484
Log:
Move all ifaddr route creation business logic to net/route/route_ifaddr.c
Differential Revision:https://reviews.freebsd.org/D26318
Modified:
head/sys/co
Author: melifaro
Date: Thu Nov 5 22:41:54 2020
New Revision: 367402
URL: https://svnweb.freebsd.org/changeset/base/367402
Log:
MFC r367114.
Fix use-after-free in icmp6_notify_error().
Reported by: Maxime Villard
Modified:
stable/12/sys/netinet6/icmp6.c
Directory Properties:
sta
Author: melifaro
Date: Wed Oct 28 20:22:20 2020
New Revision: 367114
URL: https://svnweb.freebsd.org/changeset/base/367114
Log:
Fix use-after-free in icmp6_notify_error().
Reported by: Maxime Villard
Reviewed by: markj
MFC after:3 days
Modified:
head/sys/netinet6/icmp6.c
Modi
24.10.2020, 14:08, "Hans Petter Selasky" :
> On 2020-10-24 14:52, Alexey Dokuchaev wrote:
>> On Sat, Oct 24, 2020 at 10:23:22AM +, Hans Petter Selasky wrote:
>>> New Revision: 366993
>>> URL: https://svnweb.freebsd.org/changeset/base/366993
>>>
>>> Log:
>>> Run code through "clang-forma
Author: melifaro
Date: Wed Oct 21 21:28:20 2020
New Revision: 366917
URL: https://svnweb.freebsd.org/changeset/base/366917
Log:
Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q).
802.1ad interfaces are created with ifconfig using the "vlanproto" parameter.
Eg., the following create
Author: melifaro
Date: Sun Oct 18 20:54:15 2020
New Revision: 366816
URL: https://svnweb.freebsd.org/changeset/base/366816
Log:
MFC r363173: [ipfw] quieten maybe-uninitialized errors in ipfw.
PR: 250434
Reported by: brndr
Modified:
stable/12/sbin/ipfw/dummynet.c
stable/1
Author: melifaro
Date: Sun Oct 18 17:15:47 2020
New Revision: 366813
URL: https://svnweb.freebsd.org/changeset/base/366813
Log:
Implement flowid calculation for outbound connections to balance
connections over multiple paths.
Multipath routing relies on mbuf flowid data for both transit
Author: melifaro
Date: Sun Oct 18 12:03:36 2020
New Revision: 366807
URL: https://svnweb.freebsd.org/changeset/base/366807
Log:
Simplify NET_EPOCH_EXIT in inp_join_group().
Suggested by: kib
Modified:
head/sys/netinet/in_mcast.c
Modified: head/sys/netinet/in_mcast.c
Author: melifaro
Date: Sat Oct 17 20:33:09 2020
New Revision: 366795
URL: https://svnweb.freebsd.org/changeset/base/366795
Log:
Fix sleepq_add panic happening with too wide net epoch in mcast control.
PR: 250413
Reported by: Christopher Hall
Reviewed by: ae
Differential R
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Author: melifaro
Date: Fri Oct 16 21:51:17 2020
New Revision: 366773
URL: https://svnweb.freebsd.org/changeset/base/366773
Log:
Try to enable multipath routing in flowid tests.
Modified:
head/tests/sys/netinet/output.sh
head/tests/sys/netinet6/output6.sh
Modified: head/tests/sys/netinet/ou
Author: melifaro
Date: Sun Oct 4 13:24:58 2020
New Revision: 366424
URL: https://svnweb.freebsd.org/changeset/base/366424
Log:
Fix route flags update during RTM_CHANGE.
Nexthop lookup was not consireding rt_flags when doing
structure comparison, which lead to an original nexthop
selecti
Author: melifaro
Date: Sat Oct 3 14:37:54 2020
New Revision: 366398
URL: https://svnweb.freebsd.org/changeset/base/366398
Log:
Remove ROUTE_MPATH-related warnings introduced in r366390.
Reported by: mjg
Modified:
head/sys/net/route/route_ctl.c
head/sys/net/rtsock.c
Modified: head/sy
head/sys/net/route/mpath_ctl.c Sat Oct 3 10:47:17 2020
(r366390)
@@ -0,0 +1,165 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
+ * Copyright (c) 2020 Alexander V. Chernikov
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are
Author: melifaro
Date: Mon Sep 21 20:02:26 2020
New Revision: 365973
URL: https://svnweb.freebsd.org/changeset/base/365973
Log:
Rework part of routing code to reduce difference to D26449.
* Split rt_setmetrics into get_info_weight() and rt_set_expire_info(),
as these two can be applied a
Author: melifaro
Date: Sun Sep 20 21:32:52 2020
New Revision: 365930
URL: https://svnweb.freebsd.org/changeset/base/365930
Log:
Remove unused nhop_ref_any() function.
Remove "opt_mpath.h" header where not needed.
No functional changes.
Modified:
head/sys/net/route/nhop_ctl.c
head/sys
Author: melifaro
Date: Sun Sep 20 12:31:48 2020
New Revision: 365925
URL: https://svnweb.freebsd.org/changeset/base/365925
Log:
Fix gw updates / flag updates during route changes.
* Zero gw_sdl if switching to interface route - the assumption
that underlying storage is zeroed is incorrec
Author: melifaro
Date: Fri Sep 18 07:27:01 2020
New Revision: 365874
URL: https://svnweb.freebsd.org/changeset/base/365874
Log:
Use atf_fail instead of exit 1 to indicate mpath tests failure.
Modified:
head/tests/sys/netinet/output.sh
head/tests/sys/netinet6/output6.sh
Modified: head/tests
t (c) 2020 Alexander V. Chernikov
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#notice, this list of conditions and the
Author: melifaro
Date: Thu Sep 10 07:05:31 2020
New Revision: 365554
URL: https://svnweb.freebsd.org/changeset/base/365554
Log:
Fix RADIX_MPATH build broken by r365521.
Reported by: jenkins, Hartmann, O.
Modified:
head/sys/net/route/route_ctl.c
Modified: head/sys/net/route/route_ctl.c
Author: melifaro
Date: Wed Sep 9 22:07:54 2020
New Revision: 365521
URL: https://svnweb.freebsd.org/changeset/base/365521
Log:
Update nexthop handling for route addition/deletion in preparation for mpath.
Currently kernel requests deletion for the certain routes with specified
gateway,
09.09.2020, 07:13, "Andriy Gapon" :
> On 09/09/2020 00:50, Alexander V. Chernikov wrote:
>> 08.09.2020, 21:03, "Andriy Gapon" :
>>> On 22/08/2020 00:34, Alexander V. Chernikov wrote:
>>>> Author: melifaro
>>>> Date: Fri Aug
Author: melifaro
Date: Wed Sep 9 21:45:18 2020
New Revision: 365517
URL: https://svnweb.freebsd.org/changeset/base/365517
Log:
Retain marking net.fibs sysctl as a tunable.
Suggested by: avg
Modified:
head/sys/net/route/route_tables.c
Modified: head/sys/net/route/route_tables.c
08.09.2020, 21:03, "Andriy Gapon" :
> On 22/08/2020 00:34, Alexander V. Chernikov wrote:
>> Author: melifaro
>> Date: Fri Aug 21 21:34:52 2020
>> New Revision: 364465
>> URL: https://svnweb.freebsd.org/changeset/base/364465
>>
>> Log
08.09.2020, 22:39, "Alexander V. Chernikov" :
> Author: melifaro
> Date: Tue Sep 8 21:39:34 2020
> New Revision: 365475
> URL: https://svnweb.freebsd.org/changeset/base/365475
>
> Log:
> Fix panic with net.fibs tunable set in loader.conf.
>
> Fix by remov
Author: melifaro
Date: Tue Sep 8 21:39:34 2020
New Revision: 365475
URL: https://svnweb.freebsd.org/changeset/base/365475
Log:
Fix panic with net.fibs tunable set in loader.conf.
Fix by removing forgotten CTLFLAG_RWTUN flag from the sysctl,
loader variable will be read later in vnet_rta
Author: melifaro
Date: Mon Sep 7 10:13:54 2020
New Revision: 365404
URL: https://svnweb.freebsd.org/changeset/base/365404
Log:
Consistently use the same gateway when adding/deleting interface routes.
Use the same link-level gateway when adding or deleting interface routes.
This helps nex
Author: melifaro
Date: Thu Sep 3 22:24:52 2020
New Revision: 365315
URL: https://svnweb.freebsd.org/changeset/base/365315
Log:
Fix regression for IPv6 loopback routes.
After nexthop introduction, loopback routes for the interface addresses
were created without embedding actual interface
Author: melifaro
Date: Sat Aug 29 12:04:13 2020
New Revision: 364954
URL: https://svnweb.freebsd.org/changeset/base/364954
Log:
Revert uma zone alignemnt cache unadvertenly committed in r364950.
Modified:
head/sys/net/route/route_ctl.c
Modified: head/sys/net/route/route_ctl.c
===
Author: melifaro
Date: Sat Aug 29 11:04:24 2020
New Revision: 364950
URL: https://svnweb.freebsd.org/changeset/base/364950
Log:
Fix build with RADIX_MPATH.
Reported by: Hartmann, O
Modified:
head/sys/net/route/route_ctl.c
Modified: head/sys/net/route/route_ctl.c
==
Author: melifaro
Date: Fri Aug 28 23:01:56 2020
New Revision: 364942
URL: https://svnweb.freebsd.org/changeset/base/364942
Log:
Move fib_rte_to_nh_flags() from net/route_var.h to net/route/nhop_ctl.c.
No functional changes.
Initially this function was created to perform runtime flag conve
Author: melifaro
Date: Fri Aug 28 22:50:20 2020
New Revision: 364941
URL: https://svnweb.freebsd.org/changeset/base/364941
Log:
Move net/route/shared.h definitions to net/route/route_var.h.
No functional changes.
net/route/shared.h was created in the inital phases of nexthop conversion
Author: melifaro
Date: Fri Aug 28 21:59:10 2020
New Revision: 364940
URL: https://svnweb.freebsd.org/changeset/base/364940
Log:
Further split nhop creation and rtable operations.
As nexthops are immutable, some operations such as route attribute changes
require nexthop fetching, forking,
Author: melifaro
Date: Mon Aug 24 20:23:34 2020
New Revision: 364730
URL: https://svnweb.freebsd.org/changeset/base/364730
Log:
Remove RT_LOCK mutex from rte.
rtentry lock traditionally served 2 purposed: first was protecting refcounts,
the second was assuring consistent field access/cha
Author: melifaro
Date: Sat Aug 22 20:02:40 2020
New Revision: 364493
URL: https://svnweb.freebsd.org/changeset/base/364493
Log:
Finish r364492 by renaming rt_flags to rte_flags for multipath code.
Modified:
head/sys/net/route.c
Modified: head/sys/net/route.c
=
Author: melifaro
Date: Sat Aug 22 19:30:56 2020
New Revision: 364492
URL: https://svnweb.freebsd.org/changeset/base/364492
Log:
Rename rt_flags to rte_flags && reduce number of rt_nhop accesses.
No functional changes.
Most of the routing flags are stored in the netxtop instead of rtent
Author: melifaro
Date: Sat Aug 22 18:14:05 2020
New Revision: 364489
URL: https://svnweb.freebsd.org/changeset/base/364489
Log:
Add test for checking RTF_HOST and RTAX_NETMASK inconsistency.
RTF_HOST indicates whether route is a host route
(netmask is empty or /{32,128}).
Check that if
22.08.2020, 00:31, "Jung-uk Kim" :
> On 20. 8. 21., Alexander V. Chernikov wrote:
>> Author: melifaro
>> Date: Fri Aug 21 21:34:52 2020
>> New Revision: 364465
>> URL: https://svnweb.freebsd.org/changeset/base/364465
>>
>> Log:
>> Mak
21.08.2020, 23:21, "Julian Elischer" :
> On 8/21/20 2:34 PM, Alexander V. Chernikov wrote:
>> Author: melifaro
>> Date: Fri Aug 21 21:34:52 2020
>> New Revision: 364465
>> URL: https://svnweb.freebsd.org/changeset/base/364465
>>
>> Log:
Author: melifaro
Date: Fri Aug 21 21:34:52 2020
New Revision: 364465
URL: https://svnweb.freebsd.org/changeset/base/364465
Log:
Make net.fibs growable.
Allow to dynamically grow the amount of fibs in each vnet.
This change alters current behavior. Currently, if one defines
ROUTETABL
Author: melifaro
Date: Sat Aug 15 11:37:44 2020
New Revision: 364250
URL: https://svnweb.freebsd.org/changeset/base/364250
Log:
Make net.inet6.ip6.deembed_scopeid behaviour default & remove sysctl.
Submitted by: Neel Chauhan
Differential Revision:https://reviews.freebsd.org/D2563
Author: melifaro
Date: Fri Aug 14 21:29:56 2020
New Revision: 364238
URL: https://svnweb.freebsd.org/changeset/base/364238
Log:
Simplify dom_.
Remove unused arguments from dom_rtattach/dom_rtdetach functions and make
them return/accept 'struct rib_head' instead of 'void **'.
Declare i
Author: melifaro
Date: Thu Aug 13 18:35:29 2020
New Revision: 364202
URL: https://svnweb.freebsd.org/changeset/base/364202
Log:
Move rtzone handling code to net/route_ctl.c
After moving the route control plane code from net/route.c,
all rtzone users ended up being in net/route_ctl.c.
M
Author: melifaro
Date: Tue Aug 11 07:23:07 2020
New Revision: 364101
URL: https://svnweb.freebsd.org/changeset/base/364101
Log:
Do not enter epoch in add_route(), as it is already called in epoch.
Reviewed by: glebius
Modified:
head/sys/net/route/route_ctl.c
Modified: head/sys/net/rout
Author: melifaro
Date: Tue Aug 11 07:21:32 2020
New Revision: 364100
URL: https://svnweb.freebsd.org/changeset/base/364100
Log:
Make _route() static to finish the transition to the new kpi.
Discussed with: glebius
Modified:
head/sys/net/route/route_ctl.c
head/sys/net/route/route_
Author: melifaro
Date: Tue Aug 11 07:05:30 2020
New Revision: 364099
URL: https://svnweb.freebsd.org/changeset/base/364099
Log:
Fix rib_subscribe() waitok flag by performing allocation outside epoch.
Make in6_inithead() use rib_subscribe with waitok to achieve reliable
subscription allocati
Author: melifaro
Date: Tue Jul 21 19:56:13 2020
New Revision: 363403
URL: https://svnweb.freebsd.org/changeset/base/363403
Log:
Transition from rtrequest1_fib() to rib_action().
Remove all variations of rtrequest and their uses and switch to
to rib_action(). This is part of the new rout
Author: melifaro
Date: Sun Jul 19 10:53:15 2020
New Revision: 363320
URL: https://svnweb.freebsd.org/changeset/base/363320
Log:
Temporarly revert r363319 to unbreak the build.
Reported by: CI
Pointy hat to: melifaro
Modified:
head/sys/fs/nfsclient/nfs_clvfsops.c
head/sys/net/if.c
Author: melifaro
Date: Sun Jul 19 09:29:27 2020
New Revision: 363319
URL: https://svnweb.freebsd.org/changeset/base/363319
Log:
Transition from rtrequest1_fib() to rib_action().
Remove all variations of rtrequest and their uses and switch to
to rib_action(). This is part of the new routi
Author: melifaro
Date: Sun Jul 12 11:24:23 2020
New Revision: 363128
URL: https://svnweb.freebsd.org/changeset/base/363128
Log:
Switch inet6 default route subscription to the new rib subscription api.
Old subscription model allowed only single customer.
Switch inet6 to the new subscrip
Author: melifaro
Date: Sun Jul 12 11:18:09 2020
New Revision: 363127
URL: https://svnweb.freebsd.org/changeset/base/363127
Log:
Add destructor for the rib subscription system to simplify users code.
Subscriptions are planned to be used by modules such as route lookup engines.
In that case
Author: melifaro
Date: Fri Jul 3 08:06:26 2020
New Revision: 362909
URL: https://svnweb.freebsd.org/changeset/base/362909
Log:
Fix IPv6 regression introduced by r362900.
PR: kern/247729
Modified:
head/sys/netinet6/icmp6.c
head/tests/sys/netinet6/redirect.sh
Modified: head/s
Author: melifaro
Date: Thu Jul 2 21:04:08 2020
New Revision: 362900
URL: https://svnweb.freebsd.org/changeset/base/362900
Log:
Complete conversions from fib<4|6>_lookup_nh_ to fib<4|6>_lookup().
fib[46]_lookup_nh_ represents pre-epoch generation of fib api, providing less
guarantees
ov
Author: melifaro
Date: Mon Jun 22 07:35:23 2020
New Revision: 362487
URL: https://svnweb.freebsd.org/changeset/base/362487
Log:
Switch cxgbe interface lookup to use fibX_lookup() from older
fibX_lookup_nh_ext().
fibX_lookup_nh_ represents pre-epoch generation of fib kpi,
providing less
Author: melifaro
Date: Wed Jun 10 07:46:22 2020
New Revision: 362007
URL: https://svnweb.freebsd.org/changeset/base/362007
Log:
Switch rtsock code to using newly-create rib_action() KPI call.
This simplifies the code and allows to further split rtentry and nexthop,
removing one of the bl
e: text/plain;
>> charset=us-ascii
>>
>> > On 1. Jun 2020, at 22:49, Alexander V. Chernikov =
>> wrote:
>> >=20
>> > Author: melifaro
>> > Date: Mon Jun 1 20:49:42 2020
>> > New Revision: 361706
>> > URL: https:
Author: melifaro
Date: Mon Jun 1 21:52:24 2020
New Revision: 361708
URL: https://svnweb.freebsd.org/changeset/base/361708
Log:
Add rib subscription API.
Currently there is no easy way of subscribing for the routing table changes.
The only existing way is to set ifa_rtrequest callback in
-2-Clause-FreeBSD
+ *
+ * Copyright (c) 2020 Alexander V. Chernikov
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
Author: melifaro
Date: Mon Jun 1 20:49:42 2020
New Revision: 361706
URL: https://svnweb.freebsd.org/changeset/base/361706
Log:
* Add rib__route() functions to manipulate the routing table.
The main driver for the change is the need to improve notification mechanism.
Currently callers gue
Author: melifaro
Date: Mon Jun 1 20:40:40 2020
New Revision: 361705
URL: https://svnweb.freebsd.org/changeset/base/361705
Log:
Revert r361704, it accidentally committed merged D25067 and D25070.
Deleted:
head/sys/net/route/route_ctl.h
Modified:
head/sys/net/if_llatbl.c
head/sys/net/route
ribers, rs, rib_subscription, next);
+ RIB_WUNLOCK(rnh);
+
+ free(rs, M_RTABLE);
+ return (0);
+}
Added: head/sys/net/route/route_ctl.h
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
Author: melifaro
Date: Thu May 28 09:52:28 2020
New Revision: 361584
URL: https://svnweb.freebsd.org/changeset/base/361584
Log:
Fix NOINET6 build broken by r361575.
Reported by: ci, hps
Modified:
head/sys/fs/nfsclient/nfs_clport.c
Modified: head/sys/fs/nfsclient/nfs_clport.c
==
Author: melifaro
Date: Thu May 28 08:00:08 2020
New Revision: 361576
URL: https://svnweb.freebsd.org/changeset/base/361576
Log:
Use fib[46]_lookup() in mtu calculations.
fib[46]_lookup_nh_ represents pre-epoch generation of fib api,
providing less guarantees over pointer validness and req
Author: melifaro
Date: Thu May 28 07:35:07 2020
New Revision: 361575
URL: https://svnweb.freebsd.org/changeset/base/361575
Log:
Make NFS address selection use fib4_lookup().
fib4_lookup_nh_ represents pre-epoch generation of fib api,
providing less guarantees over pointer validness and re
Author: melifaro
Date: Thu May 28 07:31:53 2020
New Revision: 361574
URL: https://svnweb.freebsd.org/changeset/base/361574
Log:
Switch ip_output/icmp_reflect rt lookup calls with fib4_lookup.
fib4_lookup_nh_ represents pre-epoch generation of fib api,
providing less guarantees over pointe
Author: melifaro
Date: Thu May 28 07:29:44 2020
New Revision: 361573
URL: https://svnweb.freebsd.org/changeset/base/361573
Log:
Replace ip6_ouput fib6_lookup_nh_ calls with fib6_lookup().
fib6_lookup_nh_ represents pre-epoch generation of fib api,
providing less guarantees over pointer va
Author: melifaro
Date: Thu May 28 07:26:18 2020
New Revision: 361572
URL: https://svnweb.freebsd.org/changeset/base/361572
Log:
Switch gif(4) path verification to fib[46]_check_urfp().
fibX_lookup_nh_ represents pre-epoch generation of fib api,
providing less guarantees over pointer valid
Author: melifaro
Date: Thu May 28 07:23:27 2020
New Revision: 361571
URL: https://svnweb.freebsd.org/changeset/base/361571
Log:
Unlock rtentry before calling for epoch(9) destruction as the destruction
may happen immediately, leading to panic.
Reported by: bdragon
Modified:
head/sys
Author: melifaro
Date: Sat May 23 19:06:57 2020
New Revision: 361421
URL: https://svnweb.freebsd.org/changeset/base/361421
Log:
Move _route() functions to route_ctl.c in preparation of
multipath control plane changed described in D24141.
Currently route.c contains core routing init/teard
Author: melifaro
Date: Sat May 23 12:15:47 2020
New Revision: 361415
URL: https://svnweb.freebsd.org/changeset/base/361415
Log:
Remove refcounting from rtentry.
After making rtentry reclamation backed by epoch(9) in r361409, there is
no reason in keeping reference counting code.
Dif
Author: melifaro
Date: Sat May 23 10:21:02 2020
New Revision: 361409
URL: https://svnweb.freebsd.org/changeset/base/361409
Log:
Use epoch(9) for rtentries to simplify control plane operations.
Currently the only reason of refcounting rtentries is the need to report
the rtable operation d
Author: melifaro
Date: Sun May 17 15:32:36 2020
New Revision: 361137
URL: https://svnweb.freebsd.org/changeset/base/361137
Log:
Remove redundant checks for nhop validity.
Currently NH_IS_VALID() simly aliases to RT_LINK_IS_UP(), so we're
checking the same thing twice.
In the near futu
Author: melifaro
Date: Mon May 11 20:41:03 2020
New Revision: 360921
URL: https://svnweb.freebsd.org/changeset/base/360921
Log:
Fix NOINET[6] build by using af-independent route lookup function.
Reported by: rpokala
Modified:
head/sys/netinet/sctp_os_bsd.h
Modified: head/sys/netinet/sc
Author: melifaro
Date: Mon May 11 06:09:18 2020
New Revision: 360889
URL: https://svnweb.freebsd.org/changeset/base/360889
Log:
Remove unused rnh_close callback from rtable & cleanup depends.
rnh_close callbackes was used by the in[6]_clsroute() handlers,
doing cleanup in the route cloni
Author: melifaro
Date: Sun May 10 09:34:48 2020
New Revision: 360866
URL: https://svnweb.freebsd.org/changeset/base/360866
Log:
Remove rtalloc1(_fib) KPI.
Last user of rtalloc1() KPI has been eliminated in rS360631.
As kernel is now fully switched to use new routing KPI defined in
rS359
Author: melifaro
Date: Fri May 8 21:06:10 2020
New Revision: 360824
URL: https://svnweb.freebsd.org/changeset/base/360824
Log:
Embed dst sockaddr into rtentry and remove rte packet counter
Currently each rtentry has dst&gateway allocated separately from another zone,
bloating cache acce
Author: melifaro
Date: Thu May 7 08:11:36 2020
New Revision: 360773
URL: https://svnweb.freebsd.org/changeset/base/360773
Log:
Add rib_lookup() sockaddr lookup wrapper and make ifa_ifwithroute use it.
Create rib_lookup() wrapper around per-af dataplane lookup functions.
This will help in
added)
+++ head/tests/sys/netinet/lpm.sh Wed May 6 07:48:37 2020
(r360685)
@@ -0,0 +1,179 @@
+#!/usr/bin/env atf-sh
+#-
+# SPDX-License-Identifier: BSD-2-Clause
+#
+# Copyright (c) 2020 Alexander V. Chernikov
+#
+# Redistribution and use in source and binary forms, with or without
Author: melifaro
Date: Mon May 4 15:07:57 2020
New Revision: 360631
URL: https://svnweb.freebsd.org/changeset/base/360631
Log:
Switch DDB show route to direct rnh_matchaddr() call instead of rtalloc1().
Eliminate the last rtalloc1() call to finish transition to the new routing
KPI define
1 - 100 of 676 matches
Mail list logo