From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <users-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 65F12456B2
	for <public@inbox.dpdk.org>; Thu, 25 Jul 2024 23:52:49 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 1C83340DD6;
	Thu, 25 Jul 2024 23:52:48 +0200 (CEST)
Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com
 [209.85.210.179])
 by mails.dpdk.org (Postfix) with ESMTP id 714C140B98
 for <users@dpdk.org>; Thu, 25 Jul 2024 23:52:46 +0200 (CEST)
Received: by mail-pf1-f179.google.com with SMTP id
 d2e1a72fcca58-70d399da0b5so310442b3a.3
 for <users@dpdk.org>; Thu, 25 Jul 2024 14:52:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1721944365;
 x=1722549165; darn=dpdk.org; 
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:subject:cc:to:from:date:from:to:cc:subject:date
 :message-id:reply-to;
 bh=aC2VbDjRF69avyWI8Cy+cKLNqMj5PBnmOhWtK2Bhpq8=;
 b=eRdCUuJdgDhrs+QV1mZ9Iy0ujkn9cxLeB7GMMJB3uzqEvvMPbsleotS5nwFSBeT33o
 +zLZ1muc4bRu9L0d/PNR+BzUlvkvkqkVjsaU0nmAY96z0HtVXMDL1C+oEA0CLMC9ZXC8
 PwvfiKw30twysXKd0VsHYNT9MoW2941Lik5zlgIwe/5nkt87m+Zhd/muo2+6zaFzogkG
 dW4BLWNPCMUnoBnJpREjAKwiyRdpXTa/b0g/syg/7W8cZeRd0Up/94oVNDW+WXMsLo9g
 2bCMPxLAM/sie71aQWyER3TcyeSCiPiM8MHkK+m+bcyjP4giSljR4Qfn8RsBWvhOerzm
 xdoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721944365; x=1722549165;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=aC2VbDjRF69avyWI8Cy+cKLNqMj5PBnmOhWtK2Bhpq8=;
 b=Zc9kY4P0gtDpydgoflWjFEyC2GxrHtvTZj1x7wjdD/U1exjiTGEkIOS0+pUogKZ+gn
 hJJJunMXeTqfc9b0IyalRl8wlxvkn/owm8Fx51ddH1V+EqyZZoYfH+Zlf8Hlpx36u61q
 xyy+QUb1r4ft8N/k6NCia+d29pOGksBbmgR8aluhAHPD0uUJqIxofOHbwGGh9alf1lEs
 J+CRZq/nAegRqlty47dxYau1FqbhWBNta3TpqdKnc+1pI74QM7ZFtpttqTu4CZF54ove
 nAnL8v/QHVnbc3CY2zpT/QNrcUfOD0pfY7+ALnNyUouzYwpJkvjAkUy2ohyrUI37DcwR
 42Vw==
X-Gm-Message-State: AOJu0Ywik4SErukWPx0BBldkFiJHdt0cseMuChRZjscxsXKfoslUwRmt
 jD7BizSY5TRHW2SOjGnRKkWHiP83NeLpQUSqPDGU84iLN6rFKF3VOSk41cRLHB4=
X-Google-Smtp-Source: AGHT+IH5P88fC+ZUG8f1eGZ/M4AlNGU3bYc4CWyaldmBh8EauN8lxv3SlVEDw2vPLrc9UVNjBm/rYg==
X-Received: by 2002:a05:6a21:3985:b0:1be:c1c0:b8de with SMTP id
 adf61e73a8af0-1c47b3f11damr4088872637.42.1721944365388; 
 Thu, 25 Jul 2024 14:52:45 -0700 (PDT)
Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226])
 by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-7a9f9fcad98sm1397613a12.69.2024.07.25.14.52.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 25 Jul 2024 14:52:45 -0700 (PDT)
Date: Thu, 25 Jul 2024 14:52:43 -0700
From: Stephen Hemminger <stephen@networkplumber.org>
To: Nandini Rangaswamy <nandini.rangaswamy@broadcom.com>
Cc: users@dpdk.org, longli@microsoft.com
Subject: Re: Query regarding netvsc PMD : VF removal
Message-ID: <20240725145243.740c20d9@hermes.local>
In-Reply-To: <CAAkQrK-VCBwocF0cD8f15iLZqhRoWtuOUDBaPnvUc563dF7vtQ@mail.gmail.com>
References: <CAAkQrK_FWWi9E-Ovgyv5zFTt_QP4zUCh_26N1w9kuWcEFUyuDw@mail.gmail.com>
 <20240725111138.6cb22b5c@hermes.local>
 <CAAkQrK-VCBwocF0cD8f15iLZqhRoWtuOUDBaPnvUc563dF7vtQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
Errors-To: users-bounces@dpdk.org

On Thu, 25 Jul 2024 11:41:59 -0700
Nandini Rangaswamy <nandini.rangaswamy@broadcom.com> wrote:

> Hi Stephen,
> I am using the DPDK 22.11.5 LTS. Should the DPDK code take care of
> unbinding synthetic interface from uio_hv_generic or should it be done by
> the app when it gets hotplug notification?
> Regards,
> Nandini

The synthetic device (netvsc) controlled by uio_hv_generic is never hot plugged.
Only the VF which is mlx device can be removed and added.
The management of the VF for traffic is handled completely internally to
the netvsc device (same as the Linux netdevice). What happens is the
host notifys the guest over vmbus when VF changes. For devices handled
by the DPDK (netvsc PMD), this notification causes it to add/remove use
of the VF.

The VF should not be used directly. The synthetic device (netvsc) routes
traffic over the VF and reads from it when it is present and up.