git: em/emx: Add support for I219 LM15~19 and I219 V15~19

2021-03-29 Thread Sepherosa Ziehau
commit dd2edc49046d82aa1a877a289f4199eb5248b182 Author: Sepherosa Ziehau Date: Mon Mar 29 23:12:25 2021 +0800 em/emx: Add support for I219 LM15~19 and I219 V15~19 Obtained-from: e1000e Summary of changes: sys/dev/netif/em/if_em.c | 10 ++ sys/dev/netif/emx

git: em/emx: Merge Intel em-7.7.8.

2021-03-29 Thread Sepherosa Ziehau
commit 01a55482b42bba8de64caeb8c9ede647a9208734 Author: Sepherosa Ziehau Date: Tue Mar 23 22:48:52 2021 +0800 em/emx: Merge Intel em-7.7.8. Mainly fix setting for I219-LM12 and I219-V12. Summary of changes: sys/dev/netif/em/if_em.c | 28 +- sys/dev

git: bnx: Change clock speed to fix several types of hangs

2021-03-22 Thread Sepherosa Ziehau
commit 7acfcee270a7d37a12ca15e37a34554a10212413 Author: Sepherosa Ziehau Date: Mon Mar 22 23:10:52 2021 +0800 bnx: Change clock speed to fix several types of hangs - During reset, increase the clock speed temporarily to fix hang on 5717/5719/5720. - On 5762, always

git: bnx: Support 57764, 57767 and 57787

2021-03-19 Thread Sepherosa Ziehau
commit c1ed6db1a20e22cfc3b720dcfc13b1388ef51513 Author: Sepherosa Ziehau Date: Fri Mar 19 22:48:09 2021 +0800 bnx: Support 57764, 57767 and 57787 Obtained-from: tg3 68273712a19e9107a498a371532b3b3eb6dbb14c Summary of changes: sys/bus/pci/pcidevs| 3 +++ sys/dev

git: bnx: Prevent UDP fragments be routed to APE on 5762.

2021-03-19 Thread Sepherosa Ziehau
commit 5850b34b45a05c29a30b33055b8b567ed53322f3 Author: Sepherosa Ziehau Date: Fri Mar 19 22:22:07 2021 +0800 bnx: Prevent UDP fragments be routed to APE on 5762. Obtained-from: tg3 378b72c873b4828cde5b4bc85c7029d98f8f1df4 Summary of changes: sys/dev/netif/bge/if_bgereg.h

git: bnx: Fix potential hardware uninitialized TX DMA length registers.

2021-03-18 Thread Sepherosa Ziehau
commit 2eaa7169b800150eff65706a41f3cb005b2bf0c6 Author: Sepherosa Ziehau Date: Thu Mar 18 23:05:27 2021 +0800 bnx: Fix potential hardware uninitialized TX DMA length registers. It can only happen on 5719 and 5720. Obtained-from: tg3

git: bnx: Fix comment.

2021-03-17 Thread Sepherosa Ziehau
commit edf330091cc70474f8cee7ac30f0a5db55735b9b Author: Sepherosa Ziehau Date: Tue Mar 9 21:17:30 2021 +0800 bnx: Fix comment. Summary of changes: sys/dev/netif/bnx/if_bnx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git

git: tcp: Remove debug prints.

2021-03-17 Thread Sepherosa Ziehau
commit f8a6bfd320995a021bc39aae7454f98dc4fa70ca Author: Sepherosa Ziehau Date: Wed Mar 17 22:58:01 2021 +0800 tcp: Remove debug prints. Reported-by: peeterm Summary of changes: sys/netinet/tcp_usrreq.c | 1 - 1 file changed, 1 deletion(-) http://gitweb.dragonflybsd.org

git: ethernet: Add AF_ARP support.

2021-03-09 Thread Sepherosa Ziehau
commit 91d9f4486e4467d6d72687e743b4788aceb29789 Author: Sepherosa Ziehau Date: Tue Mar 9 22:38:44 2021 +0800 ethernet: Add AF_ARP support. Bump __DragonFly_version. Submitted-by: dillon@ (minor changes from me) Obtained-from: NetBSD Summary of changes: sys/net

git: x86_64/atomic: Fix comment of testand{clear,set}_long comment.

2021-03-01 Thread Sepherosa Ziehau
commit e9e066c1dcd8aa46968ceb6abff1d4045ca35447 Author: Sepherosa Ziehau Date: Mon Mar 1 21:19:17 2021 +0800 x86_64/atomic: Fix comment of testand{clear,set}_long comment. Summary of changes: sys/cpu/x86_64/include/atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

git: ip: Allow ip_mreqn support for IP_MULTICAST_IF, IP_{ADD, DROP}_MEMBERSHIP

2020-12-08 Thread Sepherosa Ziehau
commit 1926f5871d8d40d0c202c5029b76a54a8e99de5b Author: Sepherosa Ziehau Date: Mon Dec 7 23:16:53 2020 +0800 ip: Allow ip_mreqn support for IP_MULTICAST_IF,IP_{ADD,DROP}_MEMBERSHIP - ip_mreqn.imr_ifindex takes precendence over ip_mreqn.imr_address, if it's not 0

git: kern: Bump kernel version for IPPROTO_IP/IP_SENDSRCADDR,IP_TOS.

2020-12-04 Thread Sepherosa Ziehau
commit 6ed8d422d165d3fd8a7f7e2b42036f92962f28ff Author: Sepherosa Ziehau Date: Fri Dec 4 20:45:25 2020 +0800 kern: Bump kernel version for IPPROTO_IP/IP_SENDSRCADDR,IP_TOS. Summary of changes: sys/sys/param.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) http

git: udp: Port IPPROTO_IP/IP_TOS cmsg support from FreeBSD.

2020-12-04 Thread Sepherosa Ziehau
commit a45b89791953e820c4b27fafe78163c88a3f5d53 Author: Sepherosa Ziehau Date: Fri Dec 4 20:43:15 2020 +0800 udp: Port IPPROTO_IP/IP_TOS cmsg support from FreeBSD. Summary of changes: sys/netinet/udp_usrreq.c | 6 ++--- test/udp/tos/udp_tos.c | 62

Re: git: vkernel/vke: Add missing semicolon.

2020-12-04 Thread Sepherosa Ziehau
Oh, my fault. Thank you On Fri, Dec 4, 2020 at 7:49 PM Sascha Wildner wrote: > > > commit 57e25d68c95bc78c7a149a92c25d0791612df46a > Author: Sascha Wildner > Date: Fri Dec 4 12:49:03 2020 +0100 > > vkernel/vke: Add missing semicolon. > > Summary of changes: >

git: inet: Port IPPROTO/IP_RECVTOS from FreeBSD.

2020-12-04 Thread Sepherosa Ziehau
commit 544d23f43f4a40b396d411d5ba2fbe3da17a10d2 Author: Sepherosa Ziehau Date: Fri Dec 4 19:57:34 2020 +0800 inet: Port IPPROTO/IP_RECVTOS from FreeBSD. Bump kernel version. Requested-by: zrj Summary of changes: sys/netinet/in.h | 2 + sys/netinet

git: ifmedia: Port SIOCGIFXMEDIA from FreeBSD

2020-12-02 Thread Sepherosa Ziehau
commit 1e1c5facd07f55b72addc63c0859729afdf87a90 Author: Sepherosa Ziehau Date: Wed Dec 2 20:58:04 2020 +0800 ifmedia: Port SIOCGIFXMEDIA from FreeBSD - Max # of media type is 255 on DragonFly; additional bit was used. - Description of the media is changed to ###baseXX

git: bce: Use IF_Mbps to avoid float number in kernel.

2020-11-30 Thread Sepherosa Ziehau
commit a71b020ad21189e69950cdbd4bef40835dd746e1 Author: Sepherosa Ziehau Date: Mon Nov 30 22:36:31 2020 +0800 bce: Use IF_Mbps to avoid float number in kernel. Reported-by: zrj Summary of changes: sys/dev/netif/bce/if_bce.c | 4 ++-- 1 file changed, 2 insertions(+), 2

git: re: Sync with Realtek's re-196.04; and fix re_start/re_tx_collect.

2020-11-30 Thread Sepherosa Ziehau
commit 80492964331d3ad781e1ff17fe61faef902df333 Author: Sepherosa Ziehau Date: Wed Nov 4 20:35:53 2020 +0800 re: Sync with Realtek's re-196.04; and fix re_start/re_tx_collect. - Add several new chips' support, noticably RTL8125 support. - Reorder chip related initializaton

git: udp: Port FreeBSD's IPPROTO_IP/IP_SENDSRCADDR.

2020-11-26 Thread Sepherosa Ziehau
commit 14886acaff63ab197e5b032b5d10b027fc881d5f Author: Sepherosa Ziehau Date: Thu Nov 26 11:22:10 2020 +0800 udp: Port FreeBSD's IPPROTO_IP/IP_SENDSRCADDR. Minor difference: - Multicast src is not allowed. - Always allow src, if it is same as inp_laddr

git: tools/udpecho: Add command line option to prevent REUSEPORT.

2020-11-24 Thread Sepherosa Ziehau
commit 402988b03e09b1a4ef4b0785ce8bb7537df81276 Author: Sepherosa Ziehau Date: Tue Nov 24 22:49:09 2020 +0800 tools/udpecho: Add command line option to prevent REUSEPORT. Summary of changes: tools/tools/netrate/udpecho/udpecho.c | 19 +-- 1 file changed, 13 insertions

git: inpcb: Factor out function to obtain lport hash token.

2020-11-23 Thread Sepherosa Ziehau
commit 054104d4eedbd2aa2674ab4c1add958e67a202c3 Author: Sepherosa Ziehau Date: Mon Nov 23 23:36:52 2020 +0800 inpcb: Factor out function to obtain lport hash token. Summary of changes: sys/netinet/in_pcb.c | 49 +++-- 1 file changed, 23

git: jail: Constify the address to be checked.

2020-11-23 Thread Sepherosa Ziehau
commit 6ad50c19be6a8e07159585f81e980bf92269793e Author: Sepherosa Ziehau Date: Mon Nov 23 23:02:13 2020 +0800 jail: Constify the address to be checked. Summary of changes: sys/kern/kern_jail.c | 16 sys/sys/jail.h | 2 +- 2 files changed, 9 insertions(+), 9

Re: git: Sync ACPICA with Intel's version 20201113.

2020-11-16 Thread Sepherosa Ziehau
oh, the NVDIMM table :) On Sun, Nov 15, 2020 at 9:37 AM Sascha Wildner wrote: > > > commit 2b57e6df2e02e023cc8defd76c1809243c99e460 > Author: Sascha Wildner > Date: Sun Nov 15 02:36:51 2020 +0100 > > Sync ACPICA with Intel's version 20201113. > > * Fix a memory leak that could occur

Re: git: Test commit.

2020-05-28 Thread Sepherosa Ziehau
Welcome :) On Thu, May 28, 2020 at 3:04 PM Daniel Fojt wrote: > > > commit ddc4635c9b52032314b934e99e87ae464bf88f5b > Author: Daniel Fojt > Date: Thu May 28 08:56:25 2020 +0200 > > Test commit. > > Update test/test/README as suggested in committer(7). > > Recommended by: Sascha

git: taskqueue: Fix the order of TASKQUEUE_DEFINE_THREAD

2020-01-31 Thread Sepherosa Ziehau
commit 4a9b71cde98deffd53b98422fbc2d263ea96c4b3 Author: Sepherosa Ziehau Date: Fri Jan 31 19:57:05 2020 +0800 taskqueue: Fix the order of TASKQUEUE_DEFINE_THREAD So it can be used by drivers. Summary of changes: sys/kern/subr_taskqueue.c | 2 +- sys/sys/taskqueue.h | 2

git: sound/hda: Use driver specific taskqueue, instead of per-cpu taskqueue

2020-01-31 Thread Sepherosa Ziehau
commit ea34d8bf819e59ea5802a8e08a6b3d8053220c50 Author: Sepherosa Ziehau Date: Fri Jan 31 18:45:31 2020 +0800 sound/hda: Use driver specific taskqueue, instead of per-cpu taskqueue This driver is not per-cpu ready, so don't user per-cpu taskqueue, which causes assertion

git: taskqueue: Fix TASKQUEUE_DEFINE_THREAD

2020-01-31 Thread Sepherosa Ziehau
commit 5bc48ad468e421d1a20257389c272ff8a835e108 Author: Sepherosa Ziehau Date: Fri Jan 31 18:44:53 2020 +0800 taskqueue: Fix TASKQUEUE_DEFINE_THREAD Summary of changes: sys/sys/taskqueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org

git: acpi/pstate: Be lenient about the invalid PPC.

2020-01-15 Thread Sepherosa Ziehau
commit 06df3ee5b79659e947ebd5fdcba954aed29bde83 Author: Sepherosa Ziehau Date: Wed Jan 15 21:23:53 2020 +0800 acpi/pstate: Be lenient about the invalid PPC. If the PPC is invalid, just start from the first P-state, which normally has the highest frequency. Summary

git: kevent: Leading white space.

2019-11-24 Thread Sepherosa Ziehau
commit 759c366529d368c93c089c22164da0ad24dd261b Author: Sepherosa Ziehau Date: Sun Nov 24 20:14:56 2019 +0800 kevent: Leading white space. Summary of changes: sys/kern/kern_event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git

Re: git: route: Remove ref counting around rt_newaddrmsg().

2019-08-20 Thread Sepherosa Ziehau
Thank you! On Tue, Aug 20, 2019 at 9:22 PM Roy Marples wrote: > > > commit bb060a4b52c65e63f40e3a5613446cd956bc350f > Author: Roy Marples > Date: Tue Aug 20 14:18:51 2019 +0100 > > route: Remove ref counting around rt_newaddrmsg(). > > Doesn't seem to be needed anymore. > As

Re: git: inet6: Take route reference before announcing address

2019-08-18 Thread Sepherosa Ziehau
This is not necessary. We can remove the same ref++, ref-- sequence in rtinit_rtrequest_callback() either. Back to the time when parallel routing was implemented, routing code ran in "route netisr". But now, all routing code runs in netisrs, no need to adjust the ref at more. On Sat, Aug 17,

Re: git: kernel - Enable busmaster on bridges (BIOS might not)

2019-08-01 Thread Sepherosa Ziehau
Wow, you found it! On Fri, Aug 2, 2019 at 1:59 AM Matthew Dillon wrote: > > > commit 21cff6dd2604ac705d956cb0ff454fff2e80fa8b > Author: Matthew Dillon > Date: Thu Aug 1 10:51:55 2019 -0700 > > kernel - Enable busmaster on bridges (BIOS might not) > > * BIOSes do not always enable

Re: git: kernel - Change tcp keepalive options from ms to seconds (DISRUPTIVE)

2019-06-25 Thread Sepherosa Ziehau
; -Matt > > On Tue, Jun 25, 2019 at 6:02 PM Sepherosa Ziehau wrote: >> >> Can we bump kernel version for this? We have patched curl and nginx >> for the milliseconds TCP_KEEP for a while. >> >> On Wed, Jun 26, 2019 at 1:36 AM Matthew Dillon >> wrote: &g

Re: git: kernel - Change tcp keepalive options from ms to seconds (DISRUPTIVE)

2019-06-25 Thread Sepherosa Ziehau
Can we bump kernel version for this? We have patched curl and nginx for the milliseconds TCP_KEEP for a while. On Wed, Jun 26, 2019 at 1:36 AM Matthew Dillon wrote: > > > commit 21cc1bcd83e176f19a8cf97bb452bab8bc29b849 > Author: Matthew Dillon > Date: Tue Jun 25 10:33:22 2019 -0700 > >

git: em/emx/igb: Merge Intel em-7.7.4 and igb-2.5.6

2019-05-31 Thread Sepherosa Ziehau
commit 65aebe9f9faf98a2c7eaca700e786d06c34a9929 Author: Sepherosa Ziehau Date: Sun Mar 3 20:51:53 2019 +0800 em/emx/igb: Merge Intel em-7.7.4 and igb-2.5.6 Most noticeably added I219 V6/V7 support for em/emx. Summary of changes: sys/dev/netif/em/if_em.c | 21

git: ix: Sync with Intel ixgbe-3.3.6

2019-03-03 Thread Sepherosa Ziehau
commit dd5ce676d9b4496101d795200cb99fd0ddf5b254 Author: Sepherosa Ziehau Date: Mon Feb 25 23:03:32 2019 +0800 ix: Sync with Intel ixgbe-3.3.6 - Honor VLAN_HWTAGGING setting when setup RX VLAN tag stripping. - Add workaround for possible FW hang on X550. Summary of changes

git: netif/re: Sync with Realtek's re-1.95.

2019-02-24 Thread Sepherosa Ziehau
commit e0c32883654687d1ac772588375d21d5639f899f Author: Sepherosa Ziehau Date: Sat Feb 16 19:42:32 2019 +0800 netif/re: Sync with Realtek's re-1.95. Mainly fix some register settings. Summary of changes: sys/dev/netif/re/re.c | 322

Re: git: rc.d/sysctl: Only set a sysctl when give a new value

2019-02-12 Thread Sepherosa Ziehau
Thank you! On Mon, Feb 4, 2019 at 1:34 PM Aaron LI wrote: > > > commit dcd3d479354e1d254b02314765c7c397b2c35ea0 > Author: Aaron LI > Date: Mon Feb 4 13:22:02 2019 +0800 > > rc.d/sysctl: Only set a sysctl when give a new value > > For a sysctl, compare the given value with its current

Re: git: rc.d/sysctl: Rewrite to be more robust and clean

2019-02-01 Thread Sepherosa Ziehau
On Fri, Feb 1, 2019 at 9:59 PM Aaron LI wrote: > > Quoting Sepherosa Ziehau (2019-02-01 21:33:18) > > Please check fix this commit, there are several unexpected effects of > > this commit: > > - Extra original value printed on the screen, when this script is run. > &

Re: git: rc.d/sysctl: Rewrite to be more robust and clean

2019-02-01 Thread Sepherosa Ziehau
Please check fix this commit, there are several unexpected effects of this commit: - Extra original value printed on the screen, when this script is run. Before this change, a=`cmd` will not print anything on the screen. - It looks after or during "TCP options" sysctl, this script is invoked again

git: atomic: Alway use inline functions.

2019-01-27 Thread Sepherosa Ziehau
commit 030e3428e0c23c47cef4dfab51f988a8fa665d19 Author: Sepherosa Ziehau Date: Sun Jan 27 22:06:08 2019 +0800 atomic: Alway use inline functions. Originally only builtin functions use the inline version of the atomic ops, while modules only use real function call, which

git: inet: Recalculate the packet hash for IP encapsulation.

2018-11-20 Thread Sepherosa Ziehau
commit f461bb6ac7b62ba79a9ab3684356ec87cbd0aa7a Author: Sepherosa Ziehau Date: Tue Nov 20 21:13:18 2018 +0800 inet: Recalculate the packet hash for IP encapsulation. Some NICs, noticeably igb(4) and ix(4), calculate the packet hash based on the encapsulated IP datagram

git: stf/gre: Make sure the input packet's hash is recalculated.

2018-11-20 Thread Sepherosa Ziehau
commit 769c79ae8611589331015bd353dd226bf8dc5a47 Author: Sepherosa Ziehau Date: Tue Nov 20 20:39:47 2018 +0800 stf/gre: Make sure the input packet's hash is recalculated. Summary of changes: sys/net/stf/if_stf.c | 1 + sys/netinet/ip_gre.c | 1 + 2 files changed, 2 insertions(+) http

git: inet6: Set net.inet6.icmp6.nd6_onlink_ns_rfc4861 to 1 by default.

2018-11-19 Thread Sepherosa Ziehau
commit dacc7c6d446de2e33703da70f21c43aeb80c096d Author: Sepherosa Ziehau Date: Mon Nov 19 21:50:15 2018 +0800 inet6: Set net.inet6.icmp6.nd6_onlink_ns_rfc4861 to 1 by default. It is almost required by contemporary INET6 deployment. Summary of changes: sys/netinet6/in6_proto.c

git: inet6: Make non-prefix and directly reachable inet6 routes work (2).

2018-11-19 Thread Sepherosa Ziehau
commit 2183ee934c217110d448883308b631284047b927 Author: Sepherosa Ziehau Date: Mon Nov 19 21:45:30 2018 +0800 inet6: Make non-prefix and directly reachable inet6 routes work (2). Generalize "non-prefix and directly reachable" inet6 routes lookup, instead of sp

Re: git: pf: Allow disappearing or not yet existing interfaces for ALTQ

2018-08-08 Thread Sepherosa Ziehau
That's fine w/ me too. On Thu, Aug 9, 2018 at 9:23 AM, Aaron LI wrote: > Thanks for the explanation. > > As you said we don't have the issue that this commit is intended to fix, I'd > revert the whole commit, OK? > > > > On Thu, 9 Aug 2018 09:05:18 +0800 > Sepherosa

Re: git: pf: Allow disappearing or not yet existing interfaces for ALTQ

2018-08-08 Thread Sepherosa Ziehau
Please backout the "simplify the ifnet_unlock" part. The original protection range is used to make sure that the ifp does not get ripped out behind our back. To be frank, we don't even suffer the issue this fix is intended to address; it only makes the code convoluted. On Wed, Aug 8, 2018 at

git: mbuf: Reduce objcache name verbosity.

2018-07-21 Thread Sepherosa Ziehau
commit baf09c858b84cca958c1f7adeb82d97171d8003b Author: Sepherosa Ziehau Date: Sat Jul 21 16:58:49 2018 +0800 mbuf: Reduce objcache name verbosity. Summary of changes: sys/kern/uipc_mbuf.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) http

git: vmstat: Add -o option to report objcache usage.

2018-07-21 Thread Sepherosa Ziehau
commit f4a28304f7945aad66ec0f57694d00dc0e419189 Author: Sepherosa Ziehau Date: Sat Jul 21 16:59:14 2018 +0800 vmstat: Add -o option to report objcache usage. Summary of changes: usr.bin/vmstat/vmstat.8 | 5 - usr.bin/vmstat/vmstat.c | 51

git: objcache: Add sysctl to expose objcache statistics.

2018-07-21 Thread Sepherosa Ziehau
commit c6bb9a9028d40ac817af6383d35164370e6480be Author: Sepherosa Ziehau Date: Sat Jul 21 16:07:13 2018 +0800 objcache: Add sysctl to expose objcache statistics. Summary of changes: sys/kern/kern_objcache.c | 80 ++-- sys/sys/objcache.h

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Sepherosa Ziehau
Well, I don't think if_alloc makes sense for Dfly. But if you have already changed some code, then let it be. On Fri, Jul 20, 2018 at 11:19 AM, Aaron LI wrote: > On Fri, 20 Jul 2018 10:43:16 +0800 > Sepherosa Ziehau wrote: > >> On Fri, Jul 20, 2018 at 10:19 AM, Aaron LI wrote:

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Sepherosa Ziehau
On Fri, Jul 20, 2018 at 10:19 AM, Aaron LI wrote: > On Fri, 20 Jul 2018 09:40:21 +0800 > Sepherosa Ziehau wrote: > >> Most of the physical drivers are ethernet ones, so they need arpcom; >> please do w/ care. > > Sure, I have to understand the drivers more before real

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Sepherosa Ziehau
: > On Fri, 20 Jul 2018 09:09:07 +0800 > Sepherosa Ziehau wrote: > >> Just panic if_com_alloc[type]() fails. >> > > Ok, I'll do it. I'll also look at the drivers to make them use if_alloc() > and if_free() when appropriate. > > > Cheers, > -- > Aaron -- Tomorrow Will Never Die

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Sepherosa Ziehau
Just panic if_com_alloc[type]() fails. On Thu, Jul 19, 2018 at 5:20 PM, Aaron LI wrote: > On Thu, 19 Jul 2018 17:00:44 +0800 > Sepherosa Ziehau wrote: > >> How about move the following logic into if_alloc(): >> >> + ifp = sc->tun_ifp = if_alloc(IFT_PP

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Sepherosa Ziehau
How about move the following logic into if_alloc(): + ifp = sc->tun_ifp = if_alloc(IFT_PPP); + if (ifp == NULL) + /* XXX: should return an error */ + panic("%s%d: failed to if_alloc() interface", TUN, minor(dev)); i.e. if_alloc never fails. On Thu, Jul

Re: git: if_tap: Get rid of arpcom struct from tap_softc struct

2018-07-17 Thread Sepherosa Ziehau
struct type casting'? > > (3) As the above 'XXX' comments say, how to clean up the drivers? Will it be > complicated? I can work on this. > > Cheers, > -- > Weitian > > > On Tue, 17 Jul 2018 16:16:58 +0800 > Sepherosa Ziehau wrote: > >> You are breaking the e

Re: git: if_tap: Get rid of arpcom struct from tap_softc struct

2018-07-17 Thread Sepherosa Ziehau
You are breaking the ether_ifattach() of the tap interface; last time I checked, this will break IPv6 stuff too, which assume the existence of arpcom. On Tue, Jul 17, 2018 at 2:58 PM, Aaron LI wrote: > > commit 78e1ab4a8fc0074361116dedb55e6dc02baea351 > Author: Aaron LI > Date: Sun Jul 8

git: objcache: Add stat counting # of exhaustion.

2018-07-04 Thread Sepherosa Ziehau
commit da22de6fac338f5f0018c37e1226acbd5c5329e9 Author: Sepherosa Ziehau Date: Wed Jul 4 23:10:20 2018 +0800 objcache: Add stat counting # of exhaustion. Use it to supress exhaustion warning; nuke no longer used 'exhausted' field in objcache struct. Summary of changes: sys

git: objcache: Move rarely used but useful bits into their own structure.

2018-07-04 Thread Sepherosa Ziehau
commit 5b694eaf215fbbc721126cfe33a79d73874e2079 Author: Sepherosa Ziehau Date: Wed Jul 4 22:57:56 2018 +0800 objcache: Move rarely used but useful bits into their own structure. Summary of changes: sys/kern/kern_objcache.c | 48 ++-- 1 file

git: objcache: Use u_long for stats.

2018-07-04 Thread Sepherosa Ziehau
commit b5d55e77d718bbd7a8710f43b35033b5cf6e8671 Author: Sepherosa Ziehau Date: Wed Jul 4 22:17:05 2018 +0800 objcache: Use u_long for stats. Add a new stat to count # of allocation. Summary of changes: sys/kern/kern_objcache.c | 12 1 file changed, 8 insertions

git: objcache: Fix comment indentation.

2018-07-03 Thread Sepherosa Ziehau
commit 75eeb06a5467e614c7064c88bcb0c23dc2964b0d Author: Sepherosa Ziehau Date: Tue Jul 3 22:52:30 2018 +0800 objcache: Fix comment indentation. Summary of changes: sys/kern/kern_objcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org

git: objcache: Use __predict for predictable conditions.

2018-07-03 Thread Sepherosa Ziehau
commit c5ec33501b3a6b077d5d0fa6197e5f4e68806575 Author: Sepherosa Ziehau Date: Tue Jul 3 22:46:22 2018 +0800 objcache: Use __predict for predictable conditions. Summary of changes: sys/kern/kern_objcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http

git: objcache: Fix comment style

2018-07-02 Thread Sepherosa Ziehau
commit 114b500dc2de07666a1e6a8ddc4220a336921ec1 Author: Sepherosa Ziehau Date: Mon Jul 2 23:55:41 2018 +0800 objcache: Fix comment style Summary of changes: sys/kern/kern_objcache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git

git: objcache: Constify object cache name.

2018-07-02 Thread Sepherosa Ziehau
commit 3a564f150428cbdd7cce4482dfb701493ea7e6cd Author: Sepherosa Ziehau Date: Mon Jul 2 23:05:07 2018 +0800 objcache: Constify object cache name. Summary of changes: sys/kern/kern_objcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org

git: x86_64: Eanble X2APIC if it is available.

2018-06-19 Thread Sepherosa Ziehau
commit e87f025fbe766c078d1968b6fbc090f54c8f8a2c Author: Sepherosa Ziehau Date: Tue Jun 19 21:16:20 2018 +0800 x86_64: Eanble X2APIC if it is available. Summary of changes: sys/platform/pc64/apic/lapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http

git: DragonFly_RELEASE_5_2 re: MACFG50 requires defragmentation in software, but no padding for runt.

2018-06-15 Thread Sepherosa Ziehau
commit f4df103439d9bacf98a17533e1c332d29faa741d Author: Sepherosa Ziehau Date: Sat Jun 9 19:45:55 2018 +0800 re: MACFG50 requires defragmentation in software, but no padding for runt. Reported-by: YONETANI Tomokazu Tested-by: YONETANI Tomokazu Summary of changes: sys/dev

git: re: MACFG50 requires defragmentation in software, but no padding for runt.

2018-06-09 Thread Sepherosa Ziehau
commit 52bafeb87eb4e09703b6a87d6f2664e524c991d4 Author: Sepherosa Ziehau Date: Sat Jun 9 19:45:55 2018 +0800 re: MACFG50 requires defragmentation in software, but no padding for runt. Reported-by: YONETANI Tomokazu Tested-by: YONETANI Tomokazu Summary of changes: sys/dev

git: x86_64: Implement x2apic support.

2018-06-08 Thread Sepherosa Ziehau
commit f89b4a45c33ccb84eab6ec70ca37a5b9e33e5a81 Author: Sepherosa Ziehau Date: Tue Jun 5 23:03:46 2018 +0800 x86_64: Implement x2apic support. Now LAPIC registers are accessed through MSR at fixed location, instead of going through MMIO region. Most noticeable

git: x86_64: Prepare for x2apic support.

2018-06-05 Thread Sepherosa Ziehau
commit 8afc0c3d245781786d80df73e9bcc25b531a96b1 Author: Sepherosa Ziehau Date: Sun Jun 3 18:15:52 2018 +0800 x86_64: Prepare for x2apic support. - Use macro to access and modify LAPIC registers. - Use function pointers for hot LAPIC operation, i.e. IPI and timer

git: x86_64/lapic: Use function pointer for EOI.

2018-05-14 Thread Sepherosa Ziehau
commit 3c38fc608f7d9d68b18b2e437a14d4365725691d Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Mon May 14 22:35:04 2018 +0800 x86_64/lapic: Use function pointer for EOI. This helps upcoming X2APIC support and virtualization EOI optmization, e.g. Hyper

git: igb: Dump registers.

2018-05-07 Thread Sepherosa Ziehau
commit ade22a840f9e1750ae3039766378f0a15eb06f36 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Mon May 7 22:55:46 2018 +0800 igb: Dump registers. This helps debugging. Obtained-from: dillon Summary of changes: sys/dev/netif/igb/if_igb.c

git: igb: Bring in WOL configuration from FreeBSD.

2018-05-01 Thread Sepherosa Ziehau
commit e13f6b17d3e877bef9869d8f886dff4cb293b359 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue May 1 20:11:33 2018 +0800 igb: Bring in WOL configuration from FreeBSD. This does _not_ fix rebooting issue on certain LOM. Tested-by: dillon Obtaine

git: DragonFly_RELEASE_5_2 netgraph7: Protect so_rcv properly

2018-05-01 Thread Sepherosa Ziehau
commit 051ed00586f772a5cd492339396309c112e25c21 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue May 1 19:49:59 2018 +0800 netgraph7: Protect so_rcv properly Reported-by:Markus Pfeiffer <markus.pfeif...@morphism.de> Tested-by: Markus Pfeiffer &

git: netgraph7: Protect so_rcv properly

2018-05-01 Thread Sepherosa Ziehau
commit 593159d8177f58763dd0a8a323456a84ee03e574 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue May 1 19:49:59 2018 +0800 netgraph7: Protect so_rcv properly Reported-by:Markus Pfeiffer <markus.pfeif...@morphism.de> Tested-by: Markus Pfeiffer &

git: DragonFly_RELEASE_5_2 x86_64/ioapic: Make sure that legacy IRQ only appears on one CPU.

2018-04-23 Thread Sepherosa Ziehau
commit af4982b6e71e23514428c9c7755335f2f15f2e23 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Mon Apr 23 22:15:44 2018 +0800 x86_64/ioapic: Make sure that legacy IRQ only appears on one CPU. The legacy IRQ lookup assumes only one CPU has a given lega

git: DragonFly_RELEASE_5_2 inet6/pim: Return IPPROTO_DONE if the mbuf is freed.

2018-04-23 Thread Sepherosa Ziehau
commit 3498437bdd63ffbd987f722ffa5396820e0a6c3e Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue Apr 17 21:33:59 2018 +0800 inet6/pim: Return IPPROTO_DONE if the mbuf is freed. This prevents the caller from using the freed mbuf. Obtained-from: NetB

git: x86_64/ioapic: Make sure that legacy IRQ only appears on one CPU.

2018-04-23 Thread Sepherosa Ziehau
commit cd1bb88624164ecf3055f21908751c33dbf759b3 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Mon Apr 23 22:15:44 2018 +0800 x86_64/ioapic: Make sure that legacy IRQ only appears on one CPU. The legacy IRQ lookup assumes only one CPU has a given lega

git: inet6/pim: Return IPPROTO_DONE if the mbuf is freed.

2018-04-17 Thread Sepherosa Ziehau
commit d41f11ec90b6a23f083e461bec30c4530fb8b624 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue Apr 17 21:33:59 2018 +0800 inet6/pim: Return IPPROTO_DONE if the mbuf is freed. This prevents the caller from using the freed mbuf. Obtained-from: NetB

Re: git: [test] Hi Fred :-)

2018-03-25 Thread Sepherosa Ziehau
Welcome! On Sun, Mar 25, 2018 at 8:30 PM, Aaron LI wrote: > > commit e58d46e2f52e22ae69dac33dd1121535b6f24792 > Author: Aaron LI > Date: Sun Mar 25 20:27:26 2018 +0800 > > [test] Hi Fred :-) > > Summary of changes: > test/test/test123 | 1 +

git: if: Remove ifq maxlen fixup in ifinit.

2018-02-10 Thread Sepherosa Ziehau
commit 50112116256bf7beb6848c01f4bf52a0a0bc2d83 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sat Feb 10 08:19:49 2018 +0800 if: Remove ifq maxlen fixup in ifinit. It will not work, and no drivers in the base require this kind of fixup. Summary of changes: sys/ne

git: ipfw: Add icmpcodes support.

2018-01-16 Thread Sepherosa Ziehau
commit bd3c67c0d566d63cb66697206eb49208a9e0f7b9 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue Jan 16 13:07:14 2018 +0800 ipfw: Add icmpcodes support. Summary of changes: sbin/ipfw/ipfw.8 | 9 - sbin/ipfw/ipfw2.c | 31 +++---

git: ipfw: ICMP_MAXTYPE could be any value; don't assume it's < 32

2018-01-06 Thread Sepherosa Ziehau
commit ad1a6a876841bdd46c86a4061d33ed37c24a88fe Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sat Jan 6 13:03:41 2018 +0800 ipfw: ICMP_MAXTYPE could be any value; don't assume it's < 32 It is 40 as of this commit. Summary of changes: sys/net/ipfw/ip_fw2.c

git: ipfw: Support all possible ICMP types.

2018-01-06 Thread Sepherosa Ziehau
commit 4ef0ed9b3a8494fd33b8990523f5054dd023f4f3 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sat Jan 6 12:58:02 2018 +0800 ipfw: Support all possible ICMP types. Summary of changes: sbin/ipfw/ipfw.8 | 4 ++-- sbin/ipfw/ipfw2.c

git: ipfw.8: Reset do_pipe and do_table.

2018-01-06 Thread Sepherosa Ziehau
commit f3e09d526b2d2dc15abf67ab40801115c2a8b66d Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sat Jan 6 11:48:12 2018 +0800 ipfw.8: Reset do_pipe and do_table. Since ipfw_main could be called in a loop, if the rules are loaded from file. Summary of changes:

git: ipfw: Define instruction size max.

2018-01-06 Thread Sepherosa Ziehau
commit 9f091cb6ea4a4b41b2640efda4fd2f50a559cf47 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sat Jan 6 11:35:53 2018 +0800 ipfw: Define instruction size max. Summary of changes: sys/net/ipfw/ip_fw2.h | 2 ++ 1 file changed, 2 insertions(+) http://gitweb.dragonflyb

git: ipfw.8: Fix 'not [iface]' and 'not [iface:net]' support

2018-01-03 Thread Sepherosa Ziehau
commit aac6867447e8ac9464fe940d65c71793f75ff891 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Wed Jan 3 13:41:00 2018 +0800 ipfw.8: Fix 'not [iface]' and 'not [iface:net]' support Summary of changes: sbin/ipfw/ipfw2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

git: em/emx: Sync with Intel's em 7.6.2

2018-01-03 Thread Sepherosa Ziehau
commit 74dc37549af2a2c5a84a4b9aa9493437b50f294f Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sat Dec 9 12:10:25 2017 +0800 em/emx: Sync with Intel's em 7.6.2 - Fix RX filter settings when exiting promiscous mode. - Add workaround for I219 resetting. - Fi

git: socket: Use fast close if SO_LINGER and linger==0.

2017-12-26 Thread Sepherosa Ziehau
commit 27d2f9e204957dd141f6f14584f0296cc6f32d81 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue Dec 26 12:28:39 2017 +0800 socket: Use fast close if SO_LINGER and linger==0. It is widely used to reset TCP connection by userland application. Summary of changes

git: ip: Set ip_porthash_trycount based on the # of netisrs.

2017-12-24 Thread Sepherosa Ziehau
commit 9bc6665cf4749003a6966e2e7f8f265253aa Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sun Dec 24 13:04:15 2017 +0800 ip: Set ip_porthash_trycount based on the # of netisrs. This helps on the machine w/ relative large # of netisrs. It cuts > 40% IPI

git: net: Increase max stage packet count to 16.

2017-12-23 Thread Sepherosa Ziehau
commit 335a88d5d5578c560a3a5511a7145a80e58f1896 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sat Dec 23 08:03:42 2017 +0800 net: Increase max stage packet count to 16. This increase IP forwarding rate by 200Kpps ~ 300Kpps. Normal forwarding reaches 11.3Mpps,

git: inpcb: Change how TCP local ephemeral port is selected.

2017-12-20 Thread Sepherosa Ziehau
commit 45d93a420fbdbe020514243f5457f9612b054443 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Wed Dec 20 13:28:35 2017 +0800 inpcb: Change how TCP local ephemeral port is selected. The goal should be reducing the chance of connection forwarding. However,

git: tcp: Stringent assertion for pru_connect.

2017-12-19 Thread Sepherosa Ziehau
commit 5f76b10655988b410fb57a4a15a708cb1109713e Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Tue Dec 19 13:00:51 2017 +0800 tcp: Stringent assertion for pru_connect. Summary of changes: sys/netinet/tcp_usrreq.c | 4 1 file changed, 4 insertions(+)

git: ix.4: Sort chip names.

2017-12-17 Thread Sepherosa Ziehau
commit b904a3a05740bb37635ce603c93587a95628ba42 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sun Dec 17 11:33:04 2017 +0800 ix.4: Sort chip names. Summary of changes: share/man/man4/ix.4 | 44 ++-- 1 file changed, 22 insertions(

git: igb.4: Sort chip names.

2017-12-17 Thread Sepherosa Ziehau
commit 61ebbe47081f4a20867f698690e11970b6c1b391 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sun Dec 17 11:36:49 2017 +0800 igb.4: Sort chip names. Summary of changes: share/man/man4/igb.4 | 44 ++-- 1 file changed, 22 insertions(

git: igb: Sync with Intel's igb 2.5.3

2017-12-16 Thread Sepherosa Ziehau
commit a40fda399ef8e4f13cb25c742431b47c46fd0e0b Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sun Dec 3 01:43:05 2017 +0800 igb: Sync with Intel's igb 2.5.3 - Enable RX packets dropping, if flow control is disabled. - Clear bad data at chip initializatio

git: syscons: Unbreak compile w/o splash

2017-12-02 Thread Sepherosa Ziehau
commit 8f523d1cfd67a53f8761305c69f21ebdd7dc0994 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sun Dec 3 01:13:43 2017 +0800 syscons: Unbreak compile w/o splash Summary of changes: sys/dev/misc/syscons/syscons.c | 34 +- 1 file chang

git: ix: Sync with Intel's ix-3.2.17.

2017-11-28 Thread Sepherosa Ziehau
commit 6150453f26f6ee01b60ce647b20bc8afcfc71c8e Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Sun Nov 12 06:26:56 2017 +0800 ix: Sync with Intel's ix-3.2.17. - Add several new chips. - Add software workaround for 82598 errata #26. Summary of changes: share/ma

Re: git: test - Test commit.

2017-11-15 Thread Sepherosa Ziehau
Welcome! On Wed, Nov 15, 2017 at 5:13 PM, Peeter Must wrote: > > commit 050ca650d6e457795bc7b967771621c5a4165623 > Author: Peeter Must > Date: Wed Nov 15 10:54:05 2017 +0200 > > test - Test commit. > > Summary of changes: >

git: re: Sync with Realtek's re-1.94

2017-11-10 Thread Sepherosa Ziehau
commit e6e07291f7457e3a088eb0f6540d9921124bbb59 Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Wed Oct 18 21:08:47 2017 +0800 re: Sync with Realtek's re-1.94 Add two more chips' support. Tested-by: zrj, Daniel Bilik Summary of changes: sys/dev/netif/re/i

git: bus: Properly implement bus_space_{map,unmap}()

2017-11-10 Thread Sepherosa Ziehau
commit fbd572544e6702d3d424dd3beb35dfff02c8d62e Author: Sepherosa Ziehau <se...@dragonflybsd.org> Date: Mon Nov 6 21:24:23 2017 +0800 bus: Properly implement bus_space_{map,unmap}() Summary of changes: sys/cpu/x86_64/include/bus_dma.h | 26 +++--

  1   2   3   4   5   6   7   8   9   10   >