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 7E16EC6FD1F for ; Wed, 8 Mar 2023 11:42:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230051AbjCHLmJ (ORCPT ); Wed, 8 Mar 2023 06:42:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbjCHLmD (ORCPT ); Wed, 8 Mar 2023 06:42:03 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC08CBD4C0 for ; Wed, 8 Mar 2023 03:41:53 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id u9so64629991edd.2 for ; Wed, 08 Mar 2023 03:41:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; t=1678275712; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Is/quSvT3TJIPDFEbm6RZXsFk8WJ06IX2kfE6yYnF3I=; b=JoY9f/gwPqh8ulZsXsSOQ87r7ihrjL+906w9miXHgutvS5nyPCiFKX70IK/SUfoLAD 7AsGePMghdxXk/wRT85Ed0ildPaEq5dxDhiG467t0qbymo7y97hEIWkipeoGYaKZmTmj iVZa6VHrf/1NS0zoKobiWAHPILBCjjXxE/rfkVpnYtGK1mPhfcFamEB0n1k05ekB/g76 65L7yatB5sUWUuU1iz+Yf4mDSVn9mBT5fRUSqQmgfKjMEmaZmW4PDhppk7jQGlOPj0bD Ix2tPXz4k7s+tbki526dAWHYuvF74O3H2unqXz/RN5d9AF/UDS2IPqEweJve7ExeFNKg 3tFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678275712; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Is/quSvT3TJIPDFEbm6RZXsFk8WJ06IX2kfE6yYnF3I=; b=5LNcfGm8pnrBHfI0BfC8T+IU81C68E2/j3Mwf8QybNKWhsEFg/2vNHl3FMltQtVi2O 3L4soVc2H/9sArNyKDSCsS/sMIBLykRZAKysNTHPCe0qfM9F2zkKNbT/x3e0DiMLhBvo DKyiftg/47857Zm4bl5ptLeKYXHR26q4Xdq8qhYc8fBL5viCuJk2koACFBgU3Gfnep5H 0kWx1ZfGz7/BFFQpBmNbaSHbD3rXTtmfoYLQHetONrD4MURUGjqwwV5MRiE9VYTkpxi5 mDUkYjHpxCP74+SLLKxqjhd5zwA6sOYbXhpVuUPYiTGqia1LmivDpDjDod4NInL6X5G3 Yxjw== X-Gm-Message-State: AO0yUKUXA6eSv3eUHTpA6uYf3LVGDx/M0T4ovW3tOQ/OT+5KwkkBYJMs kW1xHUFspDBMsbM0d0Vy/33uYg== X-Google-Smtp-Source: AK7set/1uwA+p1HHny45n37ykgfDDSeAWNPouc1UdQ7cJxYi4nqXIkMr1mgaN97QuJjYiLj4BlfjJw== X-Received: by 2002:a17:906:1c13:b0:896:427b:148 with SMTP id k19-20020a1709061c1300b00896427b0148mr16362789ejg.1.1678275712179; Wed, 08 Mar 2023 03:41:52 -0800 (PST) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id y7-20020a170906470700b008ef13127b5fsm7380758ejq.29.2023.03.08.03.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 03:41:51 -0800 (PST) Date: Wed, 8 Mar 2023 12:41:49 +0100 From: Jiri Pirko To: Po-Hsu Lin 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 Subject: Re: [PATCHv2] selftests: net: devlink_port_split.py: skip test if no suitable device available Message-ID: References: <20230307150030.527726-1-po-hsu.lin@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wed, Mar 08, 2023 at 11:21:57AM CET, po-hsu.lin@canonical.com wrote: >On Wed, Mar 8, 2023 at 5:31 PM 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 "flavour" >> >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 flavour >> 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.