Date: Sat, 29 Aug 2020 11:44:04 +0200 From: "Hartmann, O." <ohartmann@walstatt.org> To: "Alexander V. Chernikov" <melifaro@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r364941 - in head/sys: net net/route netinet netinet6 Message-ID: <20200829114404.2fbdb73d@hermann.fritz.box> In-Reply-To: <202008282250.07SMoL7I095754@repo.freebsd.org> References: <202008282250.07SMoL7I095754@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/BkXhTkDbEWYS4IuN+9OceSu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 28 Aug 2020 22:50:21 +0000 (UTC) "Alexander V. Chernikov" <melifaro@FreeBSD.org> wrote: > Author: melifaro > Date: Fri Aug 28 22:50:20 2020 > New Revision: 364941 > URL: https://svnweb.freebsd.org/changeset/base/364941 >=20 > Log: > Move net/route/shared.h definitions to net/route/route_var.h. > =20 > No functional changes. > =20 > net/route/shared.h was created in the inital phases of nexthop > conversion. It was intended to serve the same purpose as route_var.h > - share definitions of functions and structures between the routing > subsystem components. At that time route_var.h was included by many > files external to the routing subsystem, which largerly defeats its > purpose.=20 > As currently this is not the case anymore and amount of route_var.h > includes is roughly the same as shared.h, retire the latter in favour > of the former. >=20 > Deleted: > head/sys/net/route/shared.h > Modified: > head/sys/net/radix_mpath.c > head/sys/net/route.c > head/sys/net/route/nhop.c > head/sys/net/route/nhop_ctl.c > head/sys/net/route/route_ctl.c > head/sys/net/route/route_helpers.c > head/sys/net/route/route_var.h > head/sys/net/rtsock.c > head/sys/netinet/in_fib.c > head/sys/netinet/in_rmx.c > head/sys/netinet6/in6_fib.c > head/sys/netinet6/in6_rmx.c >=20 > Modified: head/sys/net/radix_mpath.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/radix_mpath.c Fri Aug 28 21:59:10 2020 > (r364940) +++ head/sys/net/radix_mpath.c Fri Aug 28 22:50:20 > 2020 (r364941) @@ -56,7 +56,6 @@ __FBSDID("$FreeBSD$"); > #include <sys/rmlock.h> > #include <net/route.h> > #include <net/route/nhop.h> > -#include <net/route/shared.h> > #include <net/route/route_var.h> > #include <net/route/nhop.h> > #include <net/if.h> >=20 > Modified: head/sys/net/route.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/route.c Fri Aug 28 21:59:10 2020 > (r364940) +++ head/sys/net/route.c Fri Aug 28 22:50:20 > 2020 (r364941) @@ -64,7 +64,6 @@ > #include <net/route/route_ctl.h> > #include <net/route/route_var.h> > #include <net/route/nhop.h> > -#include <net/route/shared.h> > #include <net/vnet.h> > =20 > #ifdef RADIX_MPATH >=20 > Modified: head/sys/net/route/nhop.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/route/nhop.c Fri Aug 28 21:59:10 2020 > (r364940) +++ head/sys/net/route/nhop.c Fri Aug 28 22:50:20 > 2020 (r364941) @@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$"); > #include <net/route/nhop_utils.h> > #include <net/route/nhop.h> > #include <net/route/nhop_var.h> > -#include <net/route/shared.h> > #include <net/vnet.h> > =20 > /* >=20 > Modified: head/sys/net/route/nhop_ctl.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/route/nhop_ctl.c Fri Aug 28 21:59:10 > 2020 (r364940) +++ head/sys/net/route/nhop_ctl.c Fri > Aug 28 22:50:20 2020 (r364941) @@ -49,7 +49,6 @@ > __FBSDID("$FreeBSD$"); #include <net/route/nhop_utils.h> > #include <net/route/nhop.h> > #include <net/route/nhop_var.h> > -#include <net/route/shared.h> > #include <net/vnet.h> > =20 > /* >=20 > Modified: head/sys/net/route/route_ctl.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/route/route_ctl.c Fri Aug 28 21:59:10 > 2020 (r364940) +++ head/sys/net/route/route_ctl.c Fri > Aug 28 22:50:20 2020 (r364941) @@ -52,7 +52,6 @@ > __FBSDID("$FreeBSD$"); #include <net/route/nhop_utils.h> > #include <net/route/nhop.h> > #include <net/route/nhop_var.h> > -#include <net/route/shared.h> > #include <netinet/in.h> > =20 > #ifdef RADIX_MPATH >=20 > Modified: head/sys/net/route/route_helpers.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/route/route_helpers.c Fri Aug 28 21:59:10 > 2020 (r364940) +++ head/sys/net/route/route_helpers.c > Fri Aug 28 22:50:20 2020 (r364941) @@ -55,7 +55,6 @@ > __FBSDID("$FreeBSD$"); #include <net/route/nhop_utils.h> > #include <net/route/nhop.h> > #include <net/route/nhop_var.h> > -#include <net/route/shared.h> > #ifdef INET > #include <netinet/in_fib.h> > #endif >=20 > Modified: head/sys/net/route/route_var.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/route/route_var.h Fri Aug 28 21:59:10 > 2020 (r364940) +++ head/sys/net/route/route_var.h Fri > Aug 28 22:50:20 2020 (r364941) @@ -39,7 +39,14 @@ > #include <sys/epoch.h> > #include <netinet/in.h> /* struct sockaddr_in */ > #include <sys/counter.h> > +#include <net/route/nhop.h> > =20 > +#ifdef RTDEBUG > +#define DPRINTF(_fmt, ...) printf("%s: " _fmt "\n", > __func__ , ## __VA_ARGS__) +#else > +#define DPRINTF(_fmt, ...) > +#endif > + > struct nh_control; > typedef int rnh_preadd_entry_f_t(u_int fibnum, const struct sockaddr > *addr, const struct sockaddr *mask, struct nhop_object *nh); > @@ -221,6 +228,7 @@ fib_rte_to_nh_flags(int rt_flags) > return (res); > } > =20 > +/* route_temporal.c */ > void tmproutes_update(struct rib_head *rnh, struct rtentry *rt); > void tmproutes_init(struct rib_head *rh); > void tmproutes_destroy(struct rib_head *rh); > @@ -236,5 +244,33 @@ int change_route_conditional(struct rib_head > *rnh, str=20 > void vnet_rtzone_init(void); > void vnet_rtzone_destroy(void); > + > +/* subscriptions */ > +void rib_init_subscriptions(struct rib_head *rnh); > +void rib_destroy_subscriptions(struct rib_head *rnh); > + > +/* Nexhops */ > +void nhops_init(void); > +int nhops_init_rib(struct rib_head *rh); > +void nhops_destroy_rib(struct rib_head *rh); > +void nhop_ref_object(struct nhop_object *nh); > +int nhop_try_ref_object(struct nhop_object *nh); > +int nhop_ref_any(struct nhop_object *nh); > +void nhop_free_any(struct nhop_object *nh); > + > +void nhop_set_type(struct nhop_object *nh, enum nhop_type nh_type); > +void nhop_set_rtflags(struct nhop_object *nh, int rt_flags); > + > +int nhop_create_from_info(struct rib_head *rnh, struct rt_addrinfo > *info, > + struct nhop_object **nh_ret); > +int nhop_create_from_nhop(struct rib_head *rnh, const struct > nhop_object *nh_orig, > + struct rt_addrinfo *info, struct nhop_object **pnh_priv); > + > +void nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, > uint32_t mtu); +int nhops_dump_sysctl(struct rib_head *rh, struct > sysctl_req *w); + > +/* route */ > +struct rtentry *rt_unlinkrte(struct rib_head *rnh, struct > rt_addrinfo *info, > + int *perror); > =20 > #endif >=20 > Modified: head/sys/net/rtsock.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/net/rtsock.c Fri Aug 28 21:59:10 2020 > (r364940) +++ head/sys/net/rtsock.c Fri Aug 28 22:50:20 > 2020 (r364941) @@ -77,7 +77,6 @@ > #include <netinet6/scope6_var.h> > #endif > #include <net/route/nhop.h> > -#include <net/route/shared.h> > =20 > #ifdef COMPAT_FREEBSD32 > #include <sys/mount.h> >=20 > Modified: head/sys/netinet/in_fib.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/netinet/in_fib.c Fri Aug 28 21:59:10 2020 > (r364940) +++ head/sys/netinet/in_fib.c Fri Aug 28 22:50:20 > 2020 (r364941) @@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$"); > #include <net/route.h> > #include <net/route/route_var.h> > #include <net/route/nhop.h> > -#include <net/route/shared.h> > #include <net/vnet.h> > =20 > #ifdef RADIX_MPATH >=20 > Modified: head/sys/netinet/in_rmx.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/netinet/in_rmx.c Fri Aug 28 21:59:10 2020 > (r364940) +++ head/sys/netinet/in_rmx.c Fri Aug 28 22:50:20 > 2020 (r364941) @@ -45,7 +45,6 @@ __FBSDID("$FreeBSD$"); > #include <net/route/route_ctl.h> > #include <net/route/route_var.h> > #include <net/route/nhop.h> > -#include <net/route/shared.h> > #include <net/vnet.h> > =20 > #include <netinet/in.h> >=20 > Modified: head/sys/netinet6/in6_fib.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/netinet6/in6_fib.c Fri Aug 28 21:59:10 > 2020 (r364940) +++ head/sys/netinet6/in6_fib.c Fri Aug > 28 22:50:20 2020 (r364941) @@ -51,7 +51,6 @@ > __FBSDID("$FreeBSD$"); #include <net/route.h> > #include <net/route/route_var.h> > #include <net/route/nhop.h> > -#include <net/route/shared.h> > #include <net/vnet.h> > =20 > #ifdef RADIX_MPATH >=20 > Modified: head/sys/netinet6/in6_rmx.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/netinet6/in6_rmx.c Fri Aug 28 21:59:10 > 2020 (r364940) +++ head/sys/netinet6/in6_rmx.c Fri Aug > 28 22:50:20 2020 (r364941) @@ -84,7 +84,6 @@ > __FBSDID("$FreeBSD$"); #include <net/route/route_ctl.h> > #include <net/route/route_var.h> > #include <net/route/nhop.h> > -#include <net/route/shared.h> > =20 > #include <netinet/in.h> > #include <netinet/ip_var.h> > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to > "svn-src-head-unsubscribe@freebsd.org" This commit breaks "make buildkernel" on CURRENT for me on several CURRENT boxes: [...] x86 -> /usr/src/sys/x86/include --- route_ctl.o --- /usr/src/sys/net/route/route_ctl.c:315:30: error: variable 'netmask' is uninitialized when used here [-Werror,-Wuninitialized] rt_mpath_conflict(rnh, rt, netmask)) { ^~~~~~~ /usr/src/sys/net/route/route_ctl.c:297:33: note: initialize the variable 'netmask' to silence this warning --- modules-all --- --- all_subdir_acpi/acpi_video --- =3D=3D=3D> acpi/acpi_video (all) --- route_ctl.o --- struct sockaddr *ndst, *netmask; ^ =3D NULL --- modules-all --- --- all_subdir_amdgpio --- [...] Greetings, oh --Sig_/BkXhTkDbEWYS4IuN+9OceSu Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCX0ojZQAKCRA4N1ZZPba5 R+ZeAQD5LeXZv0dgpNNRqQvknjeiyG6sxAzB5Ay2SIyDBq3C7wD+KDsFEY+YmPIf pDjjP+EX81EXnFIMRyEuY/5PsSTJ5w4= =RiTg -----END PGP SIGNATURE----- --Sig_/BkXhTkDbEWYS4IuN+9OceSu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200829114404.2fbdb73d>