From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH bpf 1/1] bpf: btf: Fix bitfield extraction for big endian Date: Tue, 10 Jul 2018 20:13:44 +0200 Message-ID: References: <20180709002202.019053555@fb.com> <20180709004002.440153594@fb.com> <20180709183236.r4b7gzmev5h4lcbw@kafai-mbp.dhcp.thefacebook.com> <457ec72d8d7c4cdd8c112f9c8c91b0e7@AcuMS.aculab.com> <20180710171836.xcegzammqym4sqri@kafai-mbp.dhcp.thefacebook.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Okash Khawaja , Alexei Starovoitov , Yonghong Song , Jakub Kicinski , "David S. Miller" , "netdev@vger.kernel.org" , "kernel-team@fb.com" , "linux-kernel@vger.kernel.org" To: Martin KaFai Lau , David Laight Return-path: Received: from www62.your-server.de ([213.133.104.62]:37597 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732424AbeGJSkI (ORCPT ); Tue, 10 Jul 2018 14:40:08 -0400 In-Reply-To: <20180710171836.xcegzammqym4sqri@kafai-mbp.dhcp.thefacebook.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 07/10/2018 07:18 PM, Martin KaFai Lau wrote: [...] > I would prefer to keep it as u16 which is the max width that is allowed for > this field in the wire format. Keeping the usage consistent can avoid > accidentally incorrect offsetting or writing wrong data out in other > cases. +1