a687de6a bz Aug. 2, 2019, 10:41 a.m.
Remove all the #if 0 and #if notyet blocks of dead code which have been
there for at least 18 years from what I can see.

No functional changes.

MFC after:		3 months
Sponsored by:		Netflix
cgit ViewVC
757cb678 bz Aug. 2, 2019, 10:29 a.m.
Move the sysctls and the related variables only used in frag6.c
into the file and out of in6_proto.c.  That way everything belonging
together is in one place.

Sort the variables into global and per-vnet scopes and make
them static.  No longer export the (helper) function
frag6_set_bucketsize() now also file-local only.

Should be no functional changes, only reduced public KPI/KBI surface.

MFC after:		3 months
Sponsored by:		Netflix
cgit ViewVC
1a3044fa bz Aug. 2, 2019, 10:06 a.m.
Sort includes and remove duplicate kernel.h as well as the unneeded
systm.h.
Hide the mac framework incude behind #fidef MAC.

MFC after:		3 months
Sponsored by:		Netflix
cgit ViewVC
0ecd976e bz Aug. 2, 2019, 7:41 a.m.
Finish what was started a few years ago and harmonize IPv6 and IPv4
kernel names.  We are down to very few places now that it is feasible
to do the change for everything remaining with causing too much disturbance.

Remove "aliases" for IPv6 names which confusingly could indicate
that we are talking about a different data structure or field or
have two fields, one for each address family.
Try to follow common conventions used in FreeBSD.

* Rename sin6p to sin6 as that is how it is spelt in most places.
* Remove "aliases" (#defines) for:
  - in6pcb which really is an inpcb and nothing separate
  - sotoin6pcb which is sotoinpcb (as per above)
  - in6p_sp which is inp_sp
  - in6p_flowinfo which is inp_flow
* Try to use ia6 for in6_addr rather than in6p.
* With all these gone  also rename the in6p variables to inp as
  that is what we call it in most of the network stack including
  parts of netinet6.

The reasons behind this cleanup are that we try to further
unify netinet and netinet6 code where possible and that people
will less ignore one or the other protocol family when doing
code changes as they may not have spotted places due to different
names for the same thing.

No functional changes.

Discussed with:		tuexen (SCTP changes)
MFC after:		3 months
Sponsored by:		Netflix
cgit ViewVC
8dafbebd mav Aug. 2, 2019, 4:04 a.m.
MFC after:	2 weeks
cgit ViewVC
90dfa8f0 mav Aug. 2, 2019, 3:43 a.m.
MFC after:	2 weeks
cgit ViewVC
407b6a4e markj Aug. 1, 2019, 10:48 p.m.
The ARMv8 reference manual only states that the bit is reserved in
this case; following Linux's example, use it instead of a
software-defined bit for the purpose of indicating that a managed
mapping is writable.

Reviewed by:	alc, andrew
MFC after:	r350004
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21121
cgit ViewVC
48ec75f0 mav Aug. 1, 2019, 10:22 p.m.
MFC after:	2 weeks
cgit ViewVC
a7bf63be mav Aug. 1, 2019, 9:44 p.m.
While very useful by itself, it also makes `nvmecontrol` not depend on
hardcoded device names parsing, that in its turn makes simple to take
nvdX (and potentially any other) device names as arguments.

Also added IOCTL bypass from nvdX to respective nvmeYnsZ makes them
interchangeable for management purposes.

MFC after:	2 weeks
Sponsored by:	iXsystems, Inc.
cgit ViewVC
57a44fcd bz Aug. 1, 2019, 8:36 p.m.
Rename the variable for the in6_addr from in6p to ia6 to follow the
convention generally used in FreeBSD.

No functional changes.

MFC after:		3 months
Sponsored by:		Netflix
cgit ViewVC
a1589eb8 rrs Aug. 1, 2019, 8:26 p.m.
happy.
cgit ViewVC
bedf9eb9 tuexen Aug. 1, 2019, 7:45 p.m.
chunk. This also plugs an potential mbuf leak.
Thanks to Felix Weinrank for reporting this issue found by fuzz-testing
the userland stack.

MFC after:		3 days
cgit ViewVC
fbe12f20 markj Aug. 1, 2019, 7:26 p.m.
Reported by:	jenkins
Sponsored by:	The FreeBSD Foundation
cgit ViewVC
79596852 emaste Aug. 1, 2019, 7:01 p.m.
In the future FreeBSD will ship without GNU binutils 2.17.50.  Add a
note advising users who require GNU as to install the binutils port
or package.

Note that on armv7, arm64, amd64, i386 we currently ship only two
binutils tools (as and objdump).  A deprecation notice was added to
objdump's man page some time ago.

PR:		233611
Discussed with:	jhb
MFC after:	1 week
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
cgit ViewVC
10334649 markj Aug. 1, 2019, 6:57 p.m.
Reviewed by:	oshogbo
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21105
cgit ViewVC