From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AFC6CA04B3; Fri, 20 Dec 2019 22:48:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCA171F1C; Fri, 20 Dec 2019 22:48:43 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by dpdk.org (Postfix) with ESMTP id 41E4D1252 for ; Fri, 20 Dec 2019 22:48:42 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id t101so4709599pjb.4 for ; Fri, 20 Dec 2019 13:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=UvrBcJs1/YqLuXrgtcvhaPW/fbuq1JVaJ9r4obQkrdk=; b=Tla3nDa5lT8nNyFkopx7z31C8cwTBXyuus/7/c62EInd7cKOhrAUCS5VVkYotbwVwl Osr3ZK+yG4+zBvW4+zTcfctI60ziH9lG7Q6WTjvO7oCY6gyE+KwD5mWTV9GYW64etQod AErnLi+YzFHECHLsCb9p+WMLVWUe6FcXEjRuv1/0J3jYQNymqXoqwlQ6BzZQR9gDJk3v VmJr2Jz6Q6AMslO4AFx8adujr1KrD98PzDyNsOFQmTChXONeluGogzD9/FoBhNJS4Q8Y NyMTwF2/TxTK2B/Kq1dclUT7vO5uDZPqACIvzJL5tLTniIUHCAI35D1H5/0lRAcUTRG3 HQGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=UvrBcJs1/YqLuXrgtcvhaPW/fbuq1JVaJ9r4obQkrdk=; b=WTCfRd96v/TOiyS2HrvvKlaPyZH4yWX980dMPcPD8aJOMprE0Oelz82uQXjQ08k8gv zG1wkyZDzvyUKZ9L0bYlFwfjLIAbOwgtyhUTjF7ugkHBCc92Vy+XJJSzjATik4bAN370 jOye4zV14F6P/L+ydpp3Why4DWWsN6+ggQX0sanCVE1lyF85Q4N8VdFjruEvvDlS7CAR AtXRAhk0ASVn7mHsI8kD36z1fC4Qw21YBfmQjdtc7vkyEsKYF/v6aG2QBtZIOBx6/bXg 3xkLFcZZVwadVera5LgQ2C6DCapGu+E/Kra+em8SjzYwmeRJt4epQwkTdkGdfiYhYCXw DDxQ== X-Gm-Message-State: APjAAAXJzTmRr3osdYJ21HBoNwnfGzoeu/OQacyKsehukQefkvlv0N5X xRYRAAOCjm/ChefvhtTmubzIUw== X-Google-Smtp-Source: APXvYqwd05ekQHvJkSsUGdBWlBkpS8Dck5L/cfrizG3I4gq2RnHPFmWf+63slfaCX2S+qoUk9dNffw== X-Received: by 2002:a17:902:bb93:: with SMTP id m19mr17437576pls.37.1576878521157; Fri, 20 Dec 2019 13:48:41 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u127sm14705848pfc.95.2019.12.20.13.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 13:48:40 -0800 (PST) Date: Fri, 20 Dec 2019 13:48:31 -0800 From: Stephen Hemminger To: Ferruh Yigit , dev@dpdk.org Message-ID: <20191220134831.48f97ddf@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] KNI portmask bugs 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" KNI example has a couple of bugs that can cause surprises if using failsafe (or bonding). The portmask argument to kni does not check that device is not a sub device (already owned) and allows any device. While your at it, the portmask for kni is only 32 bits which is not big enough on some systems.