bareudp: Fixed multiproto mode configuration
Subsystems (2)
PATCH v3 1/1 bareudp: Fixed multiproto mode configuration
From: Martin <[email protected]>
Code to handle multiproto configuration is missing.
Fixes 4b5f67232d95 ("net: Special handling for IP & MPLS")
Signed-off-by Martin <[email protected]>
---
Changes in v2:
- Initialization of conf structure is removed as that change is included in another patch.
Changes in v3:
- Fixes tag added.
drivers/net/bareudp.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/bareudp.c +3 -0
@@ -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
David Miller
maintainerFrom: Martin Varghese <[email protected]>
Date: Wed, 17 Jun 2020 22:30:23 +0530
Quoted 6 lines
From: Martin <[email protected]>
Code to handle multiproto configuration is missing.
Fixes 4b5f67232d95 ("net: Special handling for IP & MPLS")Signed-off-by Martin <[email protected]>
Applied and queued up for v5.7 -stable, thanks.