Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp172598pxu; Thu, 15 Oct 2020 00:27:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYSAgyz+oP0tdOADDr/Q1b73Da1M0B0rgiD52BaU+jcuMWLB2vAG0A5txwsYwKj14kxJHL X-Received: by 2002:a05:6402:709:: with SMTP id w9mr2914144edx.326.1602746860655; Thu, 15 Oct 2020 00:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602746860; cv=none; d=google.com; s=arc-20160816; b=QOV16I4CU9eghoH+OFbId0gJe2c3eFl04ZLgOzXffpDQ0Rw6XkyEpVXfzXqoi13TPM K2yfjQBJypPOb+2wivvXYHSVBiZSCsgx25IFyCEzBZJ8V8JKjFinGJUhRqwphuwfmd9B pZjT3zkHQgLYV0R6N6JhQAMVBzbKKF0OGhMN+7fJmk7Lk4iQ3FsdbLz+uSS4KxpPDMBN rG+KQGj0uyWB1YyoxDzmk7zbelLCnrIeYb5XPF+tFgpABAY+TwIKn+38UGKLe+IxlTLD XsieoVXILEYI/kvMdEnBJTRIQcaVyHdlx7wFZbJPBBpDHOhHmADBo+qKSB/1wvtrKzTF xp/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=SiPOFAHKsCZJkOGp5C7CpXbe6O+edNdek/2bb9xCNlw=; b=SR+ayrUq4BkunLAZRbHzLkLbiBRABBNuFuv5lf/W7UECFgJN10/XbdgFYt9jhddvTy RxeJvp2zEm9USsRBmB0+PlqsQfSYGNBGbiJN83bBm2LiPmfH3y9BCA3PR1anJTo45wXp QodbioWpUnkKdLnb9TiUL8X2pWxZc8UsymIZj4iUZjFB3IXDzmF13an7lfsHZe/utTs5 slcmgoVkVmRpGj1vPtZ4p+z6GBltQYYqooXrVxSiLhlZZcEkQiw6Eh5JY+qxt9up7b5j C6+IxqVQF8vPIuqfb1LZVWVrakm+mi0LRmiEWp/e2E7PcSSoCCqMq1Tlu0H74EUciCq9 0ZMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cwbBqOsa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh4si1821767ejb.421.2020.10.15.00.27.18; Thu, 15 Oct 2020 00:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cwbBqOsa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727719AbgJNX06 (ORCPT + 99 others); Wed, 14 Oct 2020 19:26:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:49218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726347AbgJNX06 (ORCPT ); Wed, 14 Oct 2020 19:26:58 -0400 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (c-67-180-217-166.hsd1.ca.comcast.net [67.180.217.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E403C2072D; Wed, 14 Oct 2020 23:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602718017; bh=aJtLUT5CUqccTM2pkrFn/NwRFqdAj1DcJprXwjRRsh0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cwbBqOsazetMElUlWGrNzzYcUBOpha8aLsVcHn5DAX4zgDpW8YjqLw9ZlOU8et3We 2d6oRpe5obXv64sp0VcDx6QjOmCRsd0Emc9M+qSNHq54K1RtYNGivqabiWxiUg+v7y dHcbommzec42eZbBZU0pFf56yHMa0MiByTuTfkBc= Date: Wed, 14 Oct 2020 16:26:55 -0700 From: Jakub Kicinski To: Henrik Bjoernlund Cc: , , , , , , , , , Horatiu Vultur Subject: Re: [PATCH net-next v5 06/10] bridge: cfm: Kernel space implementation of CFM. CCM frame RX added. Message-ID: <20201014162655.3cbc8664@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201012140428.2549163-7-henrik.bjoernlund@microchip.com> References: <20201012140428.2549163-1-henrik.bjoernlund@microchip.com> <20201012140428.2549163-7-henrik.bjoernlund@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Oct 2020 14:04:24 +0000 Henrik Bjoernlund wrote: > + /* This CCM related status is based on the latest received CCM PDU. */ > + u8 port_tlv_value; /* Port Status TLV value */ > + u8 if_tlv_value; /* Interface Status TLV value */ > + > + /* CCM has not been received for 3.25 intervals */ > + bool ccm_defect; > + > + /* (RDI == 1) for last received CCM PDU */ > + bool rdi; > + > + /* Indications that a CCM PDU has been seen. */ > + bool seen; /* CCM PDU received */ > + bool tlv_seen; /* CCM PDU with TLV received */ > + /* CCM PDU with unexpected sequence number received */ > + bool seq_unexp_seen; Please consider using a u8 bitfield rather than a bunch of bools, if any of this structures are expected to have many instances. That'd save space.