Commit Graph

300996 Commits

Author SHA1 Message Date
msaitoh 2324ba4c62 Add SOICZIFDATA (ifconfig -z) support for evcnt(9).
First update the statistics data, then clear the event counters,
and finally copy and clear if_data via ether_ioctl().
2023-05-11 07:38:30 +00:00
msaitoh ba8e082a6a Move statistics updating code from wm_tick() to new wm_update_stats().
- To reuse.
 - No functional change.
2023-05-11 07:27:09 +00:00
msaitoh 87132aa835 Add some new event counters.
Add the following counters for 82575 and newer except 80003, ICHs and PCHs:
    - Only 82576 document describes about the circuit breaker,
      so the following two might be only for 82575:
        - Circuit Breaker TX Manageability Packet
        - Circuit Breaker RX Dropped Packet
    - 82575's document doesn't describe the following two, but we can see
      the same value as GO{T,R}C have:
        - Host Good Octets RX
        - Host Good Octets TX
    - 82575's document doesn't describe the LENERRS (Length Errors) counter.
      I don't know if it has.
    - Perhaps Non-SerDes/SGMII devices don't have SCVPC
      (SerDes/SGMII Code Violation Packet) register. We don't care if
      it's SerDes/SGMII or not for now.
    - HRMPC (Header Redirection Missed Packet) appears only once
      in 8257[56]'s datasheet. FreeBSD's igb counts it, so we do, too.
    - Count the following two for I350 and newer. I don't know if PCHs have:
        - EEE TX LPI
        - EEE RX LPI
2023-05-11 07:19:02 +00:00
msaitoh 94358c7ac6 Some statistics registers were replaced with new counters.
- 0x403c was CEXTERR(Carrier Extension Error). 82575 and newer except 80003,
   ICHs and PCHs have HTDPMC(Host Tx Discarded Packets by MAC). I don't really
   know for 82575. The 82575 datasheet say nothing about it.
 - The following two are changed for circuit breaker. Only 82576's datasheet
   describes abut it, so the registers might be only for 82576.
   Use those registers for 82575 and newer except 80003, ICHs and PCHs just in
   case.
   - 0x40fc was TSCTFC(TCP Segmentation Context Tx Fail). It was replaced by
     the CBRMPC(Circuit Breaker Rx Manageability Packet) register.
   - 0x4124 was ICRXOC(Interrupt Cause Receiver Overrun). It was replaced by
     the HTCBDPC(Host Tx Circuit Breaker Dropped Packet) register.
 - From 0x4104 to 0x4124:
   - For 0x4124, 82575's datasheet says it's not changed(ICRXOC).
     I don't know if it's correct. We use new HTCBDPC register for 82575.
   - 82576 and newer changed the meaning.
   - I don't know for 80003, ICHs and PCHs. Don't count those registers.
     At least, those registers in PCH2 and PCH_CNP are all zero.
2023-05-11 07:14:46 +00:00
msaitoh 6327d85515 Don't add "Count" for event counter's description. 2023-05-11 07:08:47 +00:00
msaitoh f03897dd25 Fix a bug that the transmit underrun counter is incorrectly counted.
The transmit underrun bit in the transmit status filed is only for 82544
(and older?), so don't use the counter for newer chips. The bit is reserved
for newer chips, but the bit sometimes set on 82575 at least.
2023-05-11 07:07:08 +00:00
msaitoh b6438cc497 IC{TX,RX}*C registers are for older than 82575. 2023-05-11 07:04:06 +00:00
msaitoh 09333f2e4b Sort lines. No functional change.
Reorder evcnt_attach_dynamic(), WM_EVCNT_ADD() and evcnt_detach() to match.
2023-05-11 07:01:57 +00:00
msaitoh ec7bdbd806 Sort lines. No functional change.
Rearrange the order of the registers so that they are roughly in ascending
order.
2023-05-11 06:59:31 +00:00
msaitoh 89850a09c2 Add note for the TORL register.
The TOR register includes error, flow control and broadcast rejected.
2023-05-11 06:56:49 +00:00
msaitoh 5d6a7ee740 Count some 64bit counters correctly.
- Fix calculation of GORC, GOTC, TOR and TOT counters correctly.
 - Found by knakahara.
2023-05-11 06:54:23 +00:00
yamaguchi 2b696ab4fd Fix missing check for netq->netq_stopping in vioif_rx_intr()
Reported-by: syzbot+5120b7a1f97a3f5ca052@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=243cf4115808e49774a49294f63200770399660b
2023-05-11 05:50:18 +00:00
gutteridge 1b3c330bb0 t_fss.sh: add missing test case head 2023-05-11 01:56:31 +00:00
gutteridge 7cb4398ae9 t_patterns.sh: fix naming of head() of filename_expansion 2023-05-11 01:50:40 +00:00
christos d392e29584 add glue to make it link 2023-05-11 01:45:38 +00:00
christos 902282dac0 regen for 64 bit arm and make it link 2023-05-11 01:31:54 +00:00
gutteridge 3d108ca492 t_cmdsub.sh: fix naming of head() of cmdsub_paren_tests 2023-05-11 00:32:48 +00:00
gutteridge 360a298dc1 t_getopt.sh: fix naming of head() of getopt_optval test case 2023-05-10 23:44:15 +00:00
riastradh 338d654bf9 dk(4): Make it clearer that dkopen EROFS branch doesn't leak.
It looked like we may need to sometimes call dklastclose in error
branch for the case of (flags & ~sc->sc_mode & FWRITE) != 0, but it
is not actually possible to reach that case: if the caller requested
read/write, and the parent is read-only, and it is the first time
we've opened the parent, then dkfirstopen will fail with EROFS so we
never get there.

But this is confusing and it looked like the error branch is wrong,
so let's rearrange the conditional to make it clearer that we cannot
goto out after dkfirstopen has succeeded.  And then assert that the
case cannot happen when we do call dkfirstopen.
2023-05-10 23:08:24 +00:00
gutteridge e7e70c198d atf-check.1 & atf-sh.1: remove references to -h option
These had their -h option removed in the ATF 0.19 release, but these
references in the man pages weren't (mostly) removed upstream until
a later commit (that hasn't been released).
2023-05-10 22:14:54 +00:00
rillig 7df2cff8f0 lint: make code simpler
No functional change.
2023-05-10 21:46:26 +00:00
riastradh 087555a218 opl(4): Use config_detach_children. 2023-05-10 21:30:50 +00:00
sjg 699fcfcdaa Make :mtime operate on each word in variable value.
Reviewed by: rillig
2023-05-10 18:22:33 +00:00
christos baef51cba2 switch amd64 to OpenSSL-3.0.8 2023-05-10 16:46:39 +00:00
christos 12af141232 mention new OpenSSL 2023-05-10 16:45:03 +00:00
rillig e1e6d6961e make: don't print null filename in stack traces
~~~makefile
!= printf '%s\n' '.include "2.mk"' > 1.mk
!= printf '%s\n' '!= rm 1.mk' '.info message' > 2.mk

.MAKEFLAGS: -dp
.include "1.mk"
.MAKEFLAGS: -d0

all:
~~~
2023-05-10 16:10:02 +00:00
rillig b828d76d72 make: clean up comments 2023-05-10 15:57:16 +00:00
rillig 154809d57d tests/make: clean up comments in tests 2023-05-10 15:53:32 +00:00
christos 68eba3fad5 new openssl directories 2023-05-10 15:52:50 +00:00
christos 1c3e8d3916 update the sets for OpenSSL-3.x 2023-05-10 15:52:07 +00:00
rillig de72ac4409 tests/make: clean up tests for .for loops
Most of the tests from forloop.mk were already in directive-for.mk.
2023-05-10 13:03:06 +00:00
rillig e550a84370 cgram: replace comments with code
No binary change.
2023-05-10 12:30:27 +00:00
rillig 33e56a937d newfs_udf: fix wording in comment 2023-05-10 12:23:42 +00:00
christos 738424bae8 avoid dup openssl 2023-05-10 02:23:56 +00:00
riastradh 040b38cb43 acpi(4): Fix membars in ACPI_ACQUIRE/RELEASE_GLOBAL_LOCK.
XXX pullup-8 (by patch with membar_enter/exit)
XXX pullup-9 (by patch with membar_enter/exit)
XXX pullup-10
2023-05-10 01:23:27 +00:00
manu 1635c31998 Raise the version for new feature (here reloc command)
Suggested by Masanobu SAITOH
2023-05-10 00:49:17 +00:00
riastradh ac149d5d5d uts(4): Use config_detach_children. 2023-05-10 00:12:44 +00:00
riastradh 58643c4e75 udsbr(4): Use config_detach_children. 2023-05-10 00:12:36 +00:00
riastradh 20ab753ede irmce(4): Use config_detach_children. 2023-05-10 00:12:28 +00:00
riastradh 20decac3a6 xirc(4): Use config_detach_children. 2023-05-10 00:12:20 +00:00
riastradh 5cd5d6b9b9 pcmcom(4): Use config_detach_children. 2023-05-10 00:12:12 +00:00
riastradh 0594648075 mhzc(4): Use config_detach_children. 2023-05-10 00:12:05 +00:00
riastradh 41bfb0be17 ismt(4): Use config_detach_children. 2023-05-10 00:11:57 +00:00
riastradh be183a1919 esa(4): Use config_detach_children. 2023-05-10 00:11:49 +00:00
riastradh f79961d76e emuxki(4): Use config_detach_children. 2023-05-10 00:11:41 +00:00
riastradh 9a0486298d cxdtv(4): Use config_detach_children. 2023-05-10 00:11:32 +00:00
riastradh 48f5749921 auich(4): Use config_detach_children. 2023-05-10 00:11:24 +00:00
riastradh 3de5e56b97 nandemulator(4): Use config_detach_children. 2023-05-10 00:11:16 +00:00
riastradh 7aed42c4ee wb(4): Use config_detach_children. 2023-05-10 00:11:08 +00:00
riastradh 98ee5866f3 spc(4): Use config_detach_children. 2023-05-10 00:10:54 +00:00