The NetBSD Project

CVS log for src/sys/dev/marvell/if_mvxpe.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.40 / (download) - annotate - [select for diffs], Mon Apr 4 19:33:45 2022 UTC (9 months, 4 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

fix various typos, mainly in comments.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Feb 16 22:00:56 2022 UTC (11 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

fix various typos, mainly in comments.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Feb 12 03:24:35 2022 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

sys: Fix various abuse of struct device internals.

Will help to make struct device opaque later.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Dec 5 07:57:38 2021 UTC (13 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored)

s/sumary/summary/

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 17 08:13:06 2021 UTC (16 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

some love to double letters (in comments).

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 13 21:04:44 2021 UTC (17 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

s/fame/frame in mvxpe_mib_def with assumption that it was not intentional typo.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Aug 2 12:56:24 2021 UTC (17 months, 4 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-futex2-base, thorpej-futex2
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

fix various typos in comments and log messages.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:23 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.19.2.2: +6 -8 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:07 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.19.2.1: +11 -11 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

Merge changes from current as of 20200406

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:09 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 5 08:34:48 2020 UTC (2 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

Adopt <net/if_stats.h>

Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 4 07:36:55 2020 UTC (2 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (colored)

Adopt <net/if_stats.h>

Revision 1.31 / (download) - annotate - [select for diffs], Sat Dec 28 03:07:18 2019 UTC (3 years, 1 month ago) by gutteridge
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored)

Fix typos in messages.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Oct 15 00:13:53 2019 UTC (3 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.29: +3 -5 lines
Diff to previous 1.29 (colored)

convert more KM_NOSLEEP to KM_SLEEP and remove code to handle failures.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Oct 1 17:35:09 2019 UTC (3 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.28: +6 -6 lines
Diff to previous 1.28 (colored)

make this compile again:
 - remove unused config attributes
 - rename a local variable to avoid a name conflict

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 13 07:55:07 2019 UTC (3 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

 if_flags is neither int nor short. It's unsigned short.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:13 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.19: +80 -82 lines
Diff to previous 1.19 (colored)

Sync with HEAD

Revision 1.27 / (download) - annotate - [select for diffs], Tue May 28 07:41:49 2019 UTC (3 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, 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
Changes since 1.26: +5 -2 lines
Diff to previous 1.26 (colored)

 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.26 / (download) - annotate - [select for diffs], Fri May 24 06:26:38 2019 UTC (3 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

 Whilespace fix. No functional change.

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 23 13:10:51 2019 UTC (3 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

 Whitespace fix (mainly tabify).

Revision 1.24 / (download) - annotate - [select for diffs], Thu May 23 10:51:39 2019 UTC (3 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.23: +40 -43 lines
Diff to previous 1.23 (colored)

No functional change:
 - Simplify MII structure initialization and reference.
 - u_int*_t -> uint*_t.
 - KNF

Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 24 10:56:24 2019 UTC (3 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.22: +2 -11 lines
Diff to previous 1.22 (colored)

 This driver uses 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). This driver might require some additional fixes
for SIOCSIFMTU and other ioctl()s.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 18 11:38:03 2019 UTC (3 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

 s/pakcet/packet/ in comment.

Revision 1.17.16.4 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:06 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.17.16.3: +31 -24 lines
Diff to previous 1.17.16.3 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jan 22 03:42:27 2019 UTC (4 years ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.20: +31 -24 lines
Diff to previous 1.20 (colored)

 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.17.16.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:50 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.17.16.2: +3 -3 lines
Diff to previous 1.17.16.2 (colored) to branchpoint 1.17 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:31 2018 UTC (4 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.17.16.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:45 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.17.16.1: +3 -3 lines
Diff to previous 1.17.16.1 (colored) to branchpoint 1.17 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:01 2018 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

 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.17.16.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:51 2018 UTC (4 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 1 08:56:00 2018 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Rename

	M_CSUM_DATA_IPv6_HL -> M_CSUM_DATA_IPv6_IPHL
	M_CSUM_DATA_IPv6_HL_SET -> M_CSUM_DATA_IPv6_SET

Reduces the diff against IPv4. Also, clarify the definitions.

Revision 1.17.14.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:05 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.17.14.1: +3316 -0 lines
Diff to previous 1.17.14.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

update from HEAD

Revision 1.2.2.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:28 2017 UTC (5 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.2.5: +4 -6 lines
Diff to previous 1.2.2.5 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:32 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.13.2.1: +4 -6 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.17.14.1, Thu Dec 15 09:28:05 2016 UTC (6 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.17: +0 -3316 lines
FILE REMOVED

file if_mvxpe.c was added on branch tls-maxphys on 2017-12-03 11:37:05 +0000

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:05 2016 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, 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, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: tls-maxphys, pgoyette-compat
Changes since 1.16: +2 -4 lines
Diff to previous 1.16 (colored)

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.16 / (download) - annotate - [select for diffs], Thu Dec 8 01:12:01 2016 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

Apply deferred if_start framework

if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:02 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.2.2.4: +21 -11 lines
Diff to previous 1.2.2.4 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:09 2016 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.13: +21 -11 lines
Diff to previous 1.13 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 20 09:53:08 2016 UTC (6 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Fix regisers typo

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 10 14:23:35 2016 UTC (6 years, 3 months ago) by kiyohara
Branch: MAIN
Changes since 1.13: +19 -9 lines
Diff to previous 1.13 (colored)

The bus_dmamap_sync(PREREAD) is unnecessary for sent mbuf.
Moreover bus_dmamap_sync(POSTWRITE), before unload.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:03 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.2.3: +3 -3 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:14 2016 UTC (6 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

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.2.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:10 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.2.2: +119 -73 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 13 08:05:06 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.11: +29 -10 lines
Diff to previous 1.11 (colored)

Make all packets are enqueued into queue 0.
queue 7 is not default, it is caused by the filter tables.
The fields are including queue number, not bitfields.
So MVXPE_DF_QUEUE_ALL (b111) means queue 7.

And also, pass all unicast addresses if it is promisc mode.
MVXPE_PXC_UPM is working in almost cases,
but this change is needed for some cases; bridging frames through inter units,
using products have consecutive MAC addresses.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Feb 13 06:44:22 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.10: +8 -8 lines
Diff to previous 1.10 (colored)

Fix typo in sysctls.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 13 06:33:21 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.9: +54 -32 lines
Diff to previous 1.9 (colored)

Count up if_{opackets,oerrors,ierrors,collisions}.
And also "MAC Transmit Error" is tx error, not rx.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 13 06:12:46 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

Style.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Feb 13 06:02:31 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.7: +13 -13 lines
Diff to previous 1.7 (colored)

Preserve rx csum bad flags.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 13 05:47:38 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.6: +2 -4 lines
Diff to previous 1.6 (colored)

Fix mitake, disable SERDES error interrupts again.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 13 05:44:01 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.5: +13 -12 lines
Diff to previous 1.5 (colored)

Don't use RXTX intr that is excess and requires another IRQ handler,
and disable SERDES error interrupts.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 13 05:21:11 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Correct bus_dmamap_sync operaion.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 13 03:33:02 2016 UTC (6 years, 11 months ago) by hikaru
Branch: MAIN
Changes since 1.3: +12 -6 lines
Diff to previous 1.3 (colored)

Correct locks and missing breaks.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:11 2016 UTC (6 years, 11 months ago) by ozaki-r
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

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.2.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:08 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.2.1: +3262 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.2.2.1, Wed Jun 3 03:55:47 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2: +0 -3262 lines
FILE REMOVED

file if_mvxpe.c was added on branch nick-nhusb on 2015-06-06 14:40:08 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 3 03:55:47 2015 UTC (7 years, 8 months ago) by hsuenaga
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Branch point for: nick-nhusb
Changes since 1.1: +163 -402 lines
Diff to previous 1.1 (colored)

separate buffer management codes 'mvxpbm.c' from if_mvxpe.c.

the buffer management(ex. fill the rx descriptors/buffers) is done by H/W in
ARMADA XP/380, and is done by S/W in ARMADA 370. the H/W BM support is not yet
implemented, so all devices use the S/W management mode at this time.

Revision 1.1 / (download) - annotate - [select for diffs], Sun May 3 14:38:10 2015 UTC (7 years, 9 months ago) by hsuenaga
Branch: MAIN

add new ethernet driver mvxpe for recent MARVELL's SoC after ARMADA/XP.
this driver supports 'counter mode', and is disabled by default.

ARMADA SoC family has new ethernet controller acceleration mode called
'enhanced mode' or 'counter mode.' it seems that backward compatibility mode
used by if_mvgbe is still working, but the specification of the old mode
is completely disappeared from SoC's reference manual.

I tested the driver using MIRABOX(ARMADA/370).

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>