From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94653C433FE for ; Sun, 6 Dec 2020 13:37:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5695323121 for ; Sun, 6 Dec 2020 13:37:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbgLFNhY (ORCPT ); Sun, 6 Dec 2020 08:37:24 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:5305 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727696AbgLFNhX (ORCPT ); Sun, 6 Dec 2020 08:37:23 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 06 Dec 2020 05:36:43 -0800 Received: from [172.27.13.141] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 6 Dec 2020 13:36:41 +0000 Subject: Re: [net-next V2 08/15] net/mlx5e: Add TX PTP port object support To: Jakub Kicinski , Saeed Mahameed CC: "David S. Miller" , , "Tariq Toukan" References: <20201203042108.232706-1-saeedm@nvidia.com> <20201203042108.232706-9-saeedm@nvidia.com> <20201203182908.1d25ea3f@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> <20201204122613.542c2362@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> <999c9328747d4edbfc8d2720b886aaa269e16df8.camel@kernel.org> <20201204151743.4b55da5c@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> From: Eran Ben Elisha Message-ID: <43d6d07c-c75d-4a10-f49d-80f78ea07d39@nvidia.com> Date: Sun, 6 Dec 2020 15:36:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201204151743.4b55da5c@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1607261803; bh=cVNvhKHNjiOS1rDG0BYpMn83hJHnyIAk74JsiL/GFPM=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=h5H7Ihb0Fw3LSBHG/+M0sf8ECGXtbigyWDbhKu0/myLkMDaiNT/gEIlUwAAcIoGap 80qosCx2Rae6KbiZKF63n7eMp7spMHbbuvG3t4gTeG4HEGu9SMiriQ6pmJUXmiPRQL ETy3PzYxsGKADmrBW8WW9m0eL5fABE+KaRQ3asF/LhIpBl7O6xsYRUhK7OdGGLftoE SSSD1/pJMtTfBHNRL/jadQqEuq2ISxu+GJgm2D9KLBRoq0S+s390Xlfc67vaSXsZmE CF5DB2fTTZqO6nXBcguB8txrWi5aHMZ73hwcH97FJn2294kK9WUQimhlyX18h89tQ4 UjfFZozFiAGCQ== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 12/5/2020 1:17 AM, Jakub Kicinski wrote: >> We only forward ptp traffic to the new special queue but we create more >> than one to avoid internal locking as we will utilize the tx softirq >> percpu. > In other words to make the driver implementation simpler we'll have > a pretty basic feature hidden behind a ethtool priv knob and a number > of queues which doesn't match reality reported to user space. Hm. We are not hiding these queues from the netdev stack. We report them in real num of TX queues and manage them as any other queue. The only change is that select_queue() will select a stream to them if and only if they match specific criteria.