Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756060AbbFVGxT (ORCPT ); Mon, 22 Jun 2015 02:53:19 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:39251 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754253AbbFVGxJ (ORCPT ); Mon, 22 Jun 2015 02:53:09 -0400 X-AuditID: cbfee68d-f79106d00000728c-c4-5587b0d385e6 Date: Mon, 22 Jun 2015 06:53:07 +0000 (GMT) From: Maninder Singh Subject: Re: [RFC PATCH v2] packet: remove handling of tx_ring To: Frans Klaver Cc: "davem@davemloft.net" , Willem de Bruijn , "dborkman@redhat.com" , Alexander Drozdov , Al Viro , Eyal Birger , "mst@redhat.com" , netdev , "linux-kernel@vger.kernel.org" , PANKAJ MISHRA Reply-to: maninder1.s@samsung.com MIME-version: 1.0 X-MTR: 20150622064440571@maninder1.s Msgkey: 20150622064440571@maninder1.s X-EPLocale: en_US.windows-1252 X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20150622064440571@maninder1.s X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=windows-1252 MIME-version: 1.0 Message-id: <1504484104.41691434955982414.JavaMail.weblogic@ep2mlwas07a> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCIsWRmVeSWpSXmKPExsWyRsSkWvfyhvZQg6473BaXd81hc2D0+LxJ LoAxissmJTUnsyy1SN8ugSvjxY8fTAXveCtWdOs2MO7h7WLk5BASUJNYtPcxG4gtIWAi0bvn HpQtJnHh3nogmwuoZimjxIN1fxlhiq78mMUCkZjDKNG2exo7SIJFQFWi+/dCMJtNQF/i7N51 zCC2sICdxLaTt8CmighoSVzYeJMJxGYW2MMscelpGcQVihLrbzwBW8ArIChxcuYTFohlKhJr j/4EsjmA4qoS/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izcK3LDD1u04tZ4bZ dX/LXKheCYmtLU9YIV5RlJjS/ZAdwjaQOLJoDiu6V3gFPCT+r1zJNoFRdhaS1Cwk7bOQtCOr WcDIsopRNLUguaA4Kb3CUK84Mbe4NC9dLzk/dxMjOAk9W7iD8ct560OMAhyMSjy8O5a1hwqx JpYVV+YeYpTgYFYS4TWYAhTiTUmsrEotyo8vKs1JLT7EaAqMtInMUqLJ+cAEmVcSb2hsYm5q bGphYGhubqYkzvv/XG6IkEB6YklqdmpqQWoRTB8TB6dUA+N0qdp9lk+Xqd7s/6b+PNl2pkh0 790ib6OYNvneeewlSt/5zssuvOfXFaQ5McXQYnnHTBOOs8+k/leHu7eql8lsDxPbzJGm805j pdHW8515DWvOdB5eWJDlpX9q7Qz+D6aea/hXsx4s2f7OWGyB8au+zza6idf6uqV82tdo3shm P+9ltJ31rhJLcUaioRZzUXEiAO1Uj29YAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t5M6rPQU003324 Content-Length: 1333 Lines: 42 Hi Frans, >> v1 = replace if()/BUG with BUG_ON() for tx_ring. >> >> v2 = > >I would keep this below the ---. There's little historical use for >this version information when it gets merged. > >> remove handling of tx_ring in prb_setup_retire_blk_timer >> for TPACKET_V3 because init_prb_bdqc is called only for NULL tx_ring >> and thus prb_setup_retire_blk_timer for NULL tx_ring only. > >I'd say tx_ring is false, rather than NULL. It's not a pointer (here). > > >> And also in funciton init_prb_bdqc there is no usage of tx_ring. > >s,funciton,function, Thanks for feedback , please check below changelog if it looks ok, Then i will share updated patch:- v1 = replace if()/BUG with BUG_ON() for tx_ring. Signed-off-by: Maninder Singh Signed-off-by: Frans Klaver --- Changes in v2: Remove handling of tx_ring in prb_setup_retire_blk_timer for TPACKET_V3 because init_prb_bdqc is called only for zero tx_ring and thus prb_setup_retire_blk_timer for zero tx_ring only. And also in functon init_prb_bdqc there is no usage of tx_ring. Thus removing tx_ring from init_prb_bdqc. net/packet/af_packet.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) Thanks Maninder????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????s?y??杶????i??????????i