From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by dpdk.org (Postfix) with ESMTP id 1D6802BEA for ; Fri, 7 Sep 2018 14:27:56 +0200 (CEST) Received: by mail-lf1-f44.google.com with SMTP id r4-v6so11839595lff.12 for ; Fri, 07 Sep 2018 05:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intopalo.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=nfg9qj4fY0Cz2ZhWGJI/vlwXM4M26wtIrkUCU8RHV0Q=; b=EgsudqO1Rb1CE3HV2oTbfit3eVDVOW0SMWp7xC5vMMoAHd8/o+DRgqDEX3BGJZqfRD OyOqDfMI/VT7G5C5pPMsWXPj9Qpga8XakYCtcoWYZVc7hxElVhVM69NDiq/IEs9shVyI dxvZdYKM2zz2zFayTiqZN5WkK0OyWaiQX6QxI= 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; bh=nfg9qj4fY0Cz2ZhWGJI/vlwXM4M26wtIrkUCU8RHV0Q=; b=oTJ6s4CFk47mii5TkxSL4+lZ5MIIgEaZg2NKQw/PERX16jsqx2UB9xMCT/ZPTa1Ylr dZZb+p4KQxw4bg8s8mNcC4EhiYY+36cXxPebnLT2U9T+ZldBtuqJigRziEd0IKu8Bddc of/gV/azm3nyPzgEEfV9v/SPE4CyaGQRR3CEEwfzxOxW3TWTXeeXDEFhdUTneA/M82wR 8tbOTBrs+pqgqIH1Ahvx91wMiFclh3aB+BNTAM6SM5jk8eCTlXf4x79I+txWizh6i6C5 yKbIyRvFyImpIB13lBEyXUUuObI8wHnLt4cTBAetOIWsDNBPctaZDI0WNOoi7TKSfkl4 qcMQ== X-Gm-Message-State: APzg51BLW5KyBVVvaQsXWrFvSHVCHr4W3qa292g5CffXtsVg0TL5BsKf FP6AREnvDuE56b0y8zCg15/BGgUF+zc66DdnfDpx3oVw4sjmZw== X-Google-Smtp-Source: ANB0VdZw6sNuhK9fuzXhfqSTKD6fJYwiBy7clBTuVyWDtb7Vb9Vnjwpema5deB6F4kxpdBU7CWDORJ/HE8v2qbCnwCE= X-Received: by 2002:a19:c646:: with SMTP id w67-v6mr5230444lff.108.1536323275425; Fri, 07 Sep 2018 05:27:55 -0700 (PDT) MIME-Version: 1.0 From: Mathieu Devos Date: Fri, 7 Sep 2018 15:27:44 +0300 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Pure container-ized DPDK test 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: Fri, 07 Sep 2018 12:27:56 -0000 Hello, For a recent project, we're currently writing an application which is using DKDP to hook into the NICs directly. However, as part of testing this application, we use a CI tool which can compile the application, use a containerized version of DPDK to test said application with the unit tests. However, we're moving this whole process to the cloud, this is where the issues come in. The current setup has a VM running with several of these NICs virtualized for this container to utilize and run the application with DPDK. This means we just keep the VM up & running and refresh the container with the new application in there. Now with the cloud, we won't have this VM anymore, and we have no idea on which host this will be running (also we won't be having access to the host platform probably). My (our) questions is pretty straightforward, linux kernel allows you to instantly create new NIC aliases, however, to create new actual NICs you have to resort to one of these 3 steps ( https://stackoverflow.com/questions/49963311/how-can-i-get-dpdk-to-recognize-a-nic-virtualized-by-linux). However, would it be possible to run our application in a pure container, emulate (in that container) one or multiple NICs and let DPDK hook into those? We're very well aware that the speed of these NICs will be atrociously low, something DPDK was written to originally avoid, however, this is one of the first testing setups in our QA process. If the units tests for the application would pass within this container, we would export it to a proper VM, and then push it down to the actual hardware to continue testing. The idea is that we wish to see if our application is failing as soon as possible, and not wait to see it on hardware, just to see it all fail because of faulty code in the application. If any of this sounds ridiculous, or I'm understanding the whole setup just plainly wrong, don't hesitate to correct me. I'm very new to DPDK, and find it very interesting so far, always looking to learn more on the topic. Best regards, Mathieu -- *M*athieu *D*evos M.Sc.(Tech) - Software Developer +358 45 787 48074 Intopalo