Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5220125ybl; Tue, 14 Jan 2020 05:35:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwI8ulg2+X/G04mAOOynMxvEK+GdPtTUGP8yHaSOPvk63OfodGP9hptSM7GVHHtZMzaWanC X-Received: by 2002:a9d:6758:: with SMTP id w24mr18175993otm.155.1579008903215; Tue, 14 Jan 2020 05:35:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579008903; cv=none; d=google.com; s=arc-20160816; b=l4PYEpjDxgMgSIzMkRRDAuGxOw5qqH5SMzyAZSEmV2grnJmRTRZHmMyQUk42UQ2Pgp LsJjk9i9s8PTLqp86jqMtUrNIJpcz4d27X0VawwMq2POeh/XhQGcEnwuhEcoCbGJN0yv Fkvf5vzq4AUC4yGFPn/Qcd9HbKVG2meNYbihvrUzMd62UgGj++uny6kuYraSTVM6Lmnh VvBArv6Z85fZGl1sM11zCBBsFlmoHfxt8KTGZ1hSM98YsVmmG9SSLTsRnl50Cts0EZxs rQ8QKAmZMkmEeulInKfbz71p7OgXth9mU6wVznANnppYnlTzqnyOQbsEqUK5+IoV/44A vybw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:organization:subject:cc:to:from:date :content-transfer-encoding:mime-version; bh=tHTloSB7eglLqLePZY8bJA/cB2x+XYSZ31QS+JsFBJs=; b=Dwl0bGOBziGTwFjB6Cy4YsSI95nNjHvsLL2nVKFP9SU7ndF4fyRCqnDsfRz8ceZxzs BxXa/LR/8cKawxo88Y/imO0atX+SLcSSh2iPjASmr1kb7xTpbCjtQFEczRah3RI4Dmcx gV5sP+3UeBixNzRtkKVB5LOtIEjOTL/oivjkkluzi9HknxTlN3JmntRwNwASW3QhnSOT DnHh/XbRnfKiLOlH95ire4JeZtqzDzhMRG+wvEqA64/OsOzASosM/jwWT1AHRYLX6T59 cqJrZ9Ph8g6D8CuVZA72VNMBgfEEyEi9WMxWKYHOM6R9rEAWq0phDxWuOiFGfIfy0Cmc ACpg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p71si7641349oic.138.2020.01.14.05.34.49; Tue, 14 Jan 2020 05:35:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728761AbgANNd4 (ORCPT + 99 others); Tue, 14 Jan 2020 08:33:56 -0500 Received: from host-88-217-225-28.customer.m-online.net ([88.217.225.28]:43646 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726106AbgANNd4 (ORCPT ); Tue, 14 Jan 2020 08:33:56 -0500 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id B0457207D2; Tue, 14 Jan 2020 13:33:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 14 Jan 2020 14:33:51 +0100 From: Martin Schiller To: Jakub Kicinski 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 Organization: TDT AG In-Reply-To: <20200114045149.4e97f0ac@cakuba> References: <20200113124551.2570-1-ms@dev.tdt.de> <20200113055316.4e811276@cakuba> <83f60f76a0cf602c73361ccdb34cc640@dev.tdt.de> <20200114045149.4e97f0ac@cakuba> Message-ID: <3b439730f93e29c9e823126b74c2fbd3@dev.tdt.de> X-Sender: ms@dev.tdt.de User-Agent: Roundcube Webmail/1.1.5 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-01-14 13:51, Jakub Kicinski wrote: > 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? sethdlc validates the GENERIC_HDLC_VERSION at compile time. https://mirrors.edge.kernel.org/pub/linux/utils/net/hdlc/ Another question: Where do I have to send my patch for sethdlc to? > >> > 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! OK, I will send a v2 of the patch.