From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 09F44A0679 for ; Tue, 30 Apr 2019 18:51:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C6C9326C; Tue, 30 Apr 2019 18:51:12 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id D24383257 for ; Tue, 30 Apr 2019 18:51:10 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id j11so7330753pff.13 for ; Tue, 30 Apr 2019 09:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kclZNYplncplBhUYwxDV9n+lKlPHkh/JRQ5Dmq7ehy8=; b=f4rCF7OrN1kkm3kZePhgmpOK/5Af0zgGQurYaDiXusXymQu5wM5KtpcpUGx+BeCVKL Ki0i58Gn6hjmdsJ0tXiNuxPdIp6q+t+qFTHQt4I8NsP6Ha7zJ19nQC7QmoGHbWtMo7JL mRzB9keL1lucGS1WBCwFRFGxSl6bFIhzSraKSbn17waF4TDRzoimoDfKWkatCesblX8K l0upC33n28BtSKU7l/sDyau830NGajzcgOjnN9MQCUkhhfVIm4u+/Ls3meFHnWiRl0zd 7TVAYMUlESU0MzPZJyaV78U7Nb+ADgpQfMKoukfpjdS+NMErFkpYLEhJJWLxrfjXl+2g EgcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kclZNYplncplBhUYwxDV9n+lKlPHkh/JRQ5Dmq7ehy8=; b=lxiF8C9/cxEF1SjTLPL8ihYI+gh5hpaf090b58c0IF/4tXrdDNZsK/CpwDHhBE30Kr YTmVkrDB8DPqohq/s2ICer2bossmQ/vVB0P4+MyvOhMy1PDW8MQzWPq7Gq6ZhMS7HwX9 bROA9Y8C/OdSXwB+h71KtPetNLkeZ8a+psYRM0HFXJwwUGM4t8txgBJEAWqiLu2th1Vz RaJRJcA/KhFJlwqFdz1uBO6vE/2E24QwwULYlEHU7ZMQaoneAYsLp2k1bgDpfo9Vjmyy LoGeVIr4lreEHXV2bi1C7fbIPbwWDeLM1MRpzAMNLOEcOo2xH2DqYL5bFTDDITheLbdv UPUw== X-Gm-Message-State: APjAAAX4yKWT3i7ke02iBqu8fB7iCMCXf5oIgpFZbCZDqoBeUKabXNlQ bxkdB0vDyNbPP07HO0ieCMG6HA== X-Google-Smtp-Source: APXvYqxaVQxK2FUJPG5Mqh2nee2k9qPE5C9t47visBxNC+QWR7lRspDHwy5fTDdu3nTeRDLOI/k1BQ== X-Received: by 2002:a62:2b43:: with SMTP id r64mr37119930pfr.210.1556643069987; Tue, 30 Apr 2019 09:51:09 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id b14sm46420413pfi.92.2019.04.30.09.51.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Apr 2019 09:51:09 -0700 (PDT) Date: Tue, 30 Apr 2019 09:51:01 -0700 From: Stephen Hemminger To: Chas Williams <3chas3@gmail.com> Cc: users@dpdk.org Message-ID: <20190430095101.120c2449@hermes.lan> In-Reply-To: <0e02ab92-aa2d-e4f8-923e-4f0748d8b670@gmail.com> References: <0e02ab92-aa2d-e4f8-923e-4f0748d8b670@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] Should netvsc and Debian 10 work? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Tue, 30 Apr 2019 10:58:36 -0400 Chas Williams <3chas3@gmail.com> wrote: > I am trying to get netvsc to work with Debian 10. Following along in the > instructions I have: > > # cat setup > modprobe uio_hv_generic > echo -n 57b2866a-61b8-400e-ac8f-32373f9c42a3 > > /sys/bus/vmbus/drivers/uio_hv_generic/new_id > echo -n 57b2866a-61b8-400e-ac8f-32373f9c42a3 > > /sys/bus/vmbus/drivers/hv_netvsc/unbind > echo -n 57b2866a-61b8-400e-ac8f-32373f9c42a3 > > /sys/bus/vmbus/drivers/uio_hv_generic/bind > > But this fails during the bind stage with "No such device": > > setup: line 4: echo: write error: No such device > > The kernel in Debian 10 is > > Linux debian10 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) > x86_64 GNU/Linux > > This is a generation 1 virtual machine. You have the wrong GUID. The first step (writing new_id) needs the GUID used to as device type for all nework devices. The second/third step bind/unbind need the GUID of the ethernet device in question. I use this script: #! /bin/bash if [ $# -lt 1 ]; then echo "Usage: $0 ethN" exit 1 fi # Setup UIO NET_UUID="f8615163-df3e-46c5-913f-f2d2f965ed0e" modprobe uio_hv_generic || exit 1 echo $NET_UUID > /sys/bus/vmbus/drivers/uio_hv_generic/new_id for ETH do if [ ! -h /sys/class/net/$ETH/device ]; then echo "$ETH/device does not exist" exit 1 fi DEV_UUID=$(basename $(readlink /sys/class/net/$ETH/device)) echo $ETH is $DEV_UUID echo $DEV_UUID > /sys/bus/vmbus/drivers/hv_netvsc/unbind echo $DEV_UUID > /sys/bus/vmbus/drivers/uio_hv_generic/bind done