Commit Graph

256845 Commits

Author SHA1 Message Date
maxv 8df55a522b Use inpcb_hdr to reduce the diff between:
ipsec4_hdrsiz      and ipsec6_hdrsiz
	ipsec4_in_reject   and ipsec6_in_reject
	ipsec4_checkpolicy and ipsec4_checkpolicy

The members of these couples are now identical, and could be merged,
giving only three functions instead of six...
2018-02-21 16:38:15 +00:00
maxv af69f63988 Rename:
ipsec_in_reject -> ipsec_sp_reject
	ipsec_hdrsiz    -> ipsec_sp_hdrsiz

localify the former, and do some cleanup while here.
2018-02-21 16:18:52 +00:00
maxv ff46a2a32a Extend these #ifdef notyet. The m_copydata's in these branches are wrong,
we are not guaranteed to have enough room for another struct ip, and we
may crash here. Triggerable remotely, but after authentication, by sending
an AH packet that has a one-byte-sized IPIP payload.
2018-02-21 16:08:55 +00:00
uwe ecb11c8936 Consistenly use "host byte order". 2018-02-21 14:11:09 +00:00
skrll e094350db7 Avoid UB (shift of negative number) 2018-02-21 10:42:16 +00:00
wiz c8f3c2c806 Fix endnetent prototype. Fix NULL. New sentence, new line. 2018-02-21 09:47:37 +00:00
msaitoh 0210e3e69f Regen. 2018-02-21 08:39:40 +00:00
msaitoh 6e0782f0b7 Add some Intel Ethernet devices. 2018-02-21 08:39:08 +00:00
pgoyette 0484fb2f3f On the off chance that someone tries to use the modular version of the
ld(4) driver, provide an ld.ioconf file which will declare the global ld_cd
2018-02-21 08:36:36 +00:00
msaitoh 89c3f304e6 Add some ServerEngines (Emulex) products from OpenBSD. 2018-02-21 07:49:47 +00:00
kamil 01e8caecb0 Improve the getnetent(3) man-page
Document return type of setnetent(3) and endnetent(3). Both "void".

Sponsored by <The NetBSD Foundation>
2018-02-21 03:13:50 +00:00
kamil c20547db43 Enable O_NOFOLLOW in the POSIX namespace
This open(2) flag first appeared in FreeBSD and was standarized by POSIX
in the 2008 standard.
2018-02-20 18:20:05 +00:00
uwe 9f4bd1d874 Markup "stdin". 2018-02-20 17:23:39 +00:00
uwe 250ec2c82f Make the list of STDBUF values and the list of mode values congruent
in formatting and spelling.
2018-02-20 17:21:11 +00:00
uwe e41e0b24d7 Use semantic markup. 2018-02-20 17:16:51 +00:00
wiz cea61a7fb4 Add missing end quote.
Avoid some punctuation markup.
2018-02-20 15:56:43 +00:00
ws 02a64c6983 Add description of how to attach ugen to only some of the
interfaces found in a device.
2018-02-20 15:50:02 +00:00
ws 20be9ccf4e Attach uftdi to each interface found in the device separately.
This allows for other drivers (e.g. ugen) to attach to some of
the other interfaces.

Allow ugen to attach only to some of the interfaces found in a device.
2018-02-20 15:48:37 +00:00
martin 031637411f Backout my over-eager backout - we need this for sparc64 building netbsd32
compat libs, but still lots of #ifdef's missing to make this ready for
usage by sparc.
2018-02-20 13:14:02 +00:00
martin 32bba72871 Switch sparc back to old openssl - needs more work and testing. 2018-02-20 12:49:40 +00:00
martin 9d80f6b600 Backout previous "regen" - the regen target in this directory is bogus,
there is no "sparcv9" nor any "vis" in the default CPU targets for
NetBSD/sparc.
2018-02-20 12:48:46 +00:00
wiz 907372ab78 Whitespace improvements. Remove unnecessary Tn. 2018-02-20 09:37:56 +00:00
wiz cb12e23020 Remove ineffective macros and arguments. 2018-02-20 09:36:26 +00:00
pgoyette aba5e60ef6 Update to include wbsio as a possible parent for a gpio device.
XXX Should we really list all the possible parents?  Or should we replace
XXX this entire list with a single entry for "gpio* at gpiobus?"
2018-02-20 09:07:18 +00:00
knakahara 9a91358321 Improve a comment about reading EICS register defined write-only by spec.
It seems that is workaround for silicon errata.

ok by msaitoh@n.o.
2018-02-20 08:49:23 +00:00
msaitoh b61717846b Increment rxr->packets correctly in ixgbe_rxeof() to calculate ITR value
of AIM (Auto Interrupt Moderation) correctly. See also ixgbe.c rev. 1.124.

XXX pullup-8
2018-02-20 07:30:57 +00:00
msaitoh 29bf123e8e - Fix a bug that RX may stall on heavy load on ixg(4) derived from FreeBSD's
AIM (Auto Interrupt Moderation) bug.
 When I use a machine as a NFS client, sometimes one of queue pairs doesn't
 get any interrupt other than every second tick via ixgbe_local_timer1().
 When the problem occured, the queue pair's hw.ixgM.qN.interrupt_rate is
 always 500000. When this problem occuring, set hw.ixgM.qN.interrupt_rate lower
 than 166667 recover from stall. i.e.:

  sysctl -w hw.ixgM.qN.interrupt_rate=166667 (don't revocer)
  sysctl -w hw.ixgM.qN.interrupt_rate=166666 (recover)

  Relatios between the interrupt_rate and EICR's ITR_INTERVAL field is as
 follows:

 int_rate | EICR[11:0]   | interval in us | recover |
          |(ITR_INTERVAL)| (10G and 1G)   |         |
 ---------+--------------+----------------+---------+
   500000 | 0x008(0)     |              2 |     not |
   166667 | 0x010(1)     |              4 |     not |
   166666 | 0x018(2)     |              6 | recover |

  The reason why int_rate becomes 500000 is that xgbe_tx_eof() doesn't
 increment rxr->packets(*1). Even if we fix rxr->packets' bug, interrupt_rate
 might become greater than 166666 and it might cause stall.

  While reading datasheets, knakahara noticed a section titled with "ITR
 Affect on RSC Functionality". It says "When RSC is enabled on specific RX
 queues, the associated ITR interval with these queus must be enabled and must
 be larger (in time uints) than RSC delay". Currently, RSC_DELAY field in the
 GPIE register is 0 and it means 4us for 10G and 1G. The greater ITR_INTERVAL
 value of 4us is 6us == 166666. Yes, BINGO!

  This description is noted in 82599 and newer datasheets and not in 82598
 datasheet. I don't know if 82598 has this limitation but, I apply this
 limitation all of chips.

 (*1) Note that this bug is going to be fixed in the next commit to distinct
 between two different bugs.

- The bitfield of EITR register is different between 82598 and others.
 Only ixgbe_msix_que() taken care of it. Make new function ixgbe_eitr_write()
 and use it in all of functions which modify ITR_INTERVAL.

XXX pullup-8
2018-02-20 07:24:37 +00:00
kamil 6dca39b9a1 Remove namespace restriction from pthread_condattr_{g,s}etclock(3)
These functions were marked as _NETBSD_SOURCE when introduced to the
sources. In fact they are regular POSIX threading functions available
since the 2001 standard. There is an older mention about alignment with
"IEEE Std 1003.1j-2000".

This corrects usage of these functions when a source code is compiled
with a POSIX namespace option.
2018-02-20 05:10:51 +00:00
ozaki-r d54aad2dd7 Spinkle __predict_false to LOCKDEBUG functions
Panics and lockdebug failures are unlikely to occur normally.
2018-02-20 03:34:52 +00:00
kamil 9776919255 Improve the setbuf(3) man-page
Move historical lines to newly added HISTORY section.
Additional historical notes obtained from OpenBSD.
2018-02-20 02:52:41 +00:00
kamil 4f2f27c8d8 Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001 2018-02-20 02:35:24 +00:00
pgoyette 7fdb7d5dce Handle watchdog attachment in the wbsio_rescan() function, where we
take care of other children.

ok knakahara@ and yamaguchi@
2018-02-20 01:53:39 +00:00
christos 8c5df217eb It is normal for socket credentials to be missing for incoming sockets,
so don't warn.
2018-02-19 23:03:00 +00:00
jdolecek f90211bb4c convert to use actual __BITMAP_*() macros from <sys/bitops.h>, and make
it possible to override the ASID bitmap length; default to 256 ASIDs as before

XXX NFCI; compile tested only on evbpcc and evbmips, unfortunately didn't
find any combination of port using the MI pmap_tlb.c and working in QEMU
2018-02-19 22:01:15 +00:00
jdolecek d80d16cd1e a bit of DRY - add macro for initial free ASID count 2018-02-19 21:40:45 +00:00
jdolecek 4248f17bba make it possible to not use the icache evcnts 2018-02-19 21:20:33 +00:00
christos 01b941a695 switch sparc to openssl-1.1 2018-02-19 20:52:09 +00:00
ginsbach 2ea7c98512 Add ANR and another ARC acronyms 2018-02-19 20:49:01 +00:00
jmcneill 4156dcc569 Add H6 support 2018-02-19 20:22:48 +00:00
jmcneill 7c742dc3ad Add support for H6 USB PHY 2018-02-19 20:15:23 +00:00
jmcneill 5dbf83ecbb Rewrite data transfer path to take advantage of the PL181's 64-byte FIFO.
Before: 134217728 bytes transferred in 43.683 secs (3072539 bytes/sec)
After:  134217728 bytes transferred in 23.789 secs (5642007 bytes/sec)
2018-02-19 19:00:42 +00:00
maya aba096954d Code is fixed, so hiding the warning is not necessary any more. 2018-02-19 16:21:36 +00:00
jmcneill a3cb51fb7a move plfb glue to the correct location 2018-02-19 16:10:42 +00:00
jmcneill 161c4eafed ROCKCHIP is gone 2018-02-19 15:39:59 +00:00
maya abbdd87862 Add Turkish keyboard layout.
from berte in PR kern/53011.
2018-02-19 14:34:17 +00:00
sborrill a96590affc Double size of MSGBUFSIZE as existing value is not big enough to hold boot dmesg
on modern server-class hardware with lots of CPUs, etc.
2018-02-19 13:02:47 +00:00
wiz 0fe56109af Quote minus. 2018-02-19 10:31:53 +00:00
mrg 2d716c09b1 fix _UC_MACHINE32_FP() -- use 32 bit pointer value so that [15] is
the right offset.  do this by using __greg32_t, which is only in
the sparc64 version, and these are only useful there, so move them.
2018-02-19 08:31:13 +00:00
christos 6402a3dbee llvm detects infinite recursion, so don't infinitely recurse. 2018-02-18 23:51:20 +00:00
christos e1e22576fa Avoid ssp error on sparc64 2018-02-18 23:41:44 +00:00