From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56B58C06513 for ; Thu, 4 Jul 2019 12:17:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 275452189E for ; Thu, 4 Jul 2019 12:17:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727738AbfGDMRV (ORCPT ); Thu, 4 Jul 2019 08:17:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:57002 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727675AbfGDMRU (ORCPT ); Thu, 4 Jul 2019 08:17:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 94B2AAC98; Thu, 4 Jul 2019 12:17:19 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id DB3D2E0159; Thu, 4 Jul 2019 14:17:18 +0200 (CEST) Date: Thu, 4 Jul 2019 14:17:18 +0200 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Johannes Berg , Jiri Pirko , David Miller , Jakub Kicinski , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v6 06/15] ethtool: netlink bitset handling Message-ID: <20190704121718.GS20101@unicorn.suse.cz> References: <20190703114933.GW2250@nanopsycho> <20190703181851.GP20101@unicorn.suse.cz> <20190704080435.GF2250@nanopsycho> <20190704115236.GR20101@unicorn.suse.cz> <6c070d62ffe342f5bc70556ef0f85740d04ae4a3.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c070d62ffe342f5bc70556ef0f85740d04ae4a3.camel@sipsolutions.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 04, 2019 at 02:03:02PM +0200, Johannes Berg wrote: > On Thu, 2019-07-04 at 13:52 +0200, Michal Kubecek wrote: > > > > There is still the question if it it should be implemented as a nested > > attribute which could look like the current compact form without the > > "list" flag (if there is no mask, it's a list). Or an unstructured data > > block consisting of u32 bit length > > You wouldn't really need the length, since the attribute has a length > already :-) It has byte length, not bit length. The bitmaps we are dealing with can have any bit length, not necessarily multiples of 8 (or even 32). Michal