Return-Path: Date: Sat, 28 Feb 2015 16:00:47 -0500 (EST) Message-Id: <20150228.160047.214686672558902639.davem@davemloft.net> To: eyal.birger@gmail.com Cc: willemb@google.com, edumazet@google.com, shmulik.ladkani@gmail.com, linux-bluetooth@vger.kernel.org, marcel@holtmann.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v2 4/7] net: packet: use skb->dev as storage for skb orig len instead of skb->cb[] From: David Miller In-Reply-To: References: <20150228.150830.1726900309943339124.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Eyal Birger Date: Sat, 28 Feb 2015 22:38:04 +0200 > My concern is that any value I pick based on the existing implementations > would need to be adjusted come a protocol with a larger address length. Then we need a method that requires protocols to register their address length in a manner that will allow us to validate that limit at compile time. This is not rocket science. Right now we're proposing to do utterly stupid shit like encoding integers in device pointers in the sk_buff, when that is absolutely not necessary at all.