Skip to contentSkip to conversation

bareudp: Fixed multiproto mode configuration

PATCH Superseded Martin Varghese 2 participants 3 messages Jun 17, 2020

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bareudp: Fixed multiproto mode configuration

From: Martin <[email protected]>

Code to handle multiproto configuration is missing.

---
Changes in v2:
- Initialization of conf structure is removed as that change is included in another patch.

 drivers/net/bareudp.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/bareudp.c +3 -0
index 5d3c691..3dd46cd 100644
@@ -572,6 +572,9 @@ static int bareudp2info(struct nlattr *data[], struct bareudp_conf *conf,
 	if (data[IFLA_BAREUDP_SRCPORT_MIN])
 		conf->sport_min =  nla_get_u16(data[IFLA_BAREUDP_SRCPORT_MIN]);
 
+	if (data[IFLA_BAREUDP_MULTIPROTO_MODE])
+		conf->multi_proto_mode = true;
+
 	return 0;
 }
 
Signature · 1 line
1.8.3.1
#2 lore raw
Quoted 8 lines · Jakub Kicinski
Quoted 5 lines · On Wed, 17 Jun 2020 10:01:39 +0530 Martin Varghese wrote:

From: Martin <[email protected]>

Code to handle multiproto configuration is missing.

No Fixes tag on this one?

Missed. Updated version sent with fixes tag

Thanks
Martin