The NetBSD Project

CVS log for src/sys/dev/pci/if_vmx.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 9 18:39:52 2024 UTC (13 days, 4 hours ago) by andvar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

s/incompatiable/incompatible/ in error messages.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 28 09:50:12 2023 UTC (5 months, 3 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Set IFM_FDX flag if the link is up.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 10 08:24:44 2023 UTC (6 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.11: +117 -23 lines
Diff to previous 1.11 (colored)

vmxnet(4): Fix various MP bugs.

- Defer reset to workqueue.
  => vmxnet3_stop_locked is forbidden in softint.
  => XXX Problem: We still take the core lock in softint, and we
     still take the core lock around vmxnet3_stop_locked.  TBD.
- Touch if_flags only under IFNET_LOCK.
  => Cache ifp->if_flags & IFF_PROMISC in vmxnet3_ifflags_cb.
  => Don't call vmxnet3_set_rxfilter unless up and running; cache
     this as vmx_mcastactive.  Use ENETRESET in vmxnet3_ifflags_cb
     instead of calling vmxnet3_set_rxfilter directly.
     . (The cache is currently serialized by the core lock, but it
       might reasonably be serialized by an independent lock like in
       usbnet(9).)
- Fix vmxnet3_stop_rendezvous so it actually does something.
  => New vxtxq_stopping, vxrxq_stopping variables synchronize with
     Rx/Tx interrupt handlers.
- Sprinkle IFNET_LOCK and core lock assertions.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 16 07:55:34 2022 UTC (17 months, 1 week ago) by knakahara
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.10: +2 -18 lines
Diff to previous 1.10 (colored)

It is correct to update ifp statistics per packet, just remove commented out old statistics code.

The code is commented out by if_vmx.c:r1.57.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 16 03:10:12 2022 UTC (17 months, 1 week ago) by knakahara
Branch: MAIN
Changes since 1.9: +12 -2 lines
Diff to previous 1.9 (colored)

Add ALWAYS_TXDEFER option to vmx(4), too.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 6 06:32:50 2022 UTC (19 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.8: +6 -6 lines
Diff to previous 1.8 (colored)

Call txeof first, then rxeof for the consistency.

 There are three functions where the txeof and rxeof are called. The MSI-X
interrupt function and the workqueue function call rxeof first, then rxeof.
For legacy interrupt. rxeof is called first. Modify it to match with other
two.

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 24 02:22:47 2022 UTC (21 months ago) by msaitoh
Branch: MAIN
Changes since 1.7: +13 -10 lines
Diff to previous 1.7 (colored)

Reduce diff among vmxnet3_{legacy_intr,txrxq_intr,handle_que}(). NFCI.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 30 02:45:14 2022 UTC (22 months, 3 weeks ago) by knakahara
Branch: MAIN
Changes since 1.6: +7 -2 lines
Diff to previous 1.6 (colored)

vmxnet3_stop_rendezvous() requires workqueue_wait() to wait workqueue not scheduled yet.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 13 19:07:38 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.5: +2 -6 lines
Diff to previous 1.5 (colored)

vmx(4): Omit needless membar_sync wrapper.

Nothing uses this, and it is unlikely that any part of this driver
will need store-before-load ordering to synchronize with the host.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 13 01:11:29 2021 UTC (2 years, 4 months ago) by knakahara
Branch: MAIN
Changes since 1.4: +13 -4 lines
Diff to previous 1.4 (colored)

Fix vmx(4) receive workqueue problem on qemu, reported by ozaki-r@n.o, thanks.

ESXi stops interrupt by vmxnet3_disable_intr() immediately.  In contrast, qemu
does not stop interrupt soon.  Hmm, qemu's behavior seems not to be correct,
however, there is no explicit specification of vmxnet3.  So, we have to accept
that behavior.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 15 04:37:48 2020 UTC (3 years, 4 months ago) by ryo
Branch: 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
Changes since 1.3: +6 -7 lines
Diff to previous 1.3 (colored)

Reduces useless "vmxnet3_read_cmd(sc, VMXNET3_CMD_GET_LINK)" calls

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 15 04:33:24 2020 UTC (3 years, 4 months ago) by ryo
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Fixed a bug where 'ifconfig vmx0 down up' caused a failure to send.
This procedure was leaving sc->vmx_link_active = 0.

ok nakahara@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 14 10:26:59 2020 UTC (3 years, 4 months ago) by ryo
Branch: MAIN
Changes since 1.1: +48 -12 lines
Diff to previous 1.1 (colored)

modularize, and fix build error

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 14 10:19:11 2020 UTC (3 years, 4 months ago) by ryo
Branch: MAIN

vmx(4) should be MI. moved to sys/dev/pci from sys/arch/x86/pci

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>