Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5EDFC742A7 for ; Wed, 8 Mar 2023 14:38:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231193AbjCHOih (ORCPT ); Wed, 8 Mar 2023 09:38:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231483AbjCHOie (ORCPT ); Wed, 8 Mar 2023 09:38:34 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACBAD3B3CF for ; Wed, 8 Mar 2023 06:38:22 -0800 (PST) Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 6B2C041B68 for ; Wed, 8 Mar 2023 14:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1678286301; bh=TLXbWgCSumBQHNJIEiKWgsAVxLokeDk3mverzNy4nO4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LcjVJL5Xu+c7VDQygsgAoMQXFFHQ7BCuiGxLBAKYpi7GkVDIM5yHDfyv02/46KQbe tpUU9GTC33BlrQuPZlwzOnQ3puRTDtTh42fpf4d1e6cXKbNdeHitUiwB/HiBbxeXZd Yq59/ZrmLaAPASL8fRTQHi5euYvpRg3D9F7udCdF6acHApaWhArWiBn0kWGWpGa6Cb GJi3rFbakC181OmdDaGU6+RWE9g366/8zJ/BU88El0YefeLk6sn1ncmy4hctUqXWXq suk3NJlXq7EGl/C5DOw21GDolzPHcic9suvca/UBiaYuSeLH7lLHlawccXlgCzR0EB 0ec8CQBOLS4yA== Received: by mail-oi1-f199.google.com with SMTP id bi38-20020a05680818a600b0037b36626937so6946699oib.13 for ; Wed, 08 Mar 2023 06:38:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678286300; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TLXbWgCSumBQHNJIEiKWgsAVxLokeDk3mverzNy4nO4=; b=1+4ighRpc2llmJvS49JpaOCL65Vu7FAEomeJcC0FpZ97xnebbG3ubDXYWuIt2hD/Le 6bHgGTNQS26x1IXz1IRJTb0ZC83o3YuHwc6VnwDIyd5PDJyqttVGWKcegawCORN46Doo ejkZmKL8JoT7KQY+HXjh3vAnYCB0wCKxWzLRx9riqLU6LEfb64/PYGAGy7RWGzYXqb1o xCn34iu9mC8zUc3cuCVr6ACrKaisQ85s9a08sKoIqxZ99wPNHQXhB7t4MbjqkTKvqFxk J83EUb7MMEu8pWoVfcCeveA8zeJeOrn5xjj87XO2NPLAy0AMgWVlLlI+ra2CS9fi6rqk vcNw== X-Gm-Message-State: AO0yUKWYMSkm5wrGqLNhcoYqsqdawdPktCChkUIwopuB+sFWsV1viPRb Wm6C46XRYD3MgxOeqiKeEyVEDHrslkFqhnZqLkWqvJPWySiuns5Gmt/JrdoDGgRuveBgDn/TpIG WKirTj7AlkmWtGkpS0EzEAQGaqztkedSUkQyGGTVNgZqTn6PxiuX1dmLQYkXzlJXOj1Vkfw== X-Received: by 2002:a05:6830:334c:b0:690:f4b3:2e30 with SMTP id l12-20020a056830334c00b00690f4b32e30mr6444454ott.1.1678286300214; Wed, 08 Mar 2023 06:38:20 -0800 (PST) X-Google-Smtp-Source: AK7set8CbYqlLLaLD244VOn17v7HLJivmm7bmVIFY938Bnf4+RvnLS3VZ4SIkK1X3tytbIUaLC2Bkh8F169/l5atnKY= X-Received: by 2002:a05:6830:334c:b0:690:f4b3:2e30 with SMTP id l12-20020a056830334c00b00690f4b32e30mr6444442ott.1.1678286299931; Wed, 08 Mar 2023 06:38:19 -0800 (PST) MIME-Version: 1.0 References: <20230307150030.527726-1-po-hsu.lin@canonical.com> In-Reply-To: From: Po-Hsu Lin Date: Wed, 8 Mar 2023 22:37:41 +0800 Message-ID: Subject: Re: [PATCHv2] selftests: net: devlink_port_split.py: skip test if no suitable device available To: Jiri Pirko Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, idosch@mellanox.com, danieller@mellanox.com, petrm@mellanox.com, shuah@kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 8, 2023 at 7:41=E2=80=AFPM Jiri Pirko wrote: > > Wed, Mar 08, 2023 at 11:21:57AM CET, po-hsu.lin@canonical.com wrote: > >On Wed, Mar 8, 2023 at 5:31=E2=80=AFPM Jiri Pirko wro= te: > >> > >> Tue, Mar 07, 2023 at 04:00:30PM CET, po-hsu.lin@canonical.com wrote: > >> >The `devlink -j port show` command output may not contain the "flavou= r" > >> >key, an example from s390x LPAR with Ubuntu 22.10 (5.19.0-37-generic)= , > >> >iproute2-5.15.0: > >> > {"port":{"pci/0001:00:00.0/1":{"type":"eth","netdev":"ens301"}, > >> > "pci/0001:00:00.0/2":{"type":"eth","netdev":"ens301d1"}, > >> > "pci/0002:00:00.0/1":{"type":"eth","netdev":"ens317"}, > >> > "pci/0002:00:00.0/2":{"type":"eth","netdev":"ens317d1"}}} > >> > >> As Jakub wrote, this is odd. Could you debug if kernel sends the flavo= ur > >> attr and if not why? Also, could you try with most recent kernel? > > > >I did a quick check on another s390x LPAR instance which is running > >with Ubuntu 23.04 (6.1.0-16-generic) iproute2-6.1.0, there is still no > >"flavour" attribute. > >$ devlink port show > >pci/0001:00:00.0/1: type eth netdev ens301 > >pci/0001:00:00.0/2: type eth netdev ens301d1 > >pci/0002:00:00.0/1: type eth netdev ens317 > >pci/0002:00:00.0/2: type eth netdev ens317d1 > > > >The behaviour didn't change with iproute2 built from source [1] > > Could you paste output of "devlink dev info"? > Looks like something might be wrong in the kernel devlink/driver code. > The `devlink dev info` output is empty. The following output is from that Ubuntu 23.04 s390x LPAR, run as root: # devlink dev show pci/0001:00:00.0 pci/0002:00:00.0 # devlink dev show pci/0001:00:00.0 pci/0001:00:00.0 # devlink dev info # devlink dev info pci/0001:00:00.0 kernel answers: Operation not supported >