Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp896392rdb; Fri, 2 Feb 2024 07:18:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6GkfNkSclRHrfanGr8eBl17qvKHqRKCi5beYuWFbG+eA6Ev+H8ZgvNOW74kAjzkV4Ao9O X-Received: by 2002:a05:6a21:2d08:b0:19e:40d8:7112 with SMTP id tw8-20020a056a212d0800b0019e40d87112mr2479336pzb.6.1706887089744; Fri, 02 Feb 2024 07:18:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706887089; cv=pass; d=google.com; s=arc-20160816; b=ITkqaj18Q8Ic3qzcS7uVLbRRTlKmQvFJlbB5eYZ0IOV29/xJeI88DspovCVd6bSkIi SSHPyxyThakShBiXWXPTmM1CvrjrtRoDwzHkF9OXtpCfz+K6hqmK81d5Yz6tTCGDE+Me UHU2PhhaDK3heyIU1dU2dfeAVd9ahKhWB43Pyv/0RgXI9AI+/eCdlZVyziAYCOmQ6oVU A4HjFQYqCQ8LzvM/dtUC00wxzszcn9+TNNuourIK0hRWpyPP5xoBzcWa52dOu1f5G3eb dJ/wN2ComSkbSBY0NX2XDYudsri3F+lACkTMGVBkQ+4mQHy63kkCN12ElWrd2OTgTVbg Q8hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=kU+/unKfx+Ejj62/GX3qwwj1B4YVl83Qf5yBYnMpIZ4=; fh=/P9S9tzzJ2rKJcbJWU9e2I2S2UjRlCd9N7+dqlSnu7c=; b=Qwja4a80/m2DT0IyCzRGv89AnSfYGGBnqgP5SRLICzR9juJOfcWHJ4HGGSQM/iceIM xJUeT07ZnS7nN2B9pW9VHe1ImmXuwzHMHRnM6McP10j+E3lyFEbMaFyfGP3fHxhW0f6S 1Eo9eECa/Vs+42TCIRzTaOIiWziw8ET4PHCFMx1HKARFYgxqTedKe2IZS71DG3Ezncdf U8gjvHbwTDmGEhs85Y8N+KCDhqRxldHotzoYKAgO+zsTeNkj/sKN34lqyXdsT9jrcUf/ Glo58QfuCMqC9TDddTMJ/VhIkB0B7isXGBxHx4Tn/aRraC7PkCYltZwBRpkhrDgYwf/P kU2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="gRup/HNv"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-49980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCWByD4cxABLzxSxTXZbV8+yLe7P8/zR1kNmRpb0odznXk5C2uXQJcoHa5DymiU3pjr7B92ykUFWQNUfXKQZY5u5dIKmJ8JUO07ReaJQdQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k190-20020a633dc7000000b005dbf47f8df9si1380268pga.66.2024.02.02.07.18.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 07:18:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="gRup/HNv"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-49980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EFFB6B29819 for ; Fri, 2 Feb 2024 15:00:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E195145B0A; Fri, 2 Feb 2024 14:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gRup/HNv" Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 1AE6F144609; Fri, 2 Feb 2024 14:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706885997; cv=none; b=J2SM8k9F/JqtsOp05MHN0Da5ASNmWDzs/Ym0Gln2rzQSsSiz0teW3PObmbs0i2Y9IIEx021W+VWM1/q5mT20pebINTzsWYxvhzPygYs9ARBlxUGJ+Y80Zhhyb3kV8iK2crfIS6K+s25XjQT6eQZd4ff+21+dn+atIPHa6lsl1w8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706885997; c=relaxed/simple; bh=CuetZk/+EkjNrIs+1rRl17K7bkTvfXOKs+1QbXGDq5I=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=Eni+zN5p39LK0Mp0tJhmO3lN/RS4PoFq4J9RfKUSRYs6wu7sZssLD0TR6f1cqTr0tsrOSULQ5Wja+kyWCro3HYaReh8yWcYEFSqxrxSGo1P7XvvB/VG/owt9nV1igXyvnW9rZpzj5OW90X+tEZVwUhgvlhpy2F5VYreph6i8pQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gRup/HNv; arc=none smtp.client-ip=209.85.160.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-42993124fa1so12709341cf.3; Fri, 02 Feb 2024 06:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706885995; x=1707490795; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=kU+/unKfx+Ejj62/GX3qwwj1B4YVl83Qf5yBYnMpIZ4=; b=gRup/HNvLHP5VVkBwZWORBMdGTw8u6kVfpYM7oGG1bcIuG34lGNb1VYYrY2FApv7R2 YfZWgRujpfz274TGDrpFAkSjyOevBFpmEUz5J1ioVhJTCVMO/WJkDbeWcKvH2VbV52rl oyZjNd182IBXkzkASgFdzhfRR+GRyLj8iaSuH6dB9sNWU2vh6q7datOQ0JwqiwWxfP2x 6KCDvYBFkgOEJFjjNvgxNceYvUBORCU85Qs0MV3vJAnmrMqzC2QMfNO9HSuyAHjlI5FG JALk5kvRrT12ip99pknQBYusjDRNYiINdJs7/XOl0sTYGx9NJaIuOCz0KEbDH5w3gZtY mthA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706885995; x=1707490795; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=kU+/unKfx+Ejj62/GX3qwwj1B4YVl83Qf5yBYnMpIZ4=; b=oTTtDt1x05Lt7ujMg5kBC0R+gSOaVk31f8/18yuG0Cr0EXefqm0rkxl3y7NTYUm6Go DM5uBX7qvTUNmdlPv4F1cVncbEqVA+WapDCp2/k4U7nh51ZRZS7gA3F4kS/k/HU/4XiP fEsNWRy09HxdKwTBls4y9oJEHXnKeyTAIfth+N6PjsrP9qs5wpX+CtJ0/cscRzbLnhO7 QUxQwIOtgJXXODYO+tHUma+x7I8V0VYejYhECcoT2YupENnwEZClUJQMHIq+7x46Tq8N fc/6Kgq4or0jZxnjnGkZorFlLAF49MCXPUUQ8H55KZZan0sjyL0bUH94FKYtfGCKS8lA y0YQ== X-Gm-Message-State: AOJu0Yw2WKjF+vQpwfFEoH6SlHI9ogWSfl5okSaKxLqZvQX+VqhBq2a0 7TX8GY4QBDfEeSQ2M3l1Rx7DYMdOgONxmtppQhtN6UwoNsPfjXua X-Received: by 2002:ac8:57c9:0:b0:42b:ec11:1a6b with SMTP id w9-20020ac857c9000000b0042bec111a6bmr2065012qta.67.1706885994784; Fri, 02 Feb 2024 06:59:54 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVSfTOAl+HMNROlvzaMpmSsNFz3QFPrSf/Upgh62GWhLcQr79rAQQOj8lX3QHn74qNcID09EyJWNiqwyC2vb9NBUXoaJFnlFHarQXEcH8P+79PTbS5eKgaD3wTR8Zut9qQzmTG6Dmdbphy7SHO59jZ0J3g6JO3kef7xPrNN2S5XgJpdulTCrI3R31MQIbRweypEhthxq1jbwCXBfL2FpClhNMWtgdf+yflo83lmhE/MHKWinB8N1WDOAu/TQls5o+Eaw6QpaWeiMlCQmGciuzg= Received: from localhost (131.65.194.35.bc.googleusercontent.com. [35.194.65.131]) by smtp.gmail.com with ESMTPSA id hh12-20020a05622a618c00b0042bf2bda630sm873773qtb.68.2024.02.02.06.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 06:59:54 -0800 (PST) Date: Fri, 02 Feb 2024 09:59:54 -0500 From: Willem de Bruijn To: Yunjian Wang , willemdebruijn.kernel@gmail.com, jasowang@redhat.com, kuba@kernel.org, davem@davemloft.net, jiri@resnulli.us Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, xudingke@huawei.com, Yunjian Wang Message-ID: <65bd036afa50_2ef2a929420@willemb.c.googlers.com.notmuch> In-Reply-To: <1706860400-61484-1-git-send-email-wangyunjian@huawei.com> References: <1706860400-61484-1-git-send-email-wangyunjian@huawei.com> Subject: Re: [PATCH net-next v2] tun: Implement ethtool's get_channels() callback Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Yunjian Wang wrote: > Implement the tun .get_channels functionality. This feature is necessary > for some tools, such as libxdp, which need to retrieve the queue count. > > Signed-off-by: Yunjian Wang Reviewed-by: Willem de Bruijn