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=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 E0D32C10F25 for ; Wed, 11 Mar 2020 07:05:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B85C220873 for ; Wed, 11 Mar 2020 07:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583910354; bh=+AL2BfEUIAr0/0yXML3b9QIUQZMmI2deqDZ8qDSRKfQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=WcEpCSf8By2kGyls1zg29sv+7se/eZ5IuxRgrKncxzT8LPbveDgB2OrFrRGNRdlc7 8FGGfUbWhSTi20itu1HEmxoKwfughQ/v7TRCTAXCB/dY9GH6HiFKbzcWyJwpLXrBWh yUR28DoOvfqhqecTLm00qau4wIXFVgx7vXuRAtXY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728220AbgCKHFx (ORCPT ); Wed, 11 Mar 2020 03:05:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:34328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbgCKHFx (ORCPT ); Wed, 11 Mar 2020 03:05:53 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6571420726; Wed, 11 Mar 2020 07:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583910353; bh=+AL2BfEUIAr0/0yXML3b9QIUQZMmI2deqDZ8qDSRKfQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rrUoUTjhbMbYhG4mKb/hbbIiTVzOrZgbvxLFiiuMZpxmZTNDi3mRwcPjC0ls3m6bp lqPBhnKLvIjQibxD147VZJ0EkViho3K8Erts1+StNUy7C3I686lXzfFwZUh3QJsNNB P/zsr8hc7pRxqIHjUNrCCQ4S40G/Y/H1cpZ4q+k0= Date: Wed, 11 Mar 2020 09:05:49 +0200 From: Leon Romanovsky To: Sunil Kovvuri Cc: Andrew Lunn , Linux Netdev List , "David S. Miller" , Tomasz Duszynski , Sunil Goutham Subject: Re: [PATCH net-next 4/6] octeontx2-vf: Ethtool support Message-ID: <20200311070549.GG4215@unreal> References: <1583866045-7129-1-git-send-email-sunil.kovvuri@gmail.com> <1583866045-7129-5-git-send-email-sunil.kovvuri@gmail.com> <20200310192111.GC11247@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Mar 11, 2020 at 12:09:45PM +0530, Sunil Kovvuri wrote: > On Wed, Mar 11, 2020 at 12:51 AM Andrew Lunn wrote: > > > > On Wed, Mar 11, 2020 at 12:17:23AM +0530, sunil.kovvuri@gmail.com wrote: > > > +int __weak otx2vf_open(struct net_device *netdev) > > > +{ > > > + return 0; > > > +} > > > + > > > +int __weak otx2vf_stop(struct net_device *netdev) > > > +{ > > > + return 0; > > > +} > > > > Hi Sunil > > > > weak symbols are very unusual in a driver. Why are they required? > > > > Thanks > > Andrew > > For ethtool configs which need interface reinitialization of interface > we need to either call PF or VF open/close fn()s. > If VF driver is not compiled in, then PF driver compilation will fail > without these weak symbols. > They are there just for compilation purpose, no other use. It doesn't make sense, your PF driver should be changed to allow compilation with those empty functions. Thanks > > Thanks, > Sunil.