Re: ICMP6

2024-06-07 Thread Zhenlei Huang
> On Jun 7, 2024, at 4:10 PM, Marek Zarychta > wrote: > > Invaluable Committers, Dear Subscribers, > > I found Gleb's fixes to ICMP6 error rate limiting extremely useful, > especially since this limiting is not working at all in stable/14 (as far as > I was able to test). It looks to me

Re: ifp gone in ip6_output() -> panic

2024-05-22 Thread Zhenlei Huang
> On May 22, 2024, at 12:17 PM, Bjoern A. Zeeb > wrote: > > Hi, > > sorry, I cannot dump; this is a diskless and netdump does not do IPv6; > needless to say that would be funny in this case anyway; unfortunately > I have also already re-compiled the kernel so I can only look things up >

Re: ipv4 route with ipv6 local link nexthop ?

2024-03-22 Thread Zhenlei Huang
.cgi?id=275341> . 1. https://www.freebsd.org/releases/14.1R/schedule/ Best regards, Zhenlei > > Benoît > On Thursday, March 14th, 2024 at 10:56, Zhenlei Huang > wrote: >> >> >>> On Mar 14, 2024, at 9:04 AM, Zhenlei Huang >> <mailto:z...@freebsd.o

Re: ipv4 route with ipv6 local link nexthop ?

2024-03-14 Thread Zhenlei Huang
> On Mar 14, 2024, at 9:04 AM, Zhenlei Huang wrote: > > > >> On Mar 14, 2024, at 3:07 AM, Marek Zarychta > <mailto:zarych...@plan-b.pwste.edu.pl>> wrote: >> >> W dniu 13.03.2024 o 18:59, Marek Zarychta pisze: >>> W dniu 13.03.2024

Re: ipv4 route with ipv6 local link nexthop ?

2024-03-13 Thread Zhenlei Huang
> On Mar 14, 2024, at 3:07 AM, Marek Zarychta > wrote: > > W dniu 13.03.2024 o 18:59, Marek Zarychta pisze: >> W dniu 13.03.2024 o 16:31, Benoit Chesneau pisze: >>> Hrm I thought it was implemented via >>> https://reviews.freebsd.org/rG62e1a437f3285e785d9b35a476d36a469a90028d >>> >>> Wasn't

Re: ipv4 route with ipv6 local link nexthop ?

2024-03-13 Thread Zhenlei Huang
> On Mar 13, 2024, at 9:09 PM, Zhenlei Huang wrote: > > > >> On Mar 13, 2024, at 12:19 PM, Zhenlei Huang > <mailto:z...@freebsd.org>> wrote: >> >> >> >>> On Mar 13, 2024, at 4:36 AM, Benoit Chesneau >> <mailto:beno...@enki-

Re: ipv4 route with ipv6 local link nexthop ?

2024-03-13 Thread Zhenlei Huang
> On Mar 13, 2024, at 12:19 PM, Zhenlei Huang wrote: > > > >> On Mar 13, 2024, at 4:36 AM, Benoit Chesneau > <mailto:beno...@enki-multimedia.eu>> wrote: >> >> On latest freebsd 14.0 release , I am trying to join an ipv4 address over an >

Re: ipv4 route with ipv6 local link nexthop ?

2024-03-12 Thread Zhenlei Huang
> On Mar 13, 2024, at 4:36 AM, Benoit Chesneau > wrote: > > On latest freebsd 14.0 release , I am trying to join an ipv4 address over an > IPV6 local link using the following command : > > `route add -net 10.200.1.1/32 -inet6 fe80::9439:36ff:fef0:7cbd%vlan200` > > But I get the following

Re: Anyway way to set an interface IP not reassigned during netif ?

2024-02-17 Thread Zhenlei Huang
> On Feb 4, 2024, at 5:58 PM, Benoit Chesneau > wrote: > > Im' using the machine as a gateway and use one of the interface as an OOB > access to the applications. I should be able to launch automated commands to > re-configure the applications an other network interfaces from this OOB >

Re: problem with ixl(4) and vlans

2024-01-24 Thread Zhenlei Huang
> On Jan 23, 2024, at 11:03 PM, Daniel wrote: > > Hi List, > > > just recently I discovered a problem with the ixl(4) driver. Hopefully > someone here can help me. my setup is as follows: > > > Network - ixl3 interface - ixl3.15 vlan interface - bridge0 - > vnet0.1 to

Re: /etc/hosts doesn't work in jails?

2024-01-07 Thread Zhenlei Huang
> On Jan 8, 2024, at 4:05 AM, Yuri wrote: > > For some mysterious reason github.com can't be connected to from my network > because the IP address that DNS returns is unreachable. > > > > Setting the new resolution rules in /etc/hosts works on the base host: > > 140.82.112.4

Re: mlx5 fails to attach after STABLE-14 source upgrade

2023-12-03 Thread Zhenlei Huang
> On Dec 2, 2023, at 3:29 AM, Dries Michiels wrote: > > > > After updating my STABLE-14 machine from somewhere quite recently (my old > kernel that boots without error is from 14-n265716-bd7dceb27c08 somewhere > previous saturday). > The new kernel that didn't boot was from Commit >

Re: How to tell if a network interface was renamed (and from what)

2023-11-19 Thread Zhenlei Huang
> On Nov 20, 2023, at 5:35 AM, Mina Galić wrote: > > Hi Zhenlei, > > >> Since it is just for physical devices, may I propose to have the driver name >> in their groups ? >> >> So an if_ure interface ue0 will look like: >> >> ``` >> ue0: flags=1008843 metric 0 >> mtu 1500 >> >>

Re: How to tell if a network interface was renamed (and from what)

2023-11-19 Thread Zhenlei Huang
> On Nov 19, 2023, at 10:34 PM, Mina Galić wrote: > > > >>> FreeBSD currently does not preserve the old ( original ) name of >>> interfaces if it is renamed ( either physical or cloned ones ). >>> While there's an attempt https://reviews.freebsd.org/D28247 >>> to get the device name

Re: How to tell if a network interface was renamed (and from what)

2023-11-18 Thread Zhenlei Huang
> On Nov 19, 2023, at 6:20 AM, Mina Galić wrote: > > Hi folks, > > Linux has an "easy" way of telling if an interface has been renamed. > See cloud-init's is_renamed function: >

Re: Request for Testing: TCP RACK

2023-11-18 Thread Zhenlei Huang
> On Nov 19, 2023, at 2:35 AM, Zhenlei Huang wrote: > > > >> On Nov 16, 2023, at 5:13 PM, tue...@freebsd.org wrote: >> >> Dear all, >> >> recently the main branch was changed to build the TCP RACK stack >> which is a loadable kernel mod

Re: Request for Testing: TCP RACK

2023-11-18 Thread Zhenlei Huang
> On Nov 16, 2023, at 5:13 PM, tue...@freebsd.org wrote: > > Dear all, > > recently the main branch was changed to build the TCP RACK stack > which is a loadable kernel module, by default: > https://cgit.FreeBSD.org/src/commit/?id=3a338c534154164504005beb00a3c6feb03756cc > > As discussed on

Re: loopback and IP source

2023-11-11 Thread Zhenlei Huang
> On Nov 11, 2023, at 5:56 PM, Benoit Chesneau > wrote: > > Is there a way to ensure that the IP set in loopback on the rc.conf is always > used as source for routing. I setup it like this: > > ``` > cloned_interfaces="lo1" > ifconfig_lo1="inet 195.24.245.226/32 up" >

Re: fib6_lookup() returning deleted struct ifnet

2023-10-25 Thread Zhenlei Huang
> On Oct 25, 2023, at 11:27 PM, Kristof Provost wrote: > > Hi, > > Several pfSense users report IPv6-related panics when an interface is deleted. > The relevant bug reports are https://redmine.pfsense.org/issues/14164 > and >

Re: About IFNET_PCP_NONE

2023-08-29 Thread Zhenlei Huang
> On Aug 29, 2023, at 9:23 AM, Konstantin Belousov wrote: > > On Mon, Aug 28, 2023 at 10:25:01PM +0800, Zhenlei Huang wrote: >> >> >>> On Aug 28, 2023, at 3:54 PM, Konstantin Belousov >>> wrote: >>> >>> On Mon, Aug 28, 2023 at

Re: About IFNET_PCP_NONE

2023-08-28 Thread Zhenlei Huang
> On Aug 28, 2023, at 3:54 PM, Konstantin Belousov wrote: > > On Mon, Aug 28, 2023 at 09:51:38AM +0800, Zhenlei Huang wrote: >> Hi Konstantin, >> >> >> I was just about going to open a PR for https://reviews.freebsd.org/D39536 >> and >> rea

About IFNET_PCP_NONE

2023-08-27 Thread Zhenlei Huang
Hi Konstantin, I was just about going to open a PR for https://reviews.freebsd.org/D39536 and realized I might made wrong assumption. I thought IFNET_PCP_NONE is something like IEEE8021Q_PCP_BE but I second why not use IEEE8021Q_PCP_BE but a new const IFNET_PCP_NONE. So despite its naming

Re: how to increase the vnet speed?

2023-05-23 Thread Zhenlei Huang
> On May 24, 2023, at 5:15 AM, Marko Zec wrote: > > On Tue, 23 May 2023 19:58:07 + > Benoit Chesneau wrote: > >> Hi all, >> >> I've created a jail using bastille and setup network. The mainin >> terface is a 25Gbps nic and between hosts I get 24.6 Gbits/sec : > > [...] > >> But

[Differential] D7710: net/vlan: Shift for pri is 13 (pri mask 0xe000) not 1.

2023-04-11 Thread zlei (Zhenlei Huang)
zlei added inline comments. Herald added subscribers: melifaro, ae, imp. INLINE COMMENTS > ethernet.h:95 > #define EVL_MAKETAG(vlid, pri, cfi) > \ > - ((pri) & 7) << 1) | ((cfi) & 1)) << 12) | ((vlid) & EVL_VLID_MASK)) > `pri` is indeed shift

Re: Help testing patch that may help diagnosing the PR 240106

2023-03-29 Thread Zhenlei Huang
leng/13.2, releng/13.1 and stable/12 branches. You can do it on whichever branch convenient for you ;) > > -kvs > > > On 3/29/23 00:05, Zhenlei Huang wrote: >> >>> On Mar 29, 2023, at 1:03 PM, Zhenlei Huang wrote: >>> >>> Hi, >>>

Re: Help testing patch that may help diagnosing the PR 240106

2023-03-28 Thread Zhenlei Huang
> On Mar 29, 2023, at 1:03 PM, Zhenlei Huang wrote: > > Hi, > > I write here so that the original PR 240106 is not polluted. > > Can you please test the attached patch with bridge / lagg setup? > > For long: > > In https://bugs.freebsd.org/bugzil

Help testing patch that may help diagnosing the PR 240106

2023-03-28 Thread Zhenlei Huang
Hi, I write here so that the original PR 240106 is not polluted. Can you please test the attached patch with bridge / lagg setup? For long: In https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240106#c28 you encountered problem and I said: > The IF_BRIDGE(4) seems to hide some thing to

Re: assigning different TCP stacks to the jails

2023-03-20 Thread Zhenlei Huang
> On Mar 20, 2023, at 1:35 AM, tue...@freebsd.org wrote: > >> On 19. Mar 2023, at 16:59, Marek Zarychta >> wrote: >> >> W dniu 19.03.2023 o 14:42, tue...@freebsd.org pisze: On 19. Mar 2023, at 14:12, Marek Zarychta wrote: Dear subscribers of the list, TCP

Re: Propose a new stage `vnet_shutdown` before `vnet_destroy`

2023-01-06 Thread Zhenlei Huang
> On Dec 19, 2022, at 1:44 AM, James Gritton wrote: > > On 2022-12-18 00:01, Zhenlei Huang wrote: >> I'm currently working on route nexthop caching feature for tunneling >> interfaces such as >> if_gif, if_gre, if_vxlan, and potentially if_wg. I encounter a n

Propose a new stage `vnet_shutdown` before `vnet_destroy`

2022-12-18 Thread Zhenlei Huang
Hi, I'm currently working on route nexthop caching feature for tunneling interfaces such as if_gif, if_gre, if_vxlan, and potentially if_wg. I encounter a nasty bug related to VNET lifecycle. More preciously I'd like to call `rib_unsubscribe()` to unsubscribe route event when the interface

Re: ICMPv6 over lo0

2022-11-16 Thread Zhenlei Huang
> On Nov 16, 2022, at 11:19 AM, Zhenlei Huang wrote: > >> >> On Nov 16, 2022, at 5:14 AM, tue...@freebsd.org wrote: >> >> Dear all, >> >> when using the master branch of today (or 13.1) I get when running >> >> tuexen@ampere128:~ % ping

Re: ICMPv6 over lo0

2022-11-15 Thread Zhenlei Huang
> On Nov 16, 2022, at 5:14 AM, tue...@freebsd.org wrote: > > Dear all, > > when using the master branch of today (or 13.1) I get when running > > tuexen@ampere128:~ % ping6 -c 1 -b 3 -s 2 ::1 > PING6(20048=40+8+2 bytes) ::1 --> ::1 > 20008 bytes from ::1, icmp_seq=0 hlim=64

Re: Too aggressive TCP ACKs

2022-11-10 Thread Zhenlei Huang
gns with this there. Subscribed. > > Richard > > > > From: owner-freebsd-...@freebsd.org <mailto:owner-freebsd-...@freebsd.org> > mailto:owner-freebsd-...@freebsd.org>> On > Behalf Of Zhenlei Huang > Sent: Donnerstag, 10. November 2022 09:07 > T

Re: Too aggressive TCP ACKs

2022-11-10 Thread Zhenlei Huang
> On Nov 10, 2022, at 5:28 PM, tue...@freebsd.org wrote: > >> On 10. Nov 2022, at 08:07, Zhenlei Huang wrote: >> >>> On Nov 9, 2022, at 11:18 AM, Zhenlei Huang wrote: >>> >>> >>>> On Oct 22, 2022, at 6:14 PM, Hans Petter Sela

Re: Too aggressive TCP ACKs

2022-11-10 Thread Zhenlei Huang
> On Nov 9, 2022, at 11:18 AM, Zhenlei Huang wrote: > > >> On Oct 22, 2022, at 6:14 PM, Hans Petter Selasky > <mailto:h...@selasky.org>> wrote: >> >> Hi, >> >> Some thoughts about this topic. > > Sorry for late response. > >&

Re: Too aggressive TCP ACKs

2022-11-08 Thread Zhenlei Huang
> On Oct 22, 2022, at 6:14 PM, Hans Petter Selasky wrote: > > Hi, > > Some thoughts about this topic. Sorry for late response. > > Delaying ACKs means loss of performance when using Gigabit TCP connections in > data centers. There it is important to ACK the data as quick as possible, to >

Re: GRE in a fib via rc.conf

2022-11-07 Thread Zhenlei Huang
> On Nov 8, 2022, at 8:26 AM, Mark Saad wrote: > > All > I am looking for some help on if my setup makes sense. > I have a vm with two interfaces. One for access to the host , we'll call this > mgmt . One for routing traffic, we'll call this routing . I want to put the > routing interface

Re: Too aggressive TCP ACKs

2022-10-21 Thread Zhenlei Huang
> On Oct 22, 2022, at 2:16 AM, Michael Tuexen <mailto:michael.tue...@lurchi.franken.de>> wrote: > >> On 21. Oct 2022, at 17:00, Zhenlei Huang > <mailto:zlei.hu...@gmail.com>> wrote: >> >> >>> On Oct 21, 2022, at 10:34 PM, Michael Tuexen &

Re: Too aggressive TCP ACKs

2022-10-21 Thread Zhenlei Huang
/716394>I thinks that's a good > starting point. Thanks! > > > -- > Cheng Cui > > From: owner-freebsd-...@freebsd.org <mailto:owner-freebsd-...@freebsd.org> > mailto:owner-freebsd-...@freebsd.org>> on > behalf of Zhenlei Huang mailto:zlei.hu..

Re: Too aggressive TCP ACKs

2022-10-21 Thread Zhenlei Huang
> On Oct 21, 2022, at 10:34 PM, Michael Tuexen > mailto:michael.tue...@lurchi.franken.de>> > wrote: > >> On 21. Oct 2022, at 16:19, Zhenlei Huang > <mailto:zlei.hu...@gmail.com>> wrote: >> >> Hi, >> >> While I was repeating

Too aggressive TCP ACKs

2022-10-21 Thread Zhenlei Huang
Hi, While I was repeating https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258755, I observed a strange behavior. The TCP ACKs from FreeBSD host are too aggressive. My setup is simple: A B [ MacOS ] <> [ FreeBSD VM ] 192.168.120.1

Re: linux debian jail - network problems

2022-03-01 Thread Zhenlei Huang
w oncompatibilities in > socket.c > > Btw: I tried to enter the link you sent and it asked for username and > password.. its not public review? > > Sami > > בתאריך יום ו׳, 25 בפבר׳ 2022, 04:18, מאת Zhenlei Huang ‏ <mailto:zlei.hu...@gmail.com>>: > Hi,

Re: Current with RSS and EPAIR and without INET6.

2022-02-27 Thread Zhenlei Huang
> On Feb 27, 2022, at 8:59 PM, Santiago Martinez wrote: > > Hi Everyone, > > While testing RSS and EPAIR I have find out that it is required to have > kernel compiled with INET6 when enabling RSS+EPAIR. > > I usually remove everything that i do not use from the kernel, like SCTP and >

Re: linux debian jail - network problems

2022-02-24 Thread Zhenlei Huang
Hi, You can also track the WIP netlink feature, https://reviews.freebsd.org/D33975 > On Feb 25, 2022, at 4:05 AM, Sami Halabi wrote: > > Hi, > Added Current, maybe will be lucky ;) > > Anyone have idea how approach and fix this? > > Sami > > בתאריך יום ג׳, 22 בפבר׳ 2022, 23:30, מאת Sami

Re: if_vlan allow to set incorrect mtu

2021-12-07 Thread Zhenlei Huang
> On Dec 7, 2021, at 5:39 AM, Marek Zarychta > wrote: > > W dniu 8.11.2021 o 08:13, Zhenlei Huang pisze: >>> On Nov 7, 2021, at 3:51 PM, Rozhuk Ivan wrote: >>> >>> Hi! >>> >>> >>> Why if_vlan allow to set same MTU size o

Re: if_vlan allow to set incorrect mtu

2021-11-07 Thread Zhenlei Huang
> On Nov 7, 2021, at 3:51 PM, Rozhuk Ivan wrote: > > Hi! > > > Why if_vlan allow to set same MTU size or bigger as on parrent nic? > > > Setup: > - workstation with MTU 9000 and IPv4 on h/w nic > - server with MTU 9000 on h/w nic and IPv4 on vlan nic with MTU 9000 (set by > defauil on