From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:42994 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751832AbeCUQcJ (ORCPT ); Wed, 21 Mar 2018 12:32:09 -0400 Date: Wed, 21 Mar 2018 12:32:07 -0400 (EDT) Message-Id: <20180321.123207.1873098520164488354.davem@davemloft.net> To: rao.shoaib@oracle.com Cc: borisp@mellanox.com, saeedm@mellanox.com, netdev@vger.kernel.org, davejwatson@fb.com, ilyal@mellanox.com, aviadye@mellanox.com Subject: Re: [PATCH net-next 01/14] tcp: Add clean acked data hook From: David Miller In-Reply-To: <34fcec92-dfc8-644d-ed54-c54eab71ffb6@oracle.com> References: <1dc8963f-a279-b03c-c0b8-805f10e1c41a@oracle.com> <437e3972-e88d-bee3-b6bb-9853867002f0@mellanox.com> <34fcec92-dfc8-644d-ed54-c54eab71ffb6@oracle.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: From: Rao Shoaib Date: Wed, 21 Mar 2018 09:16:48 -0700 > I agree, in fact I was using function pointers for the exact reason, > to change the functionality of a function. I asked Dave about the > use and he said No (Also note that the relevant CPU optimizations > have been turned off on selected NIC's due to the latest security > issues -- On AMD CPU's the optimizations are not turned off). So it > is Dave's decision -- I am hoping that he would reconsider and allow > me to use pointers as well as pointers solve the problem nicely and > are used extensively. This situation is different from your's Rao. That proposal was to add indirect calls for things the TCP stack internally can make internal state checks for. Whereas this current patch discussed here is a driver offload hook, which TCP cannot internally possibly know anything about. I am fine with what Boris et al. are doing here. It is a different situation than your's.