From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by dpdk.org (Postfix) with ESMTP id D2106DE3 for ; Fri, 25 May 2018 11:55:01 +0200 (CEST) Received: by mail-qt0-f196.google.com with SMTP id h2-v6so5791976qtp.7 for ; Fri, 25 May 2018 02:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=SNrgPhnFe3FRl6DP9b64LH+5tKg1u2wGpcKKp0abKJE=; b=vJvQqBItFS1ZRuDtcTxCdsG2+XxfJqv2cXE7oTe2jd6X6sbBA2iLeRSadhYx8XDWf2 YcKp55VOwXwQNyrKt8q+DRJ8nrXYoppTU0XhganBZQdj8MjRuvJwSid4Bf3zf9ayh0ZB fBTAPJlTiglgBYzU/ycaNAVZUQrqAJQ08+WDp5oIFYerfLJOPvAEDlemdCUE3zZr/ybv X5TmvzHqus6tGMfElLwcfPkGB/cG/L9jlXua9xrGfNR6/ljaQRHgwvDEUnUdGyfNrolD Z4Gxy9LmjC8GijyTkI8JBbiGfbXF4mD/0NBvnylxFU4un00epWRFeMW4JcGhH6js6wei gQ6g== 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=SNrgPhnFe3FRl6DP9b64LH+5tKg1u2wGpcKKp0abKJE=; b=dT1iwOa/u2RfZOh/0Uxxvw3UsUtt8dyyUYS6ilB136WI0mq+KVXHZsqMhkamRLSC+N QlrnuTiPle+2Qlf0T5dKi8Q7RTsXWGv3hfH1oMYT5cEX05REgSKT/0YkL8upmR1IiodW donD7B+eLd+Kv5VE5TPdc0adxPfKYhzGEWzzO70BotYZH6XRegfx19AG6Xww5FA8XRfh TFfr/WRuVXrne4hyIOus4x6UI4mJiBZ8wJJpwVb7qBJuGIeF6qPBxX9SS5JEhEfrkWTY /iC0FYrFP3+X7llwJV06iL0IQ6L0R6A3cQK8X/rMArUQFoIETkApE59WdxGZ98vx6j+u 7JXg== X-Gm-Message-State: ALKqPwcN4z/hLsd0EDogmSe/uZFLIg5gLmuQOJLaTZYXFhBVD4k1R7i5 LZG90JkOga89khbQAxQKsdc9HmgZq4rAA5nFQiThKA== X-Google-Smtp-Source: ADUXVKJVKDep7CVvCxA54ca6ZxucqPq0td22/C2BLWgGD+fjnnOKU4FAkFsTWfRU9QHT802xdKRos9kOJEWduPIzaEk= X-Received: by 2002:aed:3b49:: with SMTP id q9-v6mr1460180qte.331.1527242101100; Fri, 25 May 2018 02:55:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:3843:0:0:0:0:0 with HTTP; Fri, 25 May 2018 02:55:00 -0700 (PDT) From: Kevin Wilson Date: Fri, 25 May 2018 12:55:00 +0300 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-dev] Kernel Module dependency in DPDK 18.05-rc5 and earlier DPDK releases X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2018 09:55:02 -0000 Hi, I am facing the following issue in DPDK 18.05-rc5 (I saw it also with earlier releases of DPDK from the last year). The issue is with defining dependency on a kernel module in a PMD. I want to develop a PMD which requiers that before running DPDK app which uses this PMD, a specified kernel module is required to be insmoded. I tried to add a call to RTE_PMD_REGISTER_KMOD_DEP in my PMD, specifying a required kernel module, and I expected that when calling a DPDK app which uses this PMD it will shout that such a kernel module is not loaded, but this did not happen. So I took an existing kernel DPDK PMD (i40e), and I tried to add dependency on the link aggregation kernel module ("bonding.ko"). Again the same happened. Am I missing something ? I made two tries: -RTE_PMD_REGISTER_KMOD_DEP(net_i40e, "* igb_uio | uio_pci_generic | vfio-pci"); +RTE_PMD_REGISTER_KMOD_DEP(net_i40e, "bonding"); And also -RTE_PMD_REGISTER_KMOD_DEP(net_i40e, "* igb_uio | uio_pci_generic | vfio-pci"); +RTE_PMD_REGISTER_KMOD_DEP(net_i40e, "* bonding"); In both trials, I built the DPDK tree and ran testpmd, binding the i40e device and using it with testpmd, and in both cases, bonding.ko was not loaded (lsmod | grep bonding did not show anything). In both cases, the testpmd app started OK, and no warning about that bonding.ko was not loaded. Any advise will be appreciated. Regards, KW