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 2C0DCC6FD19 for ; Thu, 9 Mar 2023 15:45:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230496AbjCIPo6 (ORCPT ); Thu, 9 Mar 2023 10:44:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbjCIPoz (ORCPT ); Thu, 9 Mar 2023 10:44:55 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D497DCA57 for ; Thu, 9 Mar 2023 07:44:53 -0800 (PST) Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (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-0.canonical.com (Postfix) with ESMTPS id 25C9C445B8 for ; Thu, 9 Mar 2023 15:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1678376692; bh=2gjXX1i93aqnxVp2YbSt/zPpzLesmU2S3pmU+Gog+1Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HeyhbxD7FEOwH/khmRhge16RsFfX0/yegjkeIBQ3S2jiiibuXuMqTjrbzedLTrvQr 9TWa9O95MzPA372p3IEDVNJo3hCR4qGEwuNgMdLWritfigazVDvB3wlDBOvK4lB0sD 2j5SQCFg7FPCYOHUnIC3ez1MwmMiNhTGx81aw7F8lKDZioF0/pFkajWhFYn9zT98uH XHybTXQ7A1T0qJHC3RYjGe1tg+y6LhwO9+52RUO1zq6jgJ1ShypajE5760D60TX+L1 CeWLNBubrh42T2ImyfOPfyylVE9bZGZ3SUexZlcyYHEJ1HCFjW7VMhkVqOCwUKbtqd Nd9BBKVuh2NLw== Received: by mail-ot1-f71.google.com with SMTP id s21-20020a056830149500b0069455bb5d96so1061324otq.23 for ; Thu, 09 Mar 2023 07:44:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678376690; 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=2gjXX1i93aqnxVp2YbSt/zPpzLesmU2S3pmU+Gog+1Q=; b=1k1asWX87sJkcCxwAOGXIV/vgQf9J1OdxiTnYCb5oyzMAkfb6+qkDiA5AEpNW4LWde v9F+d+MN2GikM8xnZvNf/sZShrGPY1tXWoEM5TKR9Uc/7zEKfqvL4v1LeEnShZz3aX94 LBTpJMtN7e5SscdYydUpueUUiX3u5RkC92xTUfDuQWGVGj7/cNPVZ+g6jQTzYit/p2qH CK1qKTF5Mcy+tlGUfWNUwjIp6ds/hlS4/t8+04BtDvNgQJ79TK6T8y/Ao3USdnXFeb0/ eFtYRpohSBMiAdcsDnYcdDdVZJ53BRRenNYiuNB8Svk2fEKnBJMPoEvLmvw+msFBOwef OazQ== X-Gm-Message-State: AO0yUKVYxFpkxgrG5QBtAOMpHoYFBwJ1jR0wA9kdW4jmjV7cxUQUrtSG B0BQsKmsioNXOb2KooULOQRp9mzvv7Xn2UOBdiRmyEkD0RSEJtJaVuh5NplLm4oFLUBlpqFtnIy hOQ3Q/lFe2Ek8UYDo9/8UpqvsV6J0DnoBv9NWy9dm/Jb6O7mSM7EO/xti7lEYQod9n/UjVw== X-Received: by 2002:a05:6870:7711:b0:176:542b:15a6 with SMTP id dw17-20020a056870771100b00176542b15a6mr7592829oab.2.1678376689875; Thu, 09 Mar 2023 07:44:49 -0800 (PST) X-Google-Smtp-Source: AK7set9qTHc/MLtOBogD5cWDMRNOl6LTsiZYhtc/i0lWBdziyMH4wHZEdhQgGeXF3+JBMumSFvjuR43EtXkZ4VRqg+A= X-Received: by 2002:a05:6870:7711:b0:176:542b:15a6 with SMTP id dw17-20020a056870771100b00176542b15a6mr7592818oab.2.1678376689634; Thu, 09 Mar 2023 07:44:49 -0800 (PST) MIME-Version: 1.0 References: <20230307150030.527726-1-po-hsu.lin@canonical.com> In-Reply-To: From: Po-Hsu Lin Date: Thu, 9 Mar 2023 23:44:10 +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 Thu, Mar 9, 2023 at 2:24=E2=80=AFAM Jiri Pirko wrote: > > Wed, Mar 08, 2023 at 03:37:41PM CET, po-hsu.lin@canonical.com wrote: > >On Wed, Mar 8, 2023 at 7:41=E2=80=AFPM Jiri Pirko wro= te: > >> > >> 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 = wrote: > >> >> > >> >> 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 "fla= vour" > >> >> >key, an example from s390x LPAR with Ubuntu 22.10 (5.19.0-37-gener= ic), > >> >> >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 fl= avour > >> >> 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 n= o > >> >"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 > > Interesting, could you try ethtool -i to get the driver name? > Hi, Here you go: $ ethtool -i ens301 driver: mlx4_en version: 4.0-0 firmware-version: 2.35.5100 expansion-rom-version: bus-info: 0001:00:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: no supports-register-dump: no supports-priv-flags: yes $ ethtool -i ens317 driver: mlx4_en version: 4.0-0 firmware-version: 2.35.5100 expansion-rom-version: bus-info: 0002:00:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: no supports-register-dump: no supports-priv-flags: yes HTH > > >kernel answers: Operation not supported > > > >>