Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5175915ybl; Tue, 14 Jan 2020 04:53:11 -0800 (PST) X-Google-Smtp-Source: APXvYqx8uZKvNsiMd8LTUvPRkj8LHd00c1FCRcc0KM6P06rkq1kn+Ftm7vFrn8imTPej/xwp+Fwt X-Received: by 2002:a9d:4d8d:: with SMTP id u13mr16087883otk.299.1579006391124; Tue, 14 Jan 2020 04:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579006391; cv=none; d=google.com; s=arc-20160816; b=PvprDuj7WBqS+8MMYXK86WkKoRjX93ACDA5nY6NP5IlSWGfKeaoCjRs6lPabKMhnQw MPPXj13i598+ZPlmX2ocZhvz30myDg4364e4U7STLdQ14aZWrA7DD0FeKmrLWpoZfd8d HO9Ek3+LbgzzjFsUBmKP332prHLtCofJA1CS2BtVum2hzJi6mbyMOEObTVUSfUmj5puv sH/NVb7Hcbm/4aGSz9rMu0DeSXJBLCkYeSgzzNmXXkFZtHnbmrBuOIzEw3JlINBWWFs4 eWBUNQ5Oe5vbDYg55K1vB90/WF5nn2l72BVVbuF9wEH2DwlcFFVI27Uzizit30hdgwG5 wn1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=kSC9TeFUobiO3Iz/cyDPdWPcN3QsQfg0WTbYeDOz+PU=; b=aCwzmgwI4w9o+jzzI6BNiKK3vNoC+toibEpzpNlbkBEkmrT14NQGpP3/bKhkDg71sW eAlDPHmUljTk6DRcIjkBGkDWI66df4lgpQidtfflenjMIQDC2lsA5vlGvA6QKmY9SXTe igUrTUz4fmzr3+Uv93wxalDrJkv2NL4cB8i1lTS69EBbbTNjMOFeMhig5NbYEMQtBSJD 74gt7YIRDpXJlhBwekiQ+OufJlAGWbWddadspvp3uKb2CQpzw6uSHG5+fJvnJjOgOCmO nxpSGiYIMjsT08nN8uW6Num87UY7Ib12NNOC6Ithahm6vXZv50TB7XKtS05gc8K+69BM oROQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=lZPhlWcV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i19si7237388oik.272.2020.01.14.04.52.59; Tue, 14 Jan 2020 04:53:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=lZPhlWcV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728709AbgANMwF (ORCPT + 99 others); Tue, 14 Jan 2020 07:52:05 -0500 Received: from mx4.wp.pl ([212.77.101.11]:34144 "EHLO mx4.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbgANMwD (ORCPT ); Tue, 14 Jan 2020 07:52:03 -0500 Received: (wp-smtpd smtp.wp.pl 30740 invoked from network); 14 Jan 2020 13:51:57 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1579006317; bh=kSC9TeFUobiO3Iz/cyDPdWPcN3QsQfg0WTbYeDOz+PU=; h=From:To:Cc:Subject; b=lZPhlWcVJ2DsliFxcUNtxkmqSMEeO9Yfdrsah7E1tx25EE4F2AHXd2Fj4V9xskmf+ r43qlGV5WNpg3+chbg5Kd2RjOFA6Flv4OjWY7kPX1yxn9jcajiy9OclOtFr1G+vYQH DVQLH3FYL+7h7PVIuXbxvjCIrVIf3NPdS88/QMg8= Received: from c-73-93-4-247.hsd1.ca.comcast.net (HELO cakuba) (kubakici@wp.pl@[73.93.4.247]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 14 Jan 2020 13:51:57 +0100 Date: Tue, 14 Jan 2020 04:51:49 -0800 From: Jakub Kicinski To: Martin Schiller Cc: khc@pm.waw.pl, davem@davemloft.net, linux-x25@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] wan/hdlc_x25: make lapb params configurable Message-ID: <20200114045149.4e97f0ac@cakuba> In-Reply-To: <83f60f76a0cf602c73361ccdb34cc640@dev.tdt.de> References: <20200113124551.2570-1-ms@dev.tdt.de> <20200113055316.4e811276@cakuba> <83f60f76a0cf602c73361ccdb34cc640@dev.tdt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: 107e775709673ca4f5508c7caa3a988f X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 000000A [waMU] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jan 2020 06:37:03 +0100, Martin Schiller wrote: > >> diff --git a/include/uapi/linux/hdlc/ioctl.h > >> b/include/uapi/linux/hdlc/ioctl.h > >> index 0fe4238e8246..3656ce8b8af0 100644 > >> --- a/include/uapi/linux/hdlc/ioctl.h > >> +++ b/include/uapi/linux/hdlc/ioctl.h > >> @@ -3,7 +3,7 @@ > >> #define __HDLC_IOCTL_H__ > >> > >> > >> -#define GENERIC_HDLC_VERSION 4 /* For synchronization with sethdlc > >> utility */ > >> +#define GENERIC_HDLC_VERSION 5 /* For synchronization with sethdlc > >> utility */ > > > > What's the backward compatibility story in this code? > > Well, I thought I have to increment the version to keep the kernel code > and the sethdlc utility in sync (like the comment says). Perhaps I chose the wrong place for asking this question, IOCTL code was my real worry. I don't think this version number is validated so I think bumping it shouldn't break anything? > > The IOCTL handling at least looks like it may start returning errors > > to existing user space which could have expected the parameters to > > IF_PROTO_X25 (other than just ifr_settings.type) to be ignored. > > I could also try to implement it without incrementing the version by > looking at ifr_settings.size and using the former defaults if the size > doesn't match. Sounds good, thank you!