From owner-freebsd-net@freebsd.org Wed May 30 14:45:52 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19923F725FA for ; Wed, 30 May 2018 14:45:52 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64B9C86B7A; Wed, 30 May 2018 14:45:51 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-lf0-x231.google.com with SMTP id d24-v6so4728420lfa.8; Wed, 30 May 2018 07:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZECk6n78Q6aLOnDAGY+SBoCMPuG9OdC7qy4YRtEmuko=; b=DcGfi9MZv1WqC2wpkdlF/ayqHiivG55rh3AMKWMxQDicLokD13ZV+KUbCFO2UJqe3h BJ5PSQ9bhQwgppWsdwlh+Me0O5/QOOGSUgjy5BiW6edRdt6Rn9hibDAh2HqM9aGk+98V skOZHpU+hi1LodDOQ0PcX+vez5/3cdJNhc9ckigAsCn2UQfL0rlk5qsJcZQPAh7jVyhB Jj8PP8pi8EFgXe+Lgf3tI4ok7/FACrEMroPDNQIFYg6UqgRZX89nxlbZ2eCseIH3bJXp imvz6L3kvkE1MYMRTAGWL43iswDmwCNdEOFjoQpHRMf2XvC7qnW1oe0vonE9u7qBWyYI U1uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZECk6n78Q6aLOnDAGY+SBoCMPuG9OdC7qy4YRtEmuko=; b=EzBQ1qPoPT4ofzDREJ7+akmzavbFanjYfdy2+thcAv33WwiV1ZJcZcJoD/d7afIJn0 BIqSdDMKb79sOD7QoQcd4pbuGwmmOyaQhdIduXalawv/y6TIL+jXnDt8UrW3vPqrbHeH a0vDeeKS/Un/91V+lys+/7XQJCdp61Onazv77Z7oNX+5qqpKMjZpNb2CazfQYwfoWy45 iU5bpNWwRYIcrhTjAEhXVVgr6KVoNDmieGJlLVz4Rmk/Zu5oucZjE6H4SsJNB276Mxn1 s/zoDg6+mYfYgLUzAz+e0dXQc4vfeYo2htyT4Mo1k8Q1j66qq/HYn4Ob/Hn/W5wlQUyi +DFA== X-Gm-Message-State: ALKqPwdhq/XHJon0SdhXra/ehWj5JEs1nsxoa0kJBFbcPZp5F3NkJHRP llQeGUxjFR3SQOF8DslbB6+3y/h4Ckb5kriA8zw= X-Google-Smtp-Source: ADUXVKIt/FJA+g8gTS95AX6sbOccF3CnTpTk1J1PsAcLSM7Z5+SlSQg5am/5JJxGJfiIJETrLXJy70ZHCAIPJ7LIc24= X-Received: by 2002:a2e:5358:: with SMTP id t24-v6mr2455014ljd.129.1527691549137; Wed, 30 May 2018 07:45:49 -0700 (PDT) MIME-Version: 1.0 References: <4bc71104-349d-10b6-c7a4-0202e124ff98@freebsd.org> In-Reply-To: <4bc71104-349d-10b6-c7a4-0202e124ff98@freebsd.org> From: Ryan Stone Date: Wed, 30 May 2018 10:45:38 -0400 Message-ID: Subject: Re: Testing VF/PF code To: Sean Bruno Cc: freebsd-net Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2018 14:45:52 -0000 On Tue, May 29, 2018 at 12:58 PM Sean Bruno wrote: > > Does anyone have a process for testing the VF drivers (ixgbe igb, etc) > in FreeBSD without actually firing up linux to instantiate a VM or using > EC2? We have native support for creating VFs for ixl and ixgbe (and cxgbe). For igb you're out of luck (but SR-IOV on igb is kind of a waste of time anyway) To create the VFs, create the following conf file: ix0.conf: PF { device : "ix0"; num_vfs : 4; } You can create the VFs with "iovctl -f ix0.conf -C" You should see 4 new ixgbevf instances show up in the PCI tree and the driver should attach. The one caveat here is that I'm not sure of the state of the ixgbe PF implementation -- some people reported issues with it a while back, and I'm not sure if they were ever resolved. ixl should be solid, though.