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=-9.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 A9C8BC43381 for ; Fri, 1 Mar 2019 16:05:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6610F2084F for ; Fri, 1 Mar 2019 16:05:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20150623.gappssmtp.com header.i=@resnulli-us.20150623.gappssmtp.com header.b="XxlJBSUC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388925AbfCAQFs (ORCPT ); Fri, 1 Mar 2019 11:05:48 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37390 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731937AbfCAQFr (ORCPT ); Fri, 1 Mar 2019 11:05:47 -0500 Received: by mail-wm1-f65.google.com with SMTP id x10so12644791wmg.2 for ; Fri, 01 Mar 2019 08:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Wg6Rijt8aXCyHGbs4V7dwZ1pF9iF+G1cxF60WjXSKLc=; b=XxlJBSUCwsGR9vFmkCWLpg1gAqPnCsf9aDwhYphB5MXd+YnCu4CFVFjstW9Q0XsTkw 9mAEiGFyMNckIENB2iFP+YgeCvhjwKNYiaLYabBlK+e4/1Q3TEVHRlYKFN4C364FVxW4 WV7CbSFTuXgbCpFBoZdosAZ0mmMIjt50hdAbyvuwKnXC64rPz2FiDqTFyp8JiMvcjOiG h2Ll9YsA4ZCUGhginCzgprJ5sB/OdPkM75KzasqYBKHpA/Jx6fALkDYsAuftGLH6HL1w 11kRMniUy1ps7XqlV+NAjoQcOQCQvt7/sCl9Qg++/QoRM1jOxI1jGu9fgFnEulShQ79y 9cYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Wg6Rijt8aXCyHGbs4V7dwZ1pF9iF+G1cxF60WjXSKLc=; b=K648fb8ZnebOYUotUTttnIib6Pt05GTg4p9X7bP/4CHon55d5HcoY/x6XSpxfrpOGn LO1Pzh9YHw3q1FPCTrrxO2hpW3ykTPIdlai4TAjusdxPYchHrLvuFilaFs1Ge5D5LRSG ZWH8FhycrqlN7/+6u+5UMzYhNRSBH6JyCSyLFz/UNL3NPKVzbIY7uGDyJfVM62oWIapc Y6pFlFvCAvCG5mO61b4FWcwwZ+GsdoMci4Lf1HC9gKMm102YvGcI3ycjp/9rT9Soy+8K GzOYjXEsjkwTyUtiMvj3hOS/SBb/qXfSoSrSQXeHyHJj0BYxLscZrQMo31QYDtaDmrrB EW3w== X-Gm-Message-State: AHQUAubdCOsnPHQ0Mf1Jg5k07vmROWpoqX+R0qAtGDDRj+9aPZnZAfK4 5nM45Ya5u/jl2pHu7fQRwcS288YB1jCKtA== X-Google-Smtp-Source: APXvYqyDm3GHpnolthlHtPvfCGFMygEvhgcnfKQWqgJzsQeYjGcssPNzE0hYrhWAhfLCl1ZzHgtfzw== X-Received: by 2002:a1c:4155:: with SMTP id o82mr3565851wma.122.1551456345058; Fri, 01 Mar 2019 08:05:45 -0800 (PST) Received: from localhost (ip-89-177-134-16.net.upcbroadband.cz. [89.177.134.16]) by smtp.gmail.com with ESMTPSA id w4sm35032927wrk.85.2019.03.01.08.05.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Mar 2019 08:05:44 -0800 (PST) From: Jiri Pirko To: netdev@vger.kernel.org Cc: davem@davemloft.net, mlxsw@mellanox.com, idosch@mellanox.com, jakub.kicinski@netronome.com, dirk.vandermerwe@netronome.com, f.fainelli@gmail.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: [patch net-next RFC 1/8] net: devlink: convert devlink_port_attrs bools to bits Date: Fri, 1 Mar 2019 17:05:35 +0100 Message-Id: <20190301160542.6474-2-jiri@resnulli.us> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190301160542.6474-1-jiri@resnulli.us> References: <20190301160542.6474-1-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jiri Pirko In order to save space in the struct, convert bools to bits. Signed-off-by: Jiri Pirko --- include/net/devlink.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/devlink.h b/include/net/devlink.h index 227c453cc20e..084a8762f3e9 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -40,10 +40,10 @@ struct devlink { }; struct devlink_port_attrs { - bool set; + u8 set:1, + split:1; enum devlink_port_flavour flavour; u32 port_number; /* same value as "split group" */ - bool split; u32 split_subport_number; }; -- 2.14.5