The NetBSD Project

CVS log for src/sys/dev/cadence/if_cemac.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / cadence

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Oct 15 00:58:15 2024 UTC (6 weeks, 6 days ago) by lloyd
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -1 lines
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.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Oct 6 19:18:20 2024 UTC (8 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3 lines
fix whitespace from previous

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Oct 5 07:37:22 2024 UTC (8 weeks, 2 days ago) by skrll
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +223 -47 lines
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

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Sep 29 09:13:14 2024 UTC (2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -6 lines
Rename a softc member. NFC.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Sep 29 08:55:21 2024 UTC (2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -5 lines
Sprinkle some const

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Aug 28 06:50:17 2024 UTC (3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
Shorten a bit definition name.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Aug 27 07:53:20 2024 UTC (3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +70 -52 lines
Wrap long lines

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Aug 27 07:28:59 2024 UTC (3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -4 lines
Whitespace

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Aug 25 16:27:33 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -4 lines
Comment fixes.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Aug 25 16:25:29 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -6 lines
Use roundup - same code before and after.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Aug 25 16:06:46 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +13 -17 lines
Sprinkle const and remove unnecessary casts.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Aug 25 15:49:36 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +6 -4 lines
KNF

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Aug 25 07:25:00 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +6 -57 lines
Re-organise to enable other attachments.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Aug 24 11:55:45 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +7 -13 lines
Header inclusion maintenance and KNF

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Aug 24 10:11:40 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4 lines
KNF

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Aug 24 10:09:02 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -9 lines
G/C

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Aug 24 07:24:34 2024 UTC (3 months, 1 week ago) by skrll
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4 lines
KNF

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:50 2024 UTC (4 months, 4 weeks ago) by rin
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -4 lines
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 1.27: download - view: text, markup, annotated - select for diffs
Sat Jun 29 12:11:11 2024 UTC (5 months ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -7 lines
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 1.26: download - view: text, markup, annotated - select for diffs
Sat Nov 12 16:54:36 2022 UTC (2 years ago) by jmcneill
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -4 lines
Skip the first PHY found to remove the shadow PHY that appears at
the broadcast address 0.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Sep 18 16:54:30 2022 UTC (2 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +8 -7 lines
Eliminate use of IFF_OACTIVE.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Dec 31 14:25:22 2021 UTC (2 years, 11 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
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 1.23: download - view: text, markup, annotated - select for diffs
Sun Jun 28 12:43:00 2020 UTC (4 years, 5 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Use prop_data_value (not prop_data_data_nocopy)

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:03 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +14 -9 lines
Merge changes from current as of 20200406

Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:07 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +14 -9 lines
Sync with head.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jan 29 05:54:29 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +14 -9 lines
Adopt <net/if_stats.h>.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:06 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +67 -68 lines
Sync with HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:48 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -2 lines
 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu May 23 13:10:51 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +25 -25 lines
 Whitespace fix (mainly tabify).

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu May 23 10:30:35 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +33 -29 lines
No functional change:
 - Change ac(was arpcom) to ec(ethercom)
 - Simplify MII structure initialization.
 - u_int*_t -> uint*_t.
 - KNF

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun May 19 13:32:35 2019 UTC (5 years, 6 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -3 lines
Kill unused sc variable and fix the build.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Apr 22 08:05:01 2019 UTC (5 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -7 lines
 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 1.16: download - view: text, markup, annotated - select for diffs
Tue Feb 5 06:17:02 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: isaki-audio2-base, isaki-audio2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
 Remove very old IFF_NOTRAILERS flag.

Revision 1.11.10.3: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:06 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.11.10.2: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.10.2: +11 -8 lines
Sync with HEAD

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:42:26 2019 UTC (5 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -8 lines
 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 1.11.10.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:44 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.11.10.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.10.1: +3 -7 lines
Sync with HEAD

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 26 23:55:29 2018 UTC (6 years, 4 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -5 lines
Pull up following revision(s) (requested by msaitoh in ticket #938):
	sys/arch/acorn32/podulebus/if_ie.c: revision 1.41
	sys/arch/amiga/dev/if_es.c: revision 1.58
	sys/arch/amiga/dev/if_qn.c: revision 1.45
	sys/arch/arm/at91/at91emac.c: revision 1.20
	sys/arch/arm/ep93xx/epe.c: revision 1.37
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.14
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.15
	sys/arch/mac68k/dev/if_mc.c: revision 1.46
	sys/arch/macppc/dev/am79c950.c: revision 1.39
	sys/arch/newsmips/apbus/if_sn.c: revision 1.40
	sys/arch/next68k/dev/mb8795.c: revision 1.59
	sys/arch/playstation2/dev/if_smap.c: revision 1.25
	sys/arch/playstation2/dev/if_smap.c: revision 1.26
	sys/arch/sun2/dev/if_ec.c: revision 1.28
	sys/arch/sun3/dev/if_ie.c: revision 1.63
	sys/arch/x68k/dev/if_ne_intio.c: revision 1.19
	sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.75
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.63
	sys/dev/bi/if_ni.c: revision 1.45
	sys/dev/cadence/if_cemac.c: revision 1.12
	sys/dev/ic/am7990.c: revision 1.78
	sys/dev/ic/am79900.c: revision 1.27
	sys/dev/ic/an.c: revision 1.67
	sys/dev/ic/cs89x0.c: revision 1.40
	sys/dev/ic/dm9000.c: revision 1.13
	sys/dev/ic/dm9000.c: revision 1.14
	sys/dev/ic/dp8390.c: revision 1.88
	sys/dev/ic/elink3.c: revision 1.141
	sys/dev/ic/elinkxl.c: revision 1.122
	sys/dev/ic/hme.c: revision 1.98
	sys/dev/ic/i82586.c: revision 1.77
	sys/dev/ic/lance.c: revision 1.53
	sys/dev/ic/mb86950.c: revision 1.27
	sys/dev/ic/mb86960.c: revision 1.86
	sys/dev/ic/mtd803.c: revision 1.34
	sys/dev/ic/pdq_ifsubr.c: revision 1.59
	sys/dev/ic/rrunner.c: revision 1.86
	sys/dev/ic/seeq8005.c: revision 1.58
	sys/dev/ic/sgec.c: revision 1.47
	sys/dev/ic/smc90cx6.c: revision 1.72
	sys/dev/ic/smc91cxx.c: revision 1.96
	sys/dev/ic/tropic.c: revision 1.49
	sys/dev/ic/wi.c: revision 1.245
	sys/dev/isa/if_eg.c: revision 1.93
	sys/dev/isa/if_el.c: revision 1.95
	sys/dev/isa/if_iy.c: revision 1.101
	sys/dev/ofw/ofnet.c: revision 1.58
	sys/dev/pci/if_alc.c: revision 1.27
	sys/dev/pci/if_de.c: revision 1.152
	sys/dev/pci/if_fpa.c: revision 1.61
	sys/dev/pci/if_jme.c: revision 1.34
	sys/dev/pci/if_tl.c: revision 1.108
	sys/dev/pci/if_vte.c: revision 1.19
	sys/dev/pci/ixgbe/ixgbe.h: revision 1.50
	sys/dev/pcmcia/if_cnw.c: revision 1.62
	sys/dev/pcmcia/if_malo_pcmcia.c: revision 1.17
	sys/dev/pcmcia/if_ray.c: revision 1.89
	sys/dev/pcmcia/if_xi.c: revision 1.81
	sys/dev/pcmcia/mhzc.c: revision 1.51
	sys/dev/pcmcia/xirc.c: revision 1.34
	sys/dev/qbus/if_de.c: revision 1.33
	sys/dev/qbus/if_qe.c: revision 1.78
	sys/dev/qbus/if_qt.c: revision 1.22
	sys/dev/sbus/be.c: revision 1.87
	sys/dev/sbus/qe.c: revision 1.68
	sys/dev/scsipi/if_se.c: revision 1.96
	sys/dev/usb/if_atu.c: revision 1.59
	sys/net/if_l2tp.c: revision 1.28 via patch
	sys/net/if_ppp.c: revision 1.160
It's not required to include net/bpfdesc.h. Remove it.
--
Simplify like other drivers. NULL check of ifp->if_bpf is done in
bpf_mtap(), so it's not required to do it here.
--
Remove duplicated inclusion of net/bpf.h.
--
Remove duplicated inclusion of net/bpf.h.
--
Simplify bpf_mtap() call. No functional change.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jul 15 05:16:44 2018 UTC (6 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -6 lines
Retire ipkdb entirely. The option was removed from the config files
yesterday.

ok kamil christos

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:00 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base
Branch point for: phil-wifi
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
 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 1.11.10.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:49 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -5 lines
Sync with HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jun 22 04:17:41 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-0625
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -5 lines
 It's not required to include net/bpfdesc.h. Remove it.

Revision 1.11.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:59 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.11.8.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.8.1: +1082 -0 lines
update from HEAD

Revision 1.1.2.8: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:01 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.7: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.7: +5 -4 lines
Sync with HEAD

Revision 1.11.8.1
Tue May 23 02:19:14 2017 UTC (7 years, 6 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.11: +0 -1082 lines
file if_cemac.c was added on branch tls-maxphys on 2017-12-03 11:36:59 +0000

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 23 02:19:14 2017 UTC (7 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: tls-maxphys, pgoyette-compat, netbsd-8
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -4 lines
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 1.1.2.7: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:27 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.6: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.6: +2 -3 lines
Sync with HEAD

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:31 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +2 -3 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:04 2016 UTC (7 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -3 lines
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 1.1.2.6: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:01 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.5: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.5: +3 -3 lines
Sync with HEAD

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:13 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
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 1.1.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:09 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.4: +4 -3 lines
Sync with HEAD

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:10 2016 UTC (8 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -3 lines
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 1.1.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:57 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +80 -18 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Aug 24 18:51:37 2015 UTC (9 years, 3 months ago) by rjs
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +61 -7 lines
Add hardware checksumming support.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Aug 24 18:40:57 2015 UTC (9 years, 3 months ago) by rjs
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +13 -9 lines
Fix logic for setting multicast addresses.

Setting CRC values for hashes is broken so all multicast addresses are
accepted for now.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Aug 24 18:26:51 2015 UTC (9 years, 3 months ago) by rjs
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Whitespace.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Aug 24 18:11:12 2015 UTC (9 years, 3 months ago) by rjs
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -5 lines
printf -> aprint.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Aug 13 14:51:35 2015 UTC (9 years, 3 months ago) by rjs
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -3 lines
Add gem versions of collision counters.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:06 2015 UTC (9 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +2 -7 lines
Sync with HEAD

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed May 20 09:17:18 2015 UTC (9 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -7 lines
Remove leftover use of AF_NS and NS option

Unnecessary NETISR_NS is also removed.

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Mon May 11 11:00:33 2015 UTC (9 years, 6 months ago) by msaitoh
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +1024 -0 lines
Pull up following revision(s) (requested by nonaka in ticket #751):
	sys/arch/arm/zynq/zynq_axi.c: revision 1.1
	sys/arch/evbarm/conf/files.zynq: revision 1.1
	sys/arch/arm/zynq/zynq_uart.c: revision 1.1
	sys/arch/evbarm/zynq/genassym.cf: revision 1.1
	sys/arch/evbarm/zynq/zynq_start.S: revision 1.1
	sys/arch/arm/zynq/zynq_slcrreg.h: revision 1.1
	sys/arch/arm/zynq/zynq_usbreg.h: revision 1.1
	sys/arch/arm/zynq/zynq7000_uart.c: revision 1.1
	sys/arch/arm/zynq/zynq7000_sdhc.c: revision 1.1
	sys/arch/arm/zynq/zynq_slcrvar.h: revision 1.1
	sys/arch/arm/zynq/zynq_usbvar.h: revision 1.1
	sys/arch/evbarm/conf/PARALLELLA_INSTALL: revision 1.1
	sys/arch/arm/zynq/zynq_uartreg.h: revision 1.1
	sys/arch/evbarm/zynq/platform.h: revision 1.1
	sys/arch/evbarm/conf/mk.zynq: revision 1.1
	sys/arch/evbarm/conf/files.zedboard: revision 1.1
	sys/arch/arm/zynq/zynq7000_usb.c: revision 1.1
	sys/dev/cadence/if_cemacvar.h: revision 1.1
	sys/arch/arm/zynq/files.zynq: revision 1.1
	sys/arch/arm/zynq/zynq_slcr.c: revision 1.1
	sys/arch/arm/zynq/zynq7000_intr.h: revision 1.1
	sys/arch/arm/conf/majors.arm32: revision 1.36
	sys/arch/arm/zynq/zynq_uartvar.h: revision 1.1
	sys/arch/evbarm/conf/files.parallella: revision 1.1
	sys/arch/arm/zynq/zynq_space.c: revision 1.1
	sys/dev/cadence/if_cemac.c: revision 1.1
	sys/arch/evbarm/conf/PARALLELLA: revision 1.1
	sys/arch/arm/zynq/zynq7000_board.c: revision 1.1
	sys/arch/evbarm/Makefile: revision 1.10
	sys/arch/evbarm/zynq/zynq_machdep.c: revision 1.1
	sys/arch/arm/zynq/zynq7000_reg.h: revision 1.1
	sys/arch/evbarm/conf/ZEDBOARD: revision 1.1
	sys/dev/cadence/cemacreg.h: revision 1.1
	sys/arch/evbarm/conf/std.zynq: revision 1.1
	sys/arch/arm/zynq/zynq_dma.c: revision 1.1
	sys/arch/arm/zynq/zynq_cemac.c: revision 1.1
	sys/arch/arm/zynq/zynq7000_var.h: revision 1.1
	sys/arch/evbarm/conf/ZEDBOARD_INSTALL: revision 1.1
	sys/arch/arm/zynq/zynq_usb.c: revision 1.1
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 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:08 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +1024 -0 lines
Sync with HEAD

Revision 1.1.4.1
Fri Jan 23 12:34:09 2015 UTC (9 years, 10 months ago) by msaitoh
Branches: netbsd-7
FILE REMOVED
Changes since revision 1.1: +0 -1024 lines
file if_cemac.c was added on branch netbsd-7 on 2015-05-11 11:00:33 +0000

Revision 1.1.2.1
Fri Jan 23 12:34:09 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.1: +0 -1024 lines
file if_cemac.c was added on branch nick-nhusb on 2015-04-06 15:18:08 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jan 23 12:34:09 2015 UTC (9 years, 10 months ago) by hkenken
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Branch point for: nick-nhusb, netbsd-7
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

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>