[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211124154931.5d33dc33@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Wed, 24 Nov 2021 15:49:31 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
Cc: davem@...emloft.net,
Jedrzej Jagielski <jedrzej.jagielski@...el.com>,
netdev@...r.kernel.org, sassmann@...hat.com,
Sylwester Dziedziuch <sylwesterx.dziedziuch@...el.com>,
Konrad Jankowski <konrad0.jankowski@...el.com>
Subject: Re: [PATCH net-next 08/12] iavf: Refactor iavf_mac_filter struct
memory usage
On Wed, 24 Nov 2021 09:16:48 -0800 Tony Nguyen wrote:
> - bool is_new_mac; /* filter is new, wait for PF decision */
> - bool remove; /* filter needs to be removed */
> - bool add; /* filter needs to be added */
> + struct {
> + u8 is_new_mac:1; /* filter is new, wait for PF decision */
> + u8 remove:1; /* filter needs to be removed */
> + u8 add:1; /* filter needs to be added */
> + u8 is_primary:1; /* filter is a default VF MAC */
> + u8 padding:4;
> + };
Why did you wrap it in a struct? Just curious.
Powered by blists - more mailing lists