From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by dpdk.org (Postfix) with ESMTP id E70FA2E41 for ; Mon, 13 Feb 2017 07:25:01 +0100 (CET) Received: by mail-qt0-f195.google.com with SMTP id s58so12000092qtc.2 for ; Sun, 12 Feb 2017 22:25:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=rbiRa32dkOJSQ9BHQ0N0U4twY33+u+IkdUP9d/gqz/Q=; b=toX/KGjtErWN11Ib3DtzDrwuPUB5JBmIpnK8AkwBI91L/3qiNt7httMQqYRq3qEd25 XegHBpi/MnJ9caeiJRVm7FI8qgxgBHgue7klj+RfX1YDSDFq7ijjknHglTcDVoT8dd6n O1dt4P2PH9asJgSRj2NDanH9M1n+oaUUcgN18pjaiHpK3MeZzNR/VoPvtzW4N4aS0alN uGK2Nr7a/c+ta2PJp4WMdhjFYW6uvU4HMEMXICcg4uhTMy67WJKaxS8aG4q7FZV7W8r1 viK9CJ77m4NDS0ZqoFAIZgnd0zG/n3YRxZojTfsXM9NATLjwpPYbz6MtbLkVCW+OHeiA Ck2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=rbiRa32dkOJSQ9BHQ0N0U4twY33+u+IkdUP9d/gqz/Q=; b=cmxZAgYsk0nXdVLu+owrK93y70vGkb7cTuXhw8276EX1YP0e9jxWKd5Ix2WhUqXdFG FIwQ5MTEIzcnGnyY6SQHIsCYA2JmqUNH8jRsBQDsr0eZQWhrwoMxiE5qgLfYSfkKcy54 jX1G7roNRpPGf9MM3NiPfKtjWE1pWIXouChndbgFj3aa0BGi8r9olOoy6fUO6pAYTcgK FfKz3Bk8sCugVHV8jYAR8DIt4uknIP7WS5S4rTevRDnIcHF5PNMogq0qdAsh47qyTyOX GTjklsAvIVioqjiuTJKqyDtQReW0UOsaPd8IwLTO3TgZ3EwSvnDsbluIoz+Fl4cduyCN 19gw== X-Gm-Message-State: AMke39lnaOTX3brxLVxPETYJLplvtD68FpuH4O5kc2+39RF7GHx7DfVCc5KUpY295I7l7mQ8Sg5vSEu5AK3hbg== X-Received: by 10.200.37.141 with SMTP id e13mr18858169qte.226.1486967101272; Sun, 12 Feb 2017 22:25:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.3.6 with HTTP; Sun, 12 Feb 2017 22:25:00 -0800 (PST) From: Devanath S Date: Sun, 12 Feb 2017 22:25:00 -0800 Message-ID: To: dpdk-ovs@lists.01.org, "users@dpdk.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-users] netdev-dpdk: add hotplug support 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: , X-List-Received-Date: Mon, 13 Feb 2017 06:25:02 -0000 Hi, I am looking for the below feature in ovs, with 2.6.1 release it seem to fail. I dont see any reference to rte_eth_dev_attach()/detach()api in the code aswell. Even though ovs 2.6 release note indicates the support, the feature doesnt seem to work. Please advice. Ovs How_to documentation =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://docs.openvswitch.org/en/latest/howto/dpdk OVS supports port hotplugging, allowing the use of ports that were not bound to DPDK when vswitchd was started. In order to attach a port, it has to be bound to DPDK using the dpdk_nic_bind.py script: $ $DPDK_DIR/tools/dpdk_nic_bind.py --bind=3Digb_uio 0000:01:00.0 Then it can be attached to OVS: $ ovs-vsctl add-port br0 dpdkx -- set Interface dpdkx type=3Ddpdk \ options:dpdk-devargs=3D0000:01:00.0 It is also possible to detach a port from ovs, the user has to remove the port using the del-port command, then it can be detached using: $ ovs-appctl netdev-dpdk/detach 0000:01:00.0 This feature is not supported with VFIO and does not work with some NICs. For more information please refer to the DPDK Port Hotplug Framework. Code commit of the feature: ---------------------------------------- commit b8374d0d04260793db35b617eb15bba958d50003 Author: Mauricio V=C3=A1squez Date: Thu Jan 5 10:42:08 2017 +0000 netdev-dpdk: add hotplug support In order to use dpdk ports in ovs they have to be bound to a DPDK compatible driver before ovs is started. This patch adds the possibility to hotplug (or hot-unplug) a device after ovs has been started. The implementation adds two appctl commands= : netdev-dpdk/attach and netdev-dpdk/detach After the user attaches a new device, it has to be added to a bridge using the add-port command, similarly, before detaching a device, it has to be removed using the del-port command. Signed-off-by: Mauricio Vasquez B Signed-off-by: Ciara Loftus Co-authored-by: Ciara Loftus Acked-by: Stephen Finucane # docs only Signed-off-by: Daniele Di Proietto