diff options
| author | Ingo Molnar <mingo@kernel.org> | 2020-02-05 08:44:22 +0100 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2020-02-05 08:44:22 +0100 | 
| commit | fdff7c21ea00787e3f70a1a00b40b88eb998c6ad (patch) | |
| tree | 03016a8375e849e2c39dec8a15d660055bb16a8c /net/tipc/bearer.c | |
| parent | f1ec3a517b4352e78dbef6b1e591f43202ecb3fe (diff) | |
| parent | b3a6082223369203d7e7db7e81253ac761377644 (diff) | |
Merge branch 'linus' into perf/urgent, to synchronize with upstream
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/tipc/bearer.c')
| -rw-r--r-- | net/tipc/bearer.c | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index d7ec26bd739d..34ca7b789eba 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c @@ -311,7 +311,8 @@ static int tipc_enable_bearer(struct net *net, const char *name,  	b->identity = bearer_id;  	b->tolerance = m->tolerance; -	b->window = m->window; +	b->min_win = m->min_win; +	b->max_win = m->max_win;  	b->domain = disc_domain;  	b->net_plane = bearer_id + 'A';  	b->priority = prio; @@ -796,7 +797,7 @@ static int __tipc_nl_add_bearer(struct tipc_nl_msg *msg,  		goto prop_msg_full;  	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, bearer->tolerance))  		goto prop_msg_full; -	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bearer->window)) +	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bearer->max_win))  		goto prop_msg_full;  	if (bearer->media->type_id == TIPC_MEDIA_TYPE_UDP)  		if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, bearer->mtu)) @@ -1088,7 +1089,7 @@ int __tipc_nl_bearer_set(struct sk_buff *skb, struct genl_info *info)  		if (props[TIPC_NLA_PROP_PRIO])  			b->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]);  		if (props[TIPC_NLA_PROP_WIN]) -			b->window = nla_get_u32(props[TIPC_NLA_PROP_WIN]); +			b->max_win = nla_get_u32(props[TIPC_NLA_PROP_WIN]);  		if (props[TIPC_NLA_PROP_MTU]) {  			if (b->media->type_id != TIPC_MEDIA_TYPE_UDP)  				return -EINVAL; @@ -1142,7 +1143,7 @@ static int __tipc_nl_add_media(struct tipc_nl_msg *msg,  		goto prop_msg_full;  	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, media->tolerance))  		goto prop_msg_full; -	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, media->window)) +	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, media->max_win))  		goto prop_msg_full;  	if (media->type_id == TIPC_MEDIA_TYPE_UDP)  		if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, media->mtu)) @@ -1275,7 +1276,7 @@ int __tipc_nl_media_set(struct sk_buff *skb, struct genl_info *info)  		if (props[TIPC_NLA_PROP_PRIO])  			m->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]);  		if (props[TIPC_NLA_PROP_WIN]) -			m->window = nla_get_u32(props[TIPC_NLA_PROP_WIN]); +			m->max_win = nla_get_u32(props[TIPC_NLA_PROP_WIN]);  		if (props[TIPC_NLA_PROP_MTU]) {  			if (m->type_id != TIPC_MEDIA_TYPE_UDP)  				return -EINVAL;  | 
