From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ahmed Abdelsalam Subject: Re: [PATCH] ipv6: sr: update the struct ipv6_sr_hdr Date: Tue, 14 Nov 2017 15:31:48 +0100 Message-ID: <20171114153148.7f43787fb8cc9fe7a7dcb4fc@gmail.com> References: <1510519021-1275-1-git-send-email-amsalam20@gmail.com> <20171114.213728.2022386575888884158.davem@davemloft.net> <1a10815f-8830-e71b-a323-36566befc99a@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David Miller , , To: Edward Cree Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:35371 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755148AbdKNObv (ORCPT ); Tue, 14 Nov 2017 09:31:51 -0500 Received: by mail-wm0-f65.google.com with SMTP id y80so21679277wmd.0 for ; Tue, 14 Nov 2017 06:31:50 -0800 (PST) In-Reply-To: <1a10815f-8830-e71b-a323-36566befc99a@solarflare.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 14 Nov 2017 14:14:01 +0000 Edward Cree wrote: > On 14/11/17 12:37, David Miller wrote: > > From: Ahmed Abdelsalam > > Date: Sun, 12 Nov 2017 21:37:01 +0100 > > > >> diff --git a/include/uapi/linux/seg6.h b/include/uapi/linux/seg6.h > >> index 2f6fb0d..3f4b3ab 100644 > >> --- a/include/uapi/linux/seg6.h > >> +++ b/include/uapi/linux/seg6.h > >> @@ -26,9 +26,9 @@ struct ipv6_sr_hdr { > >> __u8 hdrlen; > >> __u8 type; > >> __u8 segments_left; > >> - __u8 first_segment; > >> + __u8 last_entry; > > > > This is user ABI and cannot be changed. > > > > Sorry, folks should have considered these issues when the SR > > changes were submitted. This field must keep the name 'first_segment' > > forever. > > Surely renaming struct fields only changes the API, not the ABI? > Binaries compiled against the old struct definition will still behave the > same (AFAICT the patch doesn't change how these fields are used), while > sources being recompiled (so they care about the name change) can be > changed. Yes Exactly, What I meant by the patch is to change just the field name, but the logic still the same. Also it will not make sense to have the field name differnent from the draft. -- Ahmed