From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8213D456AC for ; Thu, 25 Jul 2024 19:52:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7310D43688; Thu, 25 Jul 2024 19:52:31 +0200 (CEST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by mails.dpdk.org (Postfix) with ESMTP id 1F2124363D for ; Thu, 25 Jul 2024 19:52:30 +0200 (CEST) Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2ef283c58f4so4806181fa.1 for ; Thu, 25 Jul 2024 10:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1721929949; x=1722534749; darn=dpdk.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=z0bUDJdsd8mXhu3hxQm25jFAMdpML8SiBb1Kmkcg7Jo=; b=LPIZLqLXQ2DbpTgMwunPJL1FCtAMlV0Ac5Q/ArywWn+bvynabwEJSPsaNNp4VXqziu 9XfzAG1RWWXSnGsmLKN0YNPamDbxxMKksBNhdoGkPOuj7UujNu14NEjP3zGQ84K8DTMH kxSw0fKGPqWrHjl+mcBvyckJEnqUH5Kb74qcw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721929949; x=1722534749; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z0bUDJdsd8mXhu3hxQm25jFAMdpML8SiBb1Kmkcg7Jo=; b=ReinikgNiSz2FHTITRSzHIKMHHCZuA5SX/kwlR+KY6+Nt8EkHnwiMTBnVUZbWdlt7W nFy8nPwYoQi+a/+fsFopZBFApgJ5mtANY+/01KZ1IbmM8Hi2Lr1KAuDu49AQY+M0a7r8 BZ3uFfd/yBHHIjq6nYcQ1lWHQu9GS5WjSeXW21zYHQ46H5GfyO+I89KbAhM6GkwdXl3P Zc6CN1xufpgf9Md5w6OhddtiZNa6QcAAYqZkuPG96K4Mz5gii+/Mkl2lhm73miXzk7af e0NInqvCZjBf3gU86uUyBK2pd8hjLqyoYJPdS1tGlhHH8fCh3saF+h2yTjzooiSHNcNY rwmQ== X-Gm-Message-State: AOJu0YxN9ugJr8xEMVRhlBaqsWqy41voz/Dk0z5SGoDqOsM54iahswgm pnZ0vwhzVPCTABZTVuHPIWNJSK++O5+7+Z3G1lGO2mxcyNgVNE+CdZB6LHxNHVEcZ5aeWkckD5r 4pgpotbF2HBO9FkxkNtajHdbp32tHq6+M4RzCZKYgI01/CBABHQgCGXjONAQgeQd9aJKv8xB0WH NZdgwVlAkyTzJ2oH+eMFbh X-Google-Smtp-Source: AGHT+IEXBdYHTOS+ykXAOgdz7JcEAdI3/6mcWlMJ8thQHnzU7Ji49XpPYRvIXvOUWT+KeKO0XNDMaV153rUE9NGxudw= X-Received: by 2002:a2e:998d:0:b0:2ef:2b44:9977 with SMTP id 38308e7fff4ca-2f03db7e00cmr19023451fa.18.1721929949103; Thu, 25 Jul 2024 10:52:29 -0700 (PDT) MIME-Version: 1.0 From: Nandini Rangaswamy Date: Thu, 25 Jul 2024 10:52:18 -0700 Message-ID: Subject: Query regarding netvsc PMD : VF removal To: users@dpdk.org Cc: longli@microsoft.com, Stephen Hemminger Content-Type: multipart/alternative; boundary="000000000000f1e5c6061e160e77" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000f1e5c6061e160e77 Content-Type: text/plain; charset="UTF-8" Hi, I am integrating my DPDK app (using DPDK version 22.11) with Netvsc PMD. I was testing the use case of VF removal with the DPDK app. I registered for hotplug notification in the DPDK app and enabled DPDK logs. I see the APIs being invoked for VF removal from the logs below: 2024-07-25T17:28:13.317 |13590| MSG [NET] dpdk_log_write:112 hn_eth_rmv_event_callback(): Removing VF portid 0 2024-07-25T17:28:13.318 |13590| MSG [NET] dpdk_log_write:112 EAL: Ignoring uevent 'remove@ /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:07/VMBUS:01/80033a99-bc5e-43c7-aeea-e5773d4414d2/pcibc5e:00/bc5e:00:02.0/infiniband/mlx5_0' 2024-07-25T17:28:13.318 |13590| MSG [NET] dpdk_log_write:112 hn_nvs_set_datapath(): set datapath Synthetic 2024-07-25T17:28:13.318 |13590| MSG [NET] dpdk_log_write:112 hn_remove_delayed(): Start to remove port 0 2024-07-25T17:28:13.319 |13590| MSG [NET] dpdk_log_write:112 mlx5_net: port 0 stopping device 2024-07-25T17:28:13.319 |13590| MSG [NET] dpdk_log_write:112 mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 0x10c9e6300 removed. 2024-07-25T17:28:13.319 |13590| MSG [NET] dpdk_log_write:112 mlx5_common: mlx5 list hrxq entry 0x10c942f00 removed. 2024-07-25T17:28:13.319 |13590| MSG [NET] dpdk_log_write:112 mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 0x10c9e6a40 removed. 2024-07-25T17:28:13.319 |13590| MSG [NET] dpdk_log_write:112 mlx5_common: mlx5 list mlx5_0_flow_table entry 0x17fdc9040 removed. 2024-07-25T17:28:13.319 |13590| MSG [NET] dpdk_log_write:112 mlx5_net: port 0: 0 flows flushed before stopping 2024-07-25T17:28:13.320 |13590| MSG [NET] dpdk_log_write:112 mlx5_net: port 0 Tx queue 0 freeing WRs 2024-07-25T17:28:13.321 |13590| MSG [NET] dpdk_log_write:112 mlx5_net: port 0 Rx queue 0 freeing 8192 WRs 2024-07-25T17:28:13.321 |13590| MSG [NET] dpdk_log_write:112 mlx5_net: port 0 closing device "mlx5_0" 2024-07-25T17:28:13.321 |13590| MSG [NET] dpdk_log_write:112 mlx5_net: port 0: 0 flows flushed before stopping 2024-07-25T17:28:13.322 |13590| MSG [NET] dpdk_log_write:112 mlx5_common: freeing B-tree 0x10cb88134 with table 0x10cb86bc0 2024-07-25T17:28:13.324 |13590| MSG [NET] dpdk_log_write:112 mlx5_net: port 0 Tx queue 0 freeing WRs 2024-07-25T17:28:13.324 |13590| MSG [NET] dpdk_log_write:112 mlx5_common: freeing B-tree 0x10ca2dfe8 with table 0x10ca2c980 2024-07-25T17:28:13.334 |13590| MSG [NET] dpdk_log_write:112 EAL: request: eal_dev_mp_request 2024-07-25T17:28:13.334 |13590| MSG [NET] dpdk_log_write:112 EAL: PCI device bc5e:00:02.0 on NUMA socket -1 2024-07-25T17:28:13.334 |13590| MSG [NET] dpdk_log_write:112 EAL: remove driver: 15b3:1016 mlx5_pci 2024-07-25T17:28:13.336 |13590| MSG [NET] dpdk_log_write:112 mlx5_common: freeing B-tree 0x1801d9dc0 with table 0x1801d7500 2024-07-25T17:28:13.828 |13590| MSG [NET] dpdk_dev_event_callback:295 HOTPLUG: event callback 1 device bc5e:00:02.0 2024-07-25T17:28:13.828 |13590| MSG [NET] dpdk_log_write:112 netvsc_hotadd_callback(): Device notification type=1 device_name=bc5e:00:02.0 2024-07-25T17:28:13.828 |13590| MSG [NET] dpdk_log_write:112 netvsc_hotadd_callback(): Device notification type=1 device_name=bc5e:00:02.0 2024-07-25T17:28:13.829 |13590| MSG [NET] dpdk_log_write:112 EAL: receive uevent(name:(null), type:1, subsystem:0) 2024-07-25T17:28:13.829 |13590| MSG [NET] dpdk_log_write:112 EAL: Ignoring uevent 'unbind@ /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:07/VMBUS:01/80033a99-bc5e-43c7-aeea-e5773d4414d2' 2024-07-25T17:28:13.829 |13590| MSG [NET] dpdk_log_write:112 EAL: Ignoring uevent 'remove@ /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:07/VMBUS:01/80033a99-bc5e-43c7-aeea-e5773d4414d2' 2024-07-25T17:28:13.829 |13590| MSG [NET] dpdk_log_write:112 EAL: Ignoring uevent 'remove@/channels/41' 2024-07-25T17:28:13.829 |13597| MSG [NET] dpdk_log_write:112 hn_nvs_handle_vfassoc(): VF serial 3 remove from port 2 2024-07-25T17:28:13.829 |13597| MSG [NET] dpdk_log_write:112 hn_vf_remove(): VF path not active. However, I see the synthetic interface not being unbound from the uio_hv_generic driver. Should it be done as part of hotplug notification by my DPDK app or should DPDK code already take care of it ? Regards, Nandini -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. --000000000000f1e5c6061e160e77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I am integrating my DPDK app (using DPDK version 22.11) with Netvsc = PMD. I was testing the use case of VF removal with the DPDK app.
I registered for hotplug notification in th= e DPDK app and enabled DPDK logs. I see the APIs being invoked for VF remov= al from the logs below:

2024-07-25T17= :28:13.317 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 hn_eth_rmv_event_callback(): Removing VF portid 0=

2024-07-25T17:28:13.318 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL: Ignoring uevent 'remove@/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:07/VMBUS:01/= 80033a99-bc5e-43c7-aeea-e5773d4414d2/pcibc5e:00/bc5e:00:02.0/infiniband/mlx= 5_0'

2024-07-25T17:28:13.318 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 hn_nvs_set_datapath(): set datapath Synthetic

2024-07-25T17:28:13.318 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 hn_remove_delayed(): Start to remove port 0

2024-07-25T17:28:13.319 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_net: port 0 stopping device

2024-07-25T17:28:13.319 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entr= y 0x10c9e6300 removed.

2024-07-25T17:28:13.319 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_common: mlx5 list hrxq entry 0x10c942f00 removed.

2024-07-25T17:28:13.319 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entr= y 0x10c9e6a40 removed.

2024-07-25T17:28:13.319 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_common: mlx5 list mlx5_0_flow_table entry 0x17fdc90= 40 removed.

2024-07-25T17:28:13.319 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_net: port 0: 0 flows flushed before stopping=

2024-07-25T17:28:13.320 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_net: port 0 Tx queue 0 freeing WRs

2024-07-25T17:28:13.321 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_net: port 0 Rx queue 0 freeing 8192 WRs

2024-07-25T17:28:13.321 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_net: port 0 closing device "mlx5_0"

2024-07-25T17:28:13.321 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_net: port 0: 0 flows flushed before stopping=

2024-07-25T17:28:13.322 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_common: freeing B-tree 0x10cb88134 with table 0x10cb86bc0

2024-07-25T17:28:13.324 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_net: port 0 Tx queue 0 freeing WRs

2024-07-25T17:28:13.324 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_common: freeing B-tree 0x10ca2dfe8 with table 0x10ca2c980

2024-07-25T17:28:13.334 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL: request: eal_dev_mp_request

2024-07-25T17:28:13.334 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL: PCI device bc5e:00:02.0 on NUMA socket -1

2024-07-25T17:28:13.334 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL:=C2=A0=C2=A0 remove driver: 15b3:1016 mlx5_pci

2024-07-25T17:28:13.336 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 mlx5_common: freeing B-tree 0x1801d9dc0 with table 0x1801d7500

=C2=A0

=C2=A0

=C2=A0

=C2=A0

2024-07-25T17:28:13.828 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_dev_event_callback:295 HOTPLUG: event callback 1 device bc5e:00:02.0

2024-07-25T17:28:13.828 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 netvsc_hotadd_callback(): Device notification type=3D1 device_name=3Dbc5e:00:02.0

2024-07-25T17:28:13.828 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 netvsc_hotadd_callback(): Device notification type=3D1 device_name=3Dbc5e:00:02.0

2024-07-25T17:28:13.829 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL: receive uevent(name:(null), type:1, subsystem:0)

2024-07-25T17:28:13.829 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL: Ignoring uevent 'unbind@/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:07/VMBUS:01/= 80033a99-bc5e-43c7-aeea-e5773d4414d2'

2024-07-25T17:28:13.829 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL: Ignoring uevent 'remove@/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:07/VMBUS:01/= 80033a99-bc5e-43c7-aeea-e5773d4414d2'

2024-07-25T17:28:13.829 |13590| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 EAL: Ignoring uevent 'remove@/channels/41'

2024-07-25T17:28:13.829 |13597| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 hn_nvs_handle_vfassoc(): VF serial 3 remove from port 2<= /font>

2024-07-25T17:28:13.829 |13597| MSG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[NET] dpdk_log_write:112 hn_vf_remove(): VF path not active.


However, I see the synthetic interface not be= ing unbound from the uio_hv_generic driver.

Should it be done as part of hotplug notificati= on by my DPDK app or should DPDK code already take care of it ?

<= p style=3D"margin:0in">Regards,

Nandini



This ele= ctronic communication and the information and any files transmitted with it= , or attached to it, are confidential and are intended solely for the use o= f the individual or entity to whom it is addressed and may contain informat= ion that is confidential, legally privileged, protected by privacy laws, or= otherwise restricted from disclosure to anyone else. If you are not the in= tended recipient or the person responsible for delivering the e-mail to the= intended recipient, you are hereby notified that any use, copying, distrib= uting, dissemination, forwarding, printing, or copying of this e-mail is st= rictly prohibited. If you received this e-mail in error, please return the = e-mail to the sender, delete it from your computer, and destroy any printed= copy of it. --000000000000f1e5c6061e160e77--