Commit Graph

286230 Commits

Author SHA1 Message Date
sborrill
4f6c3ffcd1 Need to explicitly load value of zfs variable as zfs=YES may be set in
/etc/rc.conf.d/zfs, not /etc/rc.conf.
2021-03-09 12:42:46 +00:00
wiz
55d4a9403e Improve wording, use more macros. 2021-03-09 12:02:24 +00:00
msaitoh
47293c3f8d Modify some parameters to reduce packet dropping.
- Background: ixgbe doesn't use common MCLGET() interface and use the
   driver specific cluster allocation mechanism (jcl). The cluster is
   pre-allocated with a fixed number and the current number per queue
   is num_rx_desc * 2 (2048*2=4096). It's too small. It also has a problem
   that the max length of the pcq which is used in the TX path is big
   (4096). Example:

    100M <----- [ixg0                                      ixg1] <----- 1G
                2048 TX descs <--- 4096 pcqs <---- 2048 RX descs

   If a machine forwards a traffic from 1G interface to 100M interface,
   It would require 2048+4096+2048=8192 descriptors, but the current number
   is 2048*2=4096. It's too small. Even if the both interface's link speed
   is the same and only small number of packet is queued in the pcq, 4096
   jcl is small because 2048(RX)+TX(2048)=4096. If jcl is exhausted, not only
   forwarding from ixg1 to ixg0 is dropped, but also another forwarding path
   from ixg1 to another interface(e.g. wm0) is also dropped. Sockets also
   queue packets, so if a lot of sockets are used and/or a socket buffer
   size is changed to bigger one, it'll also become a problem. If the jcl
   is exhausted, evcnt(9) counter "ixgX qY Rx no jumbo mbuf" is incremented.
   Example:
     vmstat -ev | grep ixg1 | grep "no jumbo"
     ixg1 q0 Rx no jumbo mbuf                           0     0 misc
     ixg1 q1 Rx no jumbo mbuf                           0     0 misc
     ixg1 q2 Rx no jumbo mbuf                      141326     0 misc
     ixg1 q3 Rx no jumbo mbuf                           0     0 misc


 - To solve this problem:
   - Add new config parameter IXGBE_JCLNUM_MULTI and set the default to 3
     (2048 * 3). The minimum number is 2. The total number of jcl per queue
     is available with hw.ixgN.num_jcl_per_queue sysctl.
   - Reduce the max length of the pcq() which is used in the TX path from
     4096 to 2048.

 - Reviewed by knakahara@ and ozaki-r@.

 - TODO: Use MCLGET().
2021-03-09 10:03:18 +00:00
macallan
405aa7c502 add support for the CPU temperature sensor found in iMac G5s 2021-03-09 01:17:37 +00:00
christos
baa2f24833 We don't need libwrap anymore; libhack replaces it. 2021-03-09 00:08:04 +00:00
christos
58e21b67a6 Add a stubbed version of libwrap (tcpwrappers) 2021-03-09 00:06:44 +00:00
christos
73a9599bab Adjust for fewer args in calling functions 2021-03-08 23:34:58 +00:00
rillig
cf51428060 indent: remove redundant initializer in dump_line
No functional change.
2021-03-08 22:28:31 +00:00
rillig
439ca385c5 indent: move comment about dump_line to column 1
It looked misplaced on the right side since that area is usually
reserved for small remarks, not long explanations.

No functional change.
2021-03-08 22:26:17 +00:00
rillig
a3dc5dfa03 indent: always use braces in do-while loops
Having a 'while' at the beginning of a line looks as if it would start a
loop.  It's confusing when it _ends_ a loop instead.
2021-03-08 22:23:58 +00:00
rillig
6abe7eedca tests/indent: demonstrate wrong removed empty line before '//' 2021-03-08 22:13:05 +00:00
christos
c67373b162 mv <sys/cprng.h> include to the kernel portion 2021-03-08 22:01:18 +00:00
christos
7310f7d012 remove extra line 2021-03-08 21:48:22 +00:00
rillig
8d6721908d indent: split bsearch comparison function
It may have been a clever trick to use the same memory layout for struct
templ and a string pointer, but it's not worth the extra comment and
difficulty in understanding the code.

No functional change.
2021-03-08 21:13:33 +00:00
rillig
09aa491484 tests/indent: demonstrate another bug in nested blocks 2021-03-08 20:55:34 +00:00
jkoshy
c5261b8388 Update libelf's manual pages to upstream revision [r3928]. 2021-03-08 20:55:06 +00:00
christos
447d94bacb remove ip{,6}_id.c 2021-03-08 20:43:22 +00:00
rillig
68856268b8 indent: inline macro for backslash
No functional change.
2021-03-08 20:20:11 +00:00
rillig
37bc0e6731 indent: convert big macros to functions
Each of these buffers is only modified in a single file.  This makes it
unnecessary to declare the macros in the global header.
2021-03-08 20:15:42 +00:00
rillig
548d705b04 tests/indent: add test for output line counting 2021-03-08 20:12:04 +00:00
christos
34a0a9590c welcome to 9.99.81, ip_randomid() signature change. 2021-03-08 20:02:47 +00:00
christos
fd63f5967c reinstate a simple version of ip_randomid() 2021-03-08 20:01:54 +00:00
rillig
6383459232 tests/indent: allow golden stderr file, improve filenames, clean up code
When indent runs in filter mode, it may output messages to stderr.
Allow tests with non-empty expected stderr.

In the ATF output, the filename 'output_file.parsed' was not helpful for
casual readers of diff output since they expect the filenames to be
meaningful.  Embed the name of the test case in that filename.

Fix quoting of the shell variables.

Remove the repetition of the regular expression to clean up the test
files.
2021-03-08 20:01:16 +00:00
christos
72d8d6c36a Appease new lint enum errors 2021-03-08 19:38:10 +00:00
rillig
849f856bf6 indent: make it easy to compile indent in debug mode 2021-03-08 19:21:41 +00:00
rillig
4526c76528 indent: fix printing of uninitialized 'token' in debug output 2021-03-08 19:06:48 +00:00
christos
0b3745dbe8 no need for ip6_id.c... 2021-03-08 18:22:16 +00:00
christos
2f7bd7704b Remove the unused "addin" argument (it was always 0) and go back using
a random iss by default (instead of rfc1948)
2021-03-08 18:17:27 +00:00
christos
aa44bcfbff remove now unused pseudo-random ip id code. 2021-03-08 18:03:25 +00:00
christos
fa908c0b8c Add some randomness to the iss offset 2021-03-08 17:54:43 +00:00
christos
a07b5793ea Use a random IPv4 ID because the shuffling algorithm used before could expose
information (Amit Klein)
2021-03-08 17:54:23 +00:00
christos
32fcdf5a4e Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)
2021-03-08 17:53:20 +00:00
christos
47d63e29e1 give names to the enums so we can cast by name for lint 2021-03-08 17:34:30 +00:00
christos
e24596a734 cast to the proper enums for lint 2021-03-08 17:34:10 +00:00
isaki
50ac27503a Remove incorrect byte and word conversions from fpu_explode.
The correct operation here is arithmetic right shift, but nobody calls it.
2021-03-08 14:37:55 +00:00
mlelstv
d09bf9dfa7 Add comments for 2711 local peripherals 2021-03-08 14:27:45 +00:00
mlelstv
a1cd4d2a6b Move interrupt register definitions to driver. 2021-03-08 14:22:42 +00:00
mlelstv
229485571b Undocumented register to multiplex emmc2 pins to legacy sdhc 2021-03-08 13:59:29 +00:00
mlelstv
fd9b697d9c Add some firmware support functions and define more properties
- framebuffer
- power management
- vchiq init
- RPI4 USB firmware support
2021-03-08 13:53:08 +00:00
mlelstv
24287f23e1 RPI4 PCIe driver, based on pcihost_fdt.c 2021-03-08 13:49:01 +00:00
mlelstv
ba4ea317ac Interrupt no longer needs kernel lock. 2021-03-08 13:15:06 +00:00
mlelstv
089deafcbb Compute CRC for all segments of a multi-buffer packet.
Add interrupt mitigation for transmit and receive.
Use separate transmit lock.
Fix some error paths.
2021-03-08 13:14:44 +00:00
msaitoh
e1035e4cdb Use no_jmbuf evcnt for the failure case of ixgbe_getjcl(). 2021-03-08 07:10:45 +00:00
mlelstv
658992b280 Add bluetooth also to 32bit kernel. 2021-03-08 06:31:42 +00:00
mlelstv
3f227289ed early console for pico-pi-imx7 2021-03-08 06:27:06 +00:00
mlelstv
222bc718db always re-read status register in the loop. 2021-03-08 06:23:31 +00:00
rillig
73071b8322 indent: fix handling of '//' end-of-line comments 2021-03-07 22:11:01 +00:00
christos
b7a595bc61 fix missing chars 2021-03-07 20:54:41 +00:00
rillig
b65a14572e indent: sprinkle a few const
No functional change.
2021-03-07 20:52:11 +00:00
rillig
ec2de7a28a indent: remove redundant parentheses around return value
No functional change.
2021-03-07 20:47:13 +00:00