diff options
author | Martin <martin.varghese@nokia.com> | 2020-06-17 22:30:23 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-18 20:31:11 -0700 |
commit | 4c98045c9b74feab837be58986c0517d3cc661f1 (patch) | |
tree | 1a23589762b56414cbccebddb68ff8ce05ff3329 | |
parent | e807fa3f602edcebecdfe3cebda1d91aa8087f0f (diff) | |
download | linux-4c98045c9b74feab837be58986c0517d3cc661f1.tar.bz2 |
bareudp: Fixed multiproto mode configuration
Code to handle multiproto configuration is missing.
Fixes: 4b5f67232d95 ("net: Special handling for IP & MPLS")
Signed-off-by: Martin <martin.varghese@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bareudp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c index 5d3c691a1c66..3dd46cd55114 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; } |