|
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
|
| 1.8 |
29-Nov-2024 |
skrll |
Add some more #define and use __BITS with existing ones.
Same code before and after.
|
| 1.7 |
29-Aug-2024 |
skrll |
Use more BITS(3)
|
| 1.6 |
28-Aug-2024 |
skrll |
Shorten a bit definition name.
|
| 1.5 |
25-Aug-2024 |
skrll |
Use __BIT{,S}
|
| 1.4 |
25-Aug-2024 |
skrll |
Remove redundant register offsets in the comments.
|
|
Revision tags: netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base bouyer-sunxi-drm-base netbsd-9-3-RELEASE thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base netbsd-9-1-RELEASE bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 jdolecek-ncqfixes-base pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
| 1.3 |
24-Aug-2015 |
rjs |
branches: 1.3.16; 1.3.58; Add hardware checksumming support.
|
| 1.2 |
13-Aug-2015 |
rjs |
Add gem versions of collision counters.
|
|
Revision tags: nick-nhusb-base-20150606 nick-nhusb-base-20150406
|
| 1.1 |
23-Jan-2015 |
hkenken |
branches: 1.1.2; 1.1.4; Initial Zynq (Xilinx) support Add support for ZedBoard evaluation board and Parallella board. * cemac(4) Cadence EMAC/GEM(Gigabit) Ethernet Controller driver based on at91emac
|
| 1.46 |
12-Oct-2025 |
thorpej |
Use ether_getaddr().
|
|
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
|
| 1.45 |
15-Oct-2024 |
lloyd |
Allow non-Realtek PHYs to be used with Zynq SoCs.
The cemac driver used to skip the first PHY found in order to work around a bug where Realtek PHYs attached to a cemac Ethernet would report at PHY numbers 0 and 1. Unfortunately if you don't have this bug, then your only PHY would get skipped.
The Zynq FDT always has a working PHY number recorded in it, so we now simply use that number (if present) instead of searching for all available PHYs.
|
| 1.44 |
06-Oct-2024 |
skrll |
fix whitespace from previous
|
| 1.43 |
05-Oct-2024 |
skrll |
Make cemac(4) MP safe.
Tested with qemu and
qemu-system-arm \ -kernel netbsd.ub \ -dtb zynq-zc702.dtb \ -M xilinx-zynq-a9 \ -sd armv7.img \ -append "root=ld0a -x -v" \ -serial null -serial mon:stdio \ -nographic
|
| 1.42 |
29-Sep-2024 |
skrll |
Rename a softc member. NFC.
|
| 1.41 |
29-Sep-2024 |
skrll |
Sprinkle some const
|
| 1.40 |
28-Aug-2024 |
skrll |
Shorten a bit definition name.
|
| 1.39 |
27-Aug-2024 |
skrll |
Wrap long lines
|
| 1.38 |
27-Aug-2024 |
skrll |
Whitespace
|
| 1.37 |
25-Aug-2024 |
skrll |
Comment fixes.
|
| 1.36 |
25-Aug-2024 |
skrll |
Use roundup - same code before and after.
|
| 1.35 |
25-Aug-2024 |
skrll |
Sprinkle const and remove unnecessary casts.
|
| 1.34 |
25-Aug-2024 |
skrll |
KNF
|
| 1.33 |
25-Aug-2024 |
skrll |
Re-organise to enable other attachments.
|
| 1.32 |
24-Aug-2024 |
skrll |
Header inclusion maintenance and KNF
|
| 1.31 |
24-Aug-2024 |
skrll |
KNF
|
| 1.30 |
24-Aug-2024 |
skrll |
G/C
|
| 1.29 |
24-Aug-2024 |
skrll |
KNF
|
| 1.28 |
05-Jul-2024 |
rin |
sys: Drop redundant NULL check before m_freem(9)
m_freem(9) safely has accepted NULL argument at least since 4.2BSD: https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c
Compile-tested on amd64/ALL.
Suggested by knakahara@
|
|
Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
|
| 1.27 |
29-Jun-2024 |
riastradh |
branches: 1.27.2; if_stats(9): Add ifp argument to if_stat..._ref.
This will enable us to pass the ifp through to a dtrace probe inside.
No functional change intended in this change, but this is an API change visible to modules so it shouldn't be pulled up.
PR kern/58377
|
|
Revision tags: netbsd-10-1-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base
|
| 1.26 |
12-Nov-2022 |
jmcneill |
Skip the first PHY found to remove the shadow PHY that appears at the broadcast address 0.
|
|
Revision tags: bouyer-sunxi-drm-base
|
| 1.25 |
18-Sep-2022 |
thorpej |
Eliminate use of IFF_OACTIVE.
|
| 1.24 |
31-Dec-2021 |
riastradh |
sys: Use if_init wrapper function.
Exception: Not in kern_pmf.c, for the kind of silly reason that it avoids having kern_pmf.c refer to symbols defined only in net; this avoids a pain in the rump.
|
|
Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base
|
| 1.23 |
28-Jun-2020 |
skrll |
Use prop_data_value (not prop_data_data_nocopy)
|
|
Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3
|
| 1.22 |
29-Jan-2020 |
thorpej |
Adopt <net/if_stats.h>.
|
|
Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
|
| 1.21 |
28-May-2019 |
msaitoh |
branches: 1.21.4; Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
|
| 1.20 |
23-May-2019 |
msaitoh |
Whitespace fix (mainly tabify).
|
| 1.19 |
23-May-2019 |
msaitoh |
No functional change: - Change ac(was arpcom) to ec(ethercom) - Simplify MII structure initialization. - u_int*_t -> uint*_t. - KNF
|
| 1.18 |
19-May-2019 |
alnsn |
Kill unused sc variable and fix the build.
|
| 1.17 |
22-Apr-2019 |
msaitoh |
On drivers which use MII(4) and have hook SIOC[GS]IFMEDIA which just pass to ifmedia_ioctl(), the hook is not required because ether_ioctl has it (if_ethersubr.c rev. 1.160). These drivers don't return ENETRESET in ifmedia_ioctl(), so no functional change.
|
|
Revision tags: isaki-audio2-base
|
| 1.16 |
05-Feb-2019 |
msaitoh |
Remove very old IFF_NOTRAILERS flag.
|
|
Revision tags: pgoyette-compat-20190127
|
| 1.15 |
22-Jan-2019 |
msaitoh |
Change MII PHY read/write API from:
int (*mii_readreg_t)(device_t, int, int); void (*mii_writereg_t)(device_t, int, int, int); to:
int (*mii_readreg_t)(device_t, int, int, uint16_t *); int (*mii_writereg_t)(device_t, int, int, uint16_t);
Now we can test if a read/write operation failed or not by the return value.
In 802.3 spec says that the PHY shall not respond to read/write transaction to the unimplemented register(22.2.4.3). Detecting timeout can be used to check whether a register is implemented or not (if the register conforms to the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.
Note that I noticed that the following code do infinite loop in the read/wirte function. If it accesses unimplemented PHY register, it will hang. It should be fixed:
arm/at91/at91emac.c arm/ep93xx/epe.c arm/omap/omapl1x_emac.c mips/ralink/ralink_eth.c arch/powerpc/booke/dev/pq3etsec.c(read) dev/cadence/if_cemac.c <- hkenken dev/ic/lan9118.c
Tested with the following device:
axe+ukphy axe+rgephy axen+rgephy (tested by Andrius V) wm+atphy wm+ukphy wm+igphy wm+ihphy wm+makphy sk+makphy sk+brgphy sk+gentbi msk+makphy sip+icsphy sip+ukphy re+rgephy bge+brgphy bnx+brgphy gsip+gphyter rtk+rlphy fxp+inphy (tested by Andrius V) tlp+acphy ex+exphy epic+qsphy vge+ciphy (tested by Andrius V) vr+ukphy (tested by Andrius V) vte+ukphy (tested by Andrius V)
Not tested (MAC): arm:at91emac arm:cemac arm:epe arm:geminigmac arm:enet arm:cpsw arm:emac(omac) arm:emac(sunxi) arm:npe evbppc:temac macppc:bm macppc:gm mips:aumac mips:ae mips:cnmac mips:reth mips:sbmac playstation2:smap powerpc:tsec powerpc:emac(ibm4xx) sgimips:mec sparc:be sf ne(ax88190, dl10019) awge ep gem hme smsh mtd sm age alc ale bce cas et jme lii nfe pcn ste stge tl xi aue mue smsc udav url
Not tested (PHY): amhphy bmtphy dmphy etphy glxtphy ikphy iophy lxtphy nsphyter pnaphy rdcphy sqphy tlphy tqphy urlphy
|
|
Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 jdolecek-ncqfixes-base pgoyette-compat-0728
|
| 1.14 |
15-Jul-2018 |
maxv |
Retire ipkdb entirely. The option was removed from the config files yesterday.
ok kamil christos
|
|
Revision tags: phil-wifi-base
|
| 1.13 |
26-Jun-2018 |
msaitoh |
branches: 1.13.2; Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some environment by passing the direction to bpf_mtap*() instead of checking m->m_pkthdr.rcvif.
|
|
Revision tags: pgoyette-compat-0625
|
| 1.12 |
22-Jun-2018 |
msaitoh |
It's not required to include net/bpfdesc.h. Remove it.
|
|
Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base
|
| 1.11 |
23-May-2017 |
ozaki-r |
branches: 1.11.2; 1.11.8; 1.11.10; Apply deferred if_start to more drivers
And annotate some XXX_start as it runs in softint to clarify that it doesn't need deferred if_start.
|
|
Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107
|
| 1.10 |
15-Dec-2016 |
ozaki-r |
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input
The benefits of the change are: - We can reduce codes - We can provide the same behavior between drivers - Where/When if_ipackets is counted up - Note that some drivers still update packet statistics in their own way (periodical update) - Moved bpf_mtap run in softint - This makes it easy to MP-ify bpf
Proposed on tech-kern and tech-net
|
|
Revision tags: nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907
|
| 1.9 |
10-Jun-2016 |
ozaki-r |
branches: 1.9.2; Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf. They are counterpart of m_get_rcvif, which will come in another commit, hide internal of rcvif operation, and reduce the diff of the upcoming change.
No functional change.
|
|
Revision tags: nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319
|
| 1.8 |
09-Feb-2016 |
ozaki-r |
Introduce softint-based if_input
This change intends to run the whole network stack in softint context (or normal LWP), not hardware interrupt context. Note that the work is still incomplete by this change; to that end, we also have to softint-ify if_link_state_change (and bpf) which can still run in hardware interrupt.
This change softint-ifies at ifp->if_input that is called from each device driver (and ieee80211_input) to ensure Layer 2 runs in softint (e.g., ether_input and bridge_input). To this end, we provide a framework (called percpuq) that utlizes softint(9) and percpu ifqueues. With this patch, rxintr of most drivers just queues received packets and schedules a softint, and the softint dequeues packets and does rest packet processing.
To minimize changes to each driver, percpuq is allocated in struct ifnet for now and that is initialized by default (in if_attach). We probably have to move percpuq to softc of each driver, but it's future work. At this point, only wm(4) has percpuq in its softc as a reference implementation.
Additional information including performance numbers can be found in the thread at tech-kern@ and tech-net@: http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html
Acknowledgment: riastradh@ greatly helped this work. Thank you very much!
|
|
Revision tags: nick-nhusb-base-20151226 nick-nhusb-base-20150921
|
| 1.7 |
24-Aug-2015 |
rjs |
Add hardware checksumming support.
|
| 1.6 |
24-Aug-2015 |
rjs |
Fix logic for setting multicast addresses.
Setting CRC values for hashes is broken so all multicast addresses are accepted for now.
|
| 1.5 |
24-Aug-2015 |
rjs |
Whitespace.
|
| 1.4 |
24-Aug-2015 |
rjs |
printf -> aprint.
|
| 1.3 |
13-Aug-2015 |
rjs |
Add gem versions of collision counters.
|
|
Revision tags: nick-nhusb-base-20150606
|
| 1.2 |
20-May-2015 |
ozaki-r |
Remove leftover use of AF_NS and NS option
Unnecessary NETISR_NS is also removed.
|
|
Revision tags: nick-nhusb-base-20150406
|
| 1.1 |
23-Jan-2015 |
hkenken |
branches: 1.1.2; 1.1.4; Initial Zynq (Xilinx) support Add support for ZedBoard evaluation board and Parallella board. * cemac(4) Cadence EMAC/GEM(Gigabit) Ethernet Controller driver based on at91emac
|
|
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
|
| 1.7 |
15-Oct-2024 |
lloyd |
Allow non-Realtek PHYs to be used with Zynq SoCs.
The cemac driver used to skip the first PHY found in order to work around a bug where Realtek PHYs attached to a cemac Ethernet would report at PHY numbers 0 and 1. Unfortunately if you don't have this bug, then your only PHY would get skipped.
The Zynq FDT always has a working PHY number recorded in it, so we now simply use that number (if present) instead of searching for all available PHYs.
|
| 1.6 |
05-Oct-2024 |
skrll |
Make cemac(4) MP safe.
Tested with qemu and
qemu-system-arm \ -kernel netbsd.ub \ -dtb zynq-zc702.dtb \ -M xilinx-zynq-a9 \ -sd armv7.img \ -append "root=ld0a -x -v" \ -serial null -serial mon:stdio \ -nographic
|
| 1.5 |
29-Sep-2024 |
skrll |
Rename a softc member. NFC.
|
| 1.4 |
25-Aug-2024 |
skrll |
Re-organise to enable other attachments.
|
| 1.3 |
24-Aug-2024 |
skrll |
G/C
|
| 1.2 |
24-Aug-2024 |
skrll |
KNF
|
|
Revision tags: netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base bouyer-sunxi-drm-base netbsd-9-3-RELEASE thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base thorpej-i2c-spi-conf-base thorpej-cfargs-base thorpej-futex-base netbsd-9-1-RELEASE bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 isaki-audio2-base pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 jdolecek-ncqfixes-base pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base tls-maxphys-base-20171202 matt-nb8-mediatek-base nick-nhusb-base-20170825 perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529 nick-nhusb-base-20160422 nick-nhusb-base-20160319 nick-nhusb-base-20151226 nick-nhusb-base-20150921 nick-nhusb-base-20150606 nick-nhusb-base-20150406
|
| 1.1 |
23-Jan-2015 |
hkenken |
branches: 1.1.2; 1.1.4; 1.1.20; 1.1.62; Initial Zynq (Xilinx) support Add support for ZedBoard evaluation board and Parallella board. * cemac(4) Cadence EMAC/GEM(Gigabit) Ethernet Controller driver based on at91emac
|