Re: How does FreeBSD expect to compete in a DPDK/VPP world?

2022-07-22 Thread Lewis Donzis
DPDK (and VPP) works fine on FreeBSD. We've been using it in our carrier products since 2015 at least, and more recently in a consumer/SMB product as well. DPDK's buffer model resembles FreeBSD's more than Linux's, and when drivers are ported to DPDK, they more often than not start with the Fr

IPv6 const addresses

2020-10-13 Thread Lewis Donzis
Hello. It appears that there are some missing definitions for a couple of the "const struct in6_addr" values that are included in in6.h. Here are the relevant declarations in /usr/include/netinet6/in6.h: extern const struct in6_addr in6addr_any; extern const struct in6_addr in6addr_loopback; ex

Re: Testing VF/PF code

2018-05-29 Thread Lewis Donzis
This may be a red herring, but we’d be happy to see VF support for VMware SR-IOV in those drivers. We did a little bit of experimenting with it, but it looked like the code was a long way from working in that environment. > On May 29, 2018, at 1:15 PM, Kevin Bowling wrote: > > iovctl worked a

Re: IP networking single socket, both IPv4 and V6?

2018-01-04 Thread Lewis Donzis
> On Jan 4, 2018, at 10:32 AM, Lewis Donzis wrote: > > On Jan 4, 2018, at 10:17 AM, Karl Denninger wrote: >> >> I've written a fair bit of code that binds to both Ipv4 and v6 for >> incoming connections, using two sockets (one for each.) >>

Re: IP networking single socket, both IPv4 and V6?

2018-01-04 Thread Lewis Donzis
On Jan 4, 2018, at 10:17 AM, Karl Denninger wrote: > > I've written a fair bit of code that binds to both Ipv4 and v6 for > incoming connections, using two sockets (one for each.) > > Perusing around the 'net I see an implementation note written by IBM > that implies that on their Unix implement

vmxnet3 driver bug?

2017-10-17 Thread Lewis Donzis
The VMXNET3 driver appears to have a bug that prevents it from correctly reporting when the link goes down. There are two lines of code that should be deleted in /usr/src/sys/dev/vmware/vmxnet3/if_vmx.c: @@ -3619,8 +3619,6 @@ vmxnet3_media_status(struct ifnet *ifp, struct ifmediareq *ifmr)

Re: [Bug 221385] [Regression] v6 mapped v4 addresses not working in 11.1

2017-10-17 Thread Lewis Donzis
> On Oct 17, 2017, at 7:52 AM, Michael Tuexen > wrote: > >> On 17. Oct 2017, at 03:32, Lewis Donzis wrote: >> >> Would appreciate some guidance on this. It seems like a reasonably serious >> regression, so I’m surprised it hasn’t already been fixed. &g

Re: [Bug 221385] [Regression] v6 mapped v4 addresses not working in 11.1

2017-10-16 Thread Lewis Donzis
the socket and explicitly turns off the V6ONLY option, but that doesn’t help with third-party applications. Thanks, lew > On Sep 13, 2017, at 7:47 AM, Lewis Donzis wrote: > > Hello. > > This particular bug is a real problem in our embedded system, and we’re > trying to de

Re: [Bug 221385] [Regression] v6 mapped v4 addresses not working in 11.1

2017-09-13 Thread Lewis Donzis
Hello. This particular bug is a real problem in our embedded system, and we’re trying to decide whether to go back to 11.0 or wait for a patch for 11.1. We downloaded just the one file containing the fix, but it wouldn’t compile, so we downloaded -CURRENT and verified that it works fine. But i

recv() with MSG_WAITALL appears to be broken (sometimes)

2016-09-29 Thread Lewis Donzis
I posted this on bugzilla (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212716) but thought I’d see if anyone here can offer some advice. We have a simple test program to illustrate the problem. Run "server" on a machine, and then run "client" on the same machine. Server creates a listeni