Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932487AbcCWSZS (ORCPT ); Wed, 23 Mar 2016 14:25:18 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:60135 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751430AbcCWSZQ (ORCPT ); Wed, 23 Mar 2016 14:25:16 -0400 Date: Wed, 23 Mar 2016 14:25:14 -0400 (EDT) Message-Id: <20160323.142514.2266464870508750029.davem@davemloft.net> To: yanhaishuang@cmss.chinamobile.com Cc: kuznet@ms2.inr.ac.ru, jmorris@namei.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gre: fix return value of gre_rcv From: David Miller In-Reply-To: <1458696883-15796-1-git-send-email-yanhaishuang@cmss.chinamobile.com> References: <1458696883-15796-1-git-send-email-yanhaishuang@cmss.chinamobile.com> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 23 Mar 2016 11:25:15 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1065 Lines: 27 From: Haishuang Yan Date: Wed, 23 Mar 2016 09:34:43 +0800 > Dropped skb's should be documented by an appropriate return value. > Use the correct NET_RX_DROP and NET_RX_SUCCESS values for that reason. > > Signed-off-by: Haishuang Yan IP protocol handlers do not use NET_RX_* values like this. They either return 0, to finish processing, or a negative value which indicates the negated protocol number to use to demux in the protocol switch again. Many of your patches seem very straightforward, but usually upon further inspection severe fundamental issues with your changes are found because you don't know what the proper semantics are for the pieces of infrastructure you are touching. Therefore, reviewing your seemingly trivial changes is a large inventment of time and energy. Please put more care into your changes, or else people will simply stop reviewing your work and instead put their effort into submissions which are more properly researched and easier to verify. Thanks.