From: Martin Date: Wed, 17 Jun 2020 17:00:23 +0000 (+0530) Subject: bareudp: Fixed multiproto mode configuration X-Git-Tag: v5.15~3509^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c98045c9b74feab837be58986c0517d3cc661f1;p=platform%2Fkernel%2Flinux-starfive.git bareudp: Fixed multiproto mode configuration Code to handle multiproto configuration is missing. Fixes: 4b5f67232d95 ("net: Special handling for IP & MPLS") Signed-off-by: Martin Signed-off-by: David S. Miller --- diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c index 5d3c691..3dd46cd 100644 --- a/drivers/net/bareudp.c +++ b/drivers/net/bareudp.c @@ -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; }