Message ID | 1592368299-8428-1-git-send-email-martinvarghesenokia@gmail.com |
---|---|
State | Superseded |
Delegated to: | David Miller |
Headers | show |
Series | [net,v2] bareudp: Fixed multiproto mode configuration | expand |
On Wed, 17 Jun 2020 10:01:39 +0530 Martin Varghese wrote: > From: Martin <martin.varghese@nokia.com> > > Code to handle multiproto configuration is missing. > > Signed-off-by: Martin <martin.varghese@nokia.com> No Fixes tag on this one?
On Wed, Jun 17, 2020 at 09:21:37AM -0700, Jakub Kicinski wrote: > On Wed, 17 Jun 2020 10:01:39 +0530 Martin Varghese wrote: > > From: Martin <martin.varghese@nokia.com> > > > > Code to handle multiproto configuration is missing. > > > > Signed-off-by: Martin <martin.varghese@nokia.com> > > No Fixes tag on this one? Missed. Updated version sent with fixes tag Thanks Martin
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; }