From nobody Thu Oct 2 13:52:43 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cctXv1KZNz69trY for ; Thu, 02 Oct 2025 13:53:03 +0000 (UTC) (envelope-from tom.smyth@wirelessconnect.eu) Received: from mail-vk1-xa33.google.com (mail-vk1-xa33.google.com [IPv6:2607:f8b0:4864:20::a33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cctXt5tzxz48QJ for ; Thu, 02 Oct 2025 13:52:57 +0000 (UTC) (envelope-from tom.smyth@wirelessconnect.eu) Authentication-Results: mx1.freebsd.org; none Received: by mail-vk1-xa33.google.com with SMTP id 71dfb90a1353d-54bbb587d6dso622415e0c.2 for ; Thu, 02 Oct 2025 06:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wirelessconnect.eu; s=google; t=1759413175; x=1760017975; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bqtQShRMyRM+CB/oJA8jSPyDD9/36rNSx3ZPy+r1OmU=; b=SxzZExegA5tbnI6flcU3oYAh4rO9aF3xhtafFdNupymC+PJUiR6iFdMFKhc0nwOx0T 87ZlpCV5VjZv1VCK6w7mUWkGulDkISROC8vUa21X6afLa1fuYv/e4YO1YquUekeDHFtX AbJ1/FmPkdIxmBMIg814AH58IzD1WB3QMaoXN1WCNEWPNjdKqLkDBQsKwCh+cjp9EzNm ugkrYCbXc8/Mp2ppRarM7F98B4oKVaJiEyMmQfUTtmk5Hj7vztmk0t+ewyktB6bXjIM5 urQaB2Q+9v0MHStCGwubllvnq0lu8FCaab9McW3B3KCF8rRy+2ldDssqEYqsIsA0xiy7 XRCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759413175; x=1760017975; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bqtQShRMyRM+CB/oJA8jSPyDD9/36rNSx3ZPy+r1OmU=; b=sBoUFyPN4pZNtvAUll6UHExur4dKocK1QT1GR2eOiHCBzWzMJQj5fEnrEG0uw6LGW+ N8F2yniFDLvcd633/hNLziMZtzX3+wxASKxUjMb5Mg2e18JgGILenWRYpv7JVjm58kpZ gCgEf3zt696NMcqV9f/PgWUI8ogbLRacedAxI24hZXQTUyZ3rKyVn88kAC/T9AP1/4eL FA4AF8SSbOF+o4++5TYDvt207oc6xzFUW4fpwxTpdibDduP+x5EWT/BmkOY540WXyS9U Ej4Wo7AdMWeMtEKW5AQ6PnPjorg2Il/y2idizimfsPdUemJA8e8tC/BRmZK6Bu0HLz24 JBhQ== X-Gm-Message-State: AOJu0YwVKRYRh17wIv0nz8ZutCPf1u+mTBcYojo+ykKzGdG4NgD9y3sc INOhlJg+X5Jh/yAvq5uLgNcm22x3+cxauhZikCStjhbfWsOpf3nrv8ECybZE3YYtAm4lq+sT7Eo MQ41AnPcBCLGmU9TPHG1AcBiT2leiS2kFuLQ6tdeIA5tmhRXYvGfCa9c= X-Gm-Gg: ASbGncunnE9FmOIHEYCASJ+hx4BijelgVgXhXnvn4kUUzvvik7vZwq4X0gQou6AU7ym LvPwmOUZVHhBGuMptaiLq5N5IkDgyo6wgfJe8muEjbwaG9l27WCQAXz3mQkSRvm8MWn0wK1ffiS 82FGAuJsAjUOYgvH6VNhAnv2lFqqQHvADpepA8or+960fq+RMamGE9cA/2ZeVkq0F85M2tXLLiu wQyo66MnRIVs3dlh/XSpNtVGPFLHmVUaRRFV8CWVFnhuYx3/u4qVe8gnYnu9Mhh3DqYcqiUO3ly LfTcmlOOed9YnelkzkVJAnShhkz1BE02zzUI+NoW+qQ/PNQG090mTCXTLm+mFJOkRIHpOBpDyhi Odzxp0TZICwzVaNFpjT/91m0mh8rmAS8DfmV/q87FG8pH1JanDAkbVLN5A88PUJj5Xf3X1+6oCW l3tpuM2BdpLZxgAN3kaGQlgxj6AzCA+2QzWZEqTPqmBH5+uurwyeIqUbx0r26CR7yUxaQMZHakt VI= X-Google-Smtp-Source: AGHT+IFmdbeNSwGodkTBnQ0KHBOi3gOFmnAmBHoXccG3svb7kndCqonGNnt9udZrlaTRLEBko+YTQbmogNQoB5wXQMA= X-Received: by 2002:a05:6122:a26:b0:54a:93be:46fc with SMTP id 71dfb90a1353d-5522cf14219mr3058010e0c.0.1759413175562; Thu, 02 Oct 2025 06:52:55 -0700 (PDT) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Tom Smyth Date: Thu, 2 Oct 2025 14:52:43 +0100 X-Gm-Features: AS18NWAtDnOpYlNA860H8_tcSugTNmGk_GNn_dv_Isozo2ZSCC-OFIb4EVHYvL0 Message-ID: Subject: Re: VPP on FreeBSD Stable 14.3 To: Tom Jones Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cctXt5tzxz48QJ Hi folks Answers below, On Thu, 2 Oct 2025 at 13:51, Tom Jones wrote: > > > > On Sat, Sep 27, 2025, at 15:40, Tom Smyth wrote: > > Folks, > > I was wondering folks who run vpp on FreeBSD, > > 1) when I run vpp ssh on the management nic becomes un responsive... > > Just to confirm, there isn't an "vpp ssh" command I'm not aware of and you are ssh'ing in? no its just that the box drops ssh sessions when I start vpp (even though vpp is not on the interface (vnet (virtio) (ssh / OS management via Virtio-nics and vpp is bound to the Intel Iavf virtual function nics... > > > > 2) is there a recommended freeBSD /etc/vpp/startup.conf file that > > works well for FreeBSD ? > > > > i have a virtio NIC for management > > > > virtio was my initial development environment, but with bhyve (and one very short test with vmware). > > > Im trying out FreeBSD with VPP inside a PRoxmox Hosted VM with Intel > > IOMMU (not virtio-iommu) 8GB RAM 2 sockets 1 core, assigned to the > > VM, > > > > Is that linux kvm? Is there a reproduction environment you could point me at that is a little less work than learning what proxmox is? sorry yes it is Linux KVM with Qemu and with intel iommu for SR-IOV > > > > > my /boot/loader.conf > > cat /boot/loader.conf > > boot_multicons=YES > > boot_serial=YES > > comconsole_speed=115200 > > console="comconsole,vidconsole" > > contigmem_load="YES" > > nic_uio_load="YES" > > hw.contigmem.num_buffers=4 > > hw.contigmem.buffer_size=1073741824 > > hw.nic_uio.bdfs="1:0:0,2:0:0" > > > > This seems fine from what I remember. > > Could you sketch a picture of how the interfaces are logically connected together/to the vm host? so a VM with 2 PCI Virtual Function Nics (for vppp) and a virtio-nic for management, when I run vpp with no config ssh connections to the management interface drop ... like a resource exhaustion thing... and it looks like the cpu of the machine (2 cores ) is at 100% ... > > I was looking in my git repos to find the documentation I was sure I wrote. Eventually I remembered this article: > https://freebsdfoundation.org/our-work/journal/browser-based-edition/kernel-development/porting-vpp-to-freebsd-basic-usage/ > > If you want to go into more detail, or have a more interactive conversation feel free to contact me off list happy days i will follow up off list (just want to reply on list for this email to help others that might run into the same issue or mistakes that I made > > Tom > -- Kindest regards, Tom Smyth.