Thread (6 messages) flat view 6 messages, 2 authors, 2021-11-17

Re: [PATCH net-next] Bonding: add missed_max option

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-11-16 20:01:01

On Tue, 16 Nov 2021 16:48:40 +0800 Hangbin Liu wrote:
+	[IFLA_BOND_MISSED_MAX]		= { .type = NLA_U32 },
Why NLA_U32...
quoted hunk ↗ jump to hunk
 
 static const struct nla_policy bond_slave_policy[IFLA_BOND_SLAVE_MAX + 1] = {
@@ -453,6 +454,15 @@ static int bond_changelink(struct net_device *bond_dev, struct nlattr *tb[],
 			return err;
 	}
 
+	if (data[IFLA_BOND_MISSED_MAX]) {
+		int missed_max = nla_get_u8(data[IFLA_BOND_MISSED_MAX]);
If you read and write a u8?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help