Thread (18 messages) 18 messages, 4 authors, 2025-09-10

Re: [PATCH net-next v5 1/7] bonding: Adding struct bond_arp_target

From: Paolo Abeni <pabeni@redhat.com>
Date: 2025-09-09 13:22:05

On 7/15/25 12:54 AM, David Wilder wrote:
Replacing the definition of bond_params.arp_targets (__be32 arp_targets[])
with:

struct bond_arp_target {
	__be32			target_ip;
	struct bond_vlan_tag	*tags;
	u32			flags;
};
The above struct is going to be allocated on the stack and has 2 holes 4
bytes each.

If you change the layout as follow:

struct bond_arp_target {
 	__be32			target_ip;
 	u32			flags;
 	struct bond_vlan_tag	*tags;
};

the struct size will be 8 bytes less.

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help