Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp697843ybf; Fri, 28 Feb 2020 06:04:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyLsJ+QA+BnoIeX/pyJP9UUraSJF0bsBSIb+ABkRnPT/vjBC28Dnu/dyTdoM+Qoj42TigVu X-Received: by 2002:a05:6830:200d:: with SMTP id e13mr3469500otp.364.1582898664088; Fri, 28 Feb 2020 06:04:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582898664; cv=none; d=google.com; s=arc-20160816; b=PBRvkVIPD0ADh/ABByNZdoC1KlTqxEPNsfjhaSxHGItjNCOtCVYQl4Y8zbe4K9CIh9 6+DEvek2+tWpUFGamB8vRUan8Qc86gqMwII9nr2In0MfKKB//17l6HCCX9jbL+qerqdX lliWqG06dwJt5ZjCFDACRpQmedWpd4FAk2AEi5qWahl+70A2lX0pdQRFdRhjJMUtb8mj 2gVP5iwYuwp14dVm1oS7J3kTL9r/8egIt4rNVlhWI0qWxhBqvIBX/MuTEeTzUdi0qeIZ ZI2oM43diejqnRMUuWqaIv11dhNtMPqF8Qj9Ymvj00DAmVmSh/5VSLXQXyzB5oe402tH F+uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AeFlf8/3IN4nWVCE6JFON5V71Wzrs06d1BBOTko8Y5w=; b=CFHAyJb/JjHcf/rvNs6YHRnSmiYnbAr5W1LVdtO3ec7XeTiYPtYjf828PpLAs9yj2H Kvyi/Lq06FHT/h3EKXX1XUSwt1ZxCyRWXnz8dBbkMwZUeSLlrdQN2C0McgDDCRXQreop z5WT0HCeafet/4gR/YU8EtdXogGkz0k4aD1V53kft6RIVTx+xRVNJddlu2QGrU0Il9sD Auz3SZypJNjvBVpyCiXak3Tag0rBy+ZdmRJDFhRTrrkkTwSeZMyE8pOi5VZHuiZNJ879 zUy+m+Se2WVRLI+HOFhmu9QDsdv8HJZ1nYOW374UDzrT7dc/LGBwImcfTF+zaIUDrUBU FpTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=TypOLA+s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w197si1945110oia.101.2020.02.28.06.04.07; Fri, 28 Feb 2020 06:04:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=TypOLA+s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726956AbgB1OD7 (ORCPT + 99 others); Fri, 28 Feb 2020 09:03:59 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:38578 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgB1OD7 (ORCPT ); Fri, 28 Feb 2020 09:03:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AeFlf8/3IN4nWVCE6JFON5V71Wzrs06d1BBOTko8Y5w=; b=TypOLA+sR/rR8DuzM3pJzSZvCA vkjJIR1hicy4VHaIr6mi2182gwb76Ojs5OPaz2Nbef+EwvGihVSymrvKwrll12sTDhGFKdKctwHfy hEW90GuiNYRHqfgP5m09vksHoA2FWQBEn9o7r3UZjyScMMgN1r3zm1S83tkhwgikyW+s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1j7gF9-0004Fl-1E; Fri, 28 Feb 2020 15:03:55 +0100 Date: Fri, 28 Feb 2020 15:03:55 +0100 From: Andrew Lunn To: Jiri Pirko Cc: Vadym Kochan , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "David S . Miller" , Oleksandr Mazur , Taras Chornyi , Serhiy Boiko , Andrii Savka , Volodymyr Mytnyk , Serhiy Pshyk Subject: Re: [RFC net-next 1/3] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX325x (AC3x) Message-ID: <20200228140355.GF19662@lunn.ch> References: <20200225163025.9430-1-vadym.kochan@plvision.eu> <20200225163025.9430-2-vadym.kochan@plvision.eu> <20200226155423.GC26061@nanopsycho> <20200227213150.GA9372@plvision.eu> <20200227214357.GB29979@lunn.ch> <20200227235048.GA21304@plvision.eu> <20200228063623.GI26061@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228063623.GI26061@nanopsycho> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 07:36:23AM +0100, Jiri Pirko wrote: > Fri, Feb 28, 2020 at 12:50:58AM CET, vadym.kochan@plvision.eu wrote: > >On Thu, Feb 27, 2020 at 10:43:57PM +0100, Andrew Lunn wrote: > >> > > Please be consistent. Make your prefixes, name, filenames the same. > >> > > For example: > >> > > prestera_driver_kind[] = "prestera"; > >> > > > >> > > Applied to the whole code. > >> > > > >> > So you suggested to use prestera_ as a prefix, I dont see a problem > >> > with that, but why not mvsw_pr_ ? So it has the vendor, device name parts > >> > together as a key. Also it is necessary to apply prefix for the static > >> > names ? > >> > >> Although static names don't cause linker issues, you do still see them > >> in opps stack traces, etc. It just helps track down where the symbols > >> come from, if they all have a prefix. > >> > >> Andrew > > > >Sure, thanks, makes sense. But is it necessary that prefix should match > >filenames too ? Would it be OK to use just 'mvpr_' instead of 'prestera_' > > I would vote for "prestera_". It is clean, consistent, obvious. Yes, prestera_ is better. It also avoids the vendor name, which often changes as companies are bought, sold, split, etc. Andrew