From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] ip: add udp_csum, udp6_csum_tx, udp6_csum_rx control flags to ip l2tp add tunnel Date: Mon, 2 May 2016 15:19:10 -0700 Message-ID: <20160502151910.3a1f6f3d@xeon-e3> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Wang Shanker , netdev@vger.kernel.org To: James Chapman Return-path: Received: from mail-io0-f171.google.com ([209.85.223.171]:33647 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755166AbcEBWTG (ORCPT ); Mon, 2 May 2016 18:19:06 -0400 Received: by mail-io0-f171.google.com with SMTP id f89so6093040ioi.0 for ; Mon, 02 May 2016 15:19:05 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 28 Apr 2016 15:50:47 +0100 James Chapman wrote: > Yes, that looks like the problem. > > The comments in l2tp.h which indicate that the csum attributes are u8 > values are wrong. Code in net/l2tp/l2tp_netlink.c accesses these > attributes using nla_get_flag(). > > Please submit a patch to fix l2tp_tunnel_sock_create(). Include good > change notes and your signed-off-by tag so that it gets reviewed. See > Documentation/SubmittingPatches if you haven't submitted a kernel > patch here before. Thank you for fixing this. James is is correct. Please format the patch according to the submission guidelines. For example, checkpatch complains about current patch. ERROR: code indent should use tabs where possible #156: FILE: net/l2tp/l2tp_core.c:1379: + ! cfg->udp6_zero_tx_checksums;$ WARNING: please, no spaces at the start of a line #156: FILE: net/l2tp/l2tp_core.c:1379: + ! cfg->udp6_zero_tx_checksums;$ ERROR: space prohibited after that '!' (ctx:ExW) #156: FILE: net/l2tp/l2tp_core.c:1379: + ! cfg->udp6_zero_tx_checksums; ^ ERROR: code indent should use tabs where possible #159: FILE: net/l2tp/l2tp_core.c:1381: + ! cfg->udp6_zero_rx_checksums;$ WARNING: please, no spaces at the start of a line #159: FILE: net/l2tp/l2tp_core.c:1381: + ! cfg->udp6_zero_rx_checksums;$ ERROR: space prohibited after that '!' (ctx:ExW) #159: FILE: net/l2tp/l2tp_core.c:1381: + ! cfg->udp6_zero_rx_checksums; ^ ERROR: Missing Signed-off-by: line(s) I am sorry that maintainers may seem like picky teachers in school always putting redline around spelling errors, but this is how we work to teach others how to follow the process.