Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2447472rdb; Wed, 21 Feb 2024 08:00:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+eu6KJ258fYFU8RYaZzdKPkzqhWr6k4TYsWlh7bIpkW1pyaaIi6B0CRxF9fqxg3ww8BxT3jvC28bdJ3U+NDsCejXhm3VMeB8kfRuCtA== X-Google-Smtp-Source: AGHT+IEgFPOyLJEoJoeHVQZotxQiXZvRFu3LM/bnQ8YkT3FOQxUmACoP9fe61SYSB++P4eEo8k0O X-Received: by 2002:a05:6512:b82:b0:511:a477:64aa with SMTP id b2-20020a0565120b8200b00511a47764aamr13540673lfv.51.1708531226492; Wed, 21 Feb 2024 08:00:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708531226; cv=pass; d=google.com; s=arc-20160816; b=RhQ2DO8xGABSpcY3OgCy8MAmNn0orIe/7OTUp5sXJwPuCgXpL4iNktsgbvov0T1odb pdtwKRyH5O5/Kto2GPrUygIyMTlitvFvJylr/Maqbz6bYRlDzbZnVx9Uj2YERXkfNlXy U2B/MEMdW2RmJTvDsQhto6KIEykQmnPM+qFblruzq71SOditBlDES8/SuRWJIVI5KDGd iqeTxC3nr609i1rTJvzNXL6WXj+0TuKWEpOdG3ZMMVXmYUKVL9G/nFhGDDEdkXSoJZjn sLvJ3zGpWfR25h8tqlXDaxQbdwIyYLgV+z2JSDvD6Bmk3Y5Nvk4JaYdYxJ8iNOyqebfw 72xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=1LIWWe2AXJk8XZ9/FCqtCbXVReSA1Du2dj5i3r+vvHk=; fh=R5YJqHazzIjTtjvX7XaI6LzV2Gg5oYniz/Hkrlkhh5E=; b=hwVQUNoHB0G82h/63XKCvLriUDTcGTHbumw7gkIaGy0cVOPHwxuDNcTjf1hQ3HLJoP MHkTkVN9bpwtACwbwi+PvJ2hE0XuHoHEKj1CjUBg+hICjPU9cR5cVjZMuUI/by6Klemg 7nWk4+porOwfe5sch/PEkoqhKt1LSqeaopRsCycBwlgFrOnW1S0rb32SWsz+FXh6W5Te cfxGITZINBq7KCj5dYY0ZQih7JASJgXa0ili0e+GfL1yYHfM650hjeGtpGPOCi2gLD2R sOtLg8USa+h6vYvjlhucYXEE2ep6OiRtP/Z8JM/YTye6EWaCWlN+gud/BsPtndi1TfUF /O9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=mPfWMdlu; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-75056-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cw4-20020a056402228400b00563f58848e3si4422707edb.125.2024.02.21.08.00.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:00:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75056-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=mPfWMdlu; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-75056-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 209DF1F25836 for ; Wed, 21 Feb 2024 16:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7E2882885; Wed, 21 Feb 2024 15:58:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="mPfWMdlu" Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A253182869 for ; Wed, 21 Feb 2024 15:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708531125; cv=none; b=c0cZTJI/3c8d3Mml98M+Yz4emkMMgyTkVXn7HYpnfg60P0YFubWMmxfXpZKkWEC/M28GLRkv2K8eqM5LEYRocX57hbqgakayVEgyuF12TKN7kS1tEXnt6WZJPaG1BdamCDt2s89XIXwdj6q3UywgkNMZUxASj2rqVmQoXHXy1z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708531125; c=relaxed/simple; bh=Nj1mtaX5eAfgwf0WZLLiG/Ms4DFiuQOrm99GPUUsJYw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=RovgUKSTXz71b0Se0xCVIWp345nZy2xXO/KkbywTuro/kE+x3uFAiH5Rx7zVq1YEKdoV1+9FE+dJn5zC6BntELqA9mTRKKb3yEi5Afyi2suUtpmIx5gfNeACoYSVPDqdFcVkvAS82vmDPtmoHWHmSEPOP02Zq0eF/7Vf/Jhq0zg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com; spf=pass smtp.mailfrom=fastly.com; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b=mPfWMdlu; arc=none smtp.client-ip=209.85.215.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastly.com Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-5dbf7b74402so5546428a12.0 for ; Wed, 21 Feb 2024 07:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1708531123; x=1709135923; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=1LIWWe2AXJk8XZ9/FCqtCbXVReSA1Du2dj5i3r+vvHk=; b=mPfWMdlu4lKgpaWCCwc95Y5nJClBpAoEurNQoSzo4OqlFyu+nAWYfbSjpGPpVp1fJF DSnlqL52keBnP1E0UiLWy9ZTr+mTUgGmLsTg5+QXQWHlgN4N8kNDjiPigD3abPi6hoKt 7ICEk/C2VsnhwefS3zcn5kSk3s6niIjK4eDy0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708531123; x=1709135923; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1LIWWe2AXJk8XZ9/FCqtCbXVReSA1Du2dj5i3r+vvHk=; b=P10zFMvd6t6As9wjdP9OS1iru6YaSEgKg4kcuF/ipmiKZYDJhorCK+5SrxPGsdelpq l4rpOy10RDnpdtk1CqCCNmoqu38CwRa+ZMDPP5uZ6bREBV4KyILWwI0ZQW6GQWxOZlMi wQKXObjWFrF90OeTO5gKYh9fnxoNmtH6oYy0OqccScTv1d3PNO5sBBbxnrG0IUIj6Qdh Qc89cMOMYp/cO/MvJzA0Uubc7XAtZQU40Q+NUmatEnmeLxpfsrirS693g//qp5GWUS78 K6J2ztLSXhlHhIofbTWsa4x0Fg6KxElLnYEJxqYJIAPOUtcK5HnWNVn0qZGqho7teHWb WK5A== X-Forwarded-Encrypted: i=1; AJvYcCXoqEhxuUebMEvlRkP3HmfuJm2SP/gT4/jldF+3ykFJP9Re6jYPm3EkxpE0tubiNS1FsMiNzJj548GjkXtmA2Zqs10qlqDyFBPyk5wh X-Gm-Message-State: AOJu0YxXM+EWUqcvJ4baKCB64sn9ltkUoFvV3uqNqD2L7RvCyxHqHGJS qFlc+ICSL3KRplwrX20OGBfew5vR8Z6Sm0zvZB3jzw6d94FLXAm9GdUZ/gI6iWw= X-Received: by 2002:a05:6a21:670b:b0:19c:9b7b:66a with SMTP id wh11-20020a056a21670b00b0019c9b7b066amr18671389pzb.49.1708531122923; Wed, 21 Feb 2024 07:58:42 -0800 (PST) Received: from localhost.localdomain (c-24-6-151-244.hsd1.ca.comcast.net. [24.6.151.244]) by smtp.gmail.com with ESMTPSA id du17-20020a056a002b5100b006e46672df97sm5751327pfb.75.2024.02.21.07.58.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2024 07:58:42 -0800 (PST) From: Joe Damato To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joe Damato , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jesper Dangaard Brouer , Stanislav Fomichev , Amritha Nambiar , Tariq Toukan , Sridhar Samudrala , Alexei Starovoitov , Larysa Zaremba Subject: [PATCH net-next 2/2] netdev-genl: spec: Add ifname to netdev nl YAML spec Date: Wed, 21 Feb 2024 07:57:30 -0800 Message-Id: <1708531057-67392-3-git-send-email-jdamato@fastly.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1708531057-67392-1-git-send-email-jdamato@fastly.com> References: <1708531057-67392-1-git-send-email-jdamato@fastly.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add support to netdev netlink spec (netdev.yaml) for the ifname of the net device. Signed-off-by: Joe Damato --- Documentation/netlink/specs/netdev.yaml | 10 ++++++++++ tools/include/uapi/linux/netdev.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/Documentation/netlink/specs/netdev.yaml b/Documentation/netlink/specs/netdev.yaml index 3addac9..9a92d04 100644 --- a/Documentation/netlink/specs/netdev.yaml +++ b/Documentation/netlink/specs/netdev.yaml @@ -240,6 +240,10 @@ attribute-sets: threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent. type: u32 + - + name: ifname + doc: name of the netdevice to which NAPI instance belongs. + type: string - name: queue attributes: @@ -264,6 +268,10 @@ attribute-sets: name: napi-id doc: ID of the NAPI instance which services this queue. type: u32 + - + name: ifname + doc: name of the netdevice to which the queue belongs. + type: string operations: list: @@ -381,6 +389,7 @@ operations: - type - napi-id - ifindex + - ifname dump: request: attributes: @@ -400,6 +409,7 @@ operations: - ifindex - irq - pid + - ifname dump: request: attributes: diff --git a/tools/include/uapi/linux/netdev.h b/tools/include/uapi/linux/netdev.h index 93cb411..80762bc 100644 --- a/tools/include/uapi/linux/netdev.h +++ b/tools/include/uapi/linux/netdev.h @@ -117,6 +117,7 @@ enum { NETDEV_A_NAPI_ID, NETDEV_A_NAPI_IRQ, NETDEV_A_NAPI_PID, + NETDEV_A_NAPI_IFNAME, __NETDEV_A_NAPI_MAX, NETDEV_A_NAPI_MAX = (__NETDEV_A_NAPI_MAX - 1) @@ -127,6 +128,7 @@ enum { NETDEV_A_QUEUE_IFINDEX, NETDEV_A_QUEUE_TYPE, NETDEV_A_QUEUE_NAPI_ID, + NETDEV_A_QUEUE_IFNAME, __NETDEV_A_QUEUE_MAX, NETDEV_A_QUEUE_MAX = (__NETDEV_A_QUEUE_MAX - 1) -- 2.7.4