netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2] bareudp: Fixed multiproto mode configuration
@ 2020-06-17  4:31 Martin Varghese
  2020-06-17 16:21 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Varghese @ 2020-06-17  4:31 UTC (permalink / raw)
  To: netdev, davem; +Cc: Martin

From: Martin <martin.varghese@nokia.com>

Code to handle multiproto configuration is missing.

Signed-off-by: Martin <martin.varghese@nokia.com>
---
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(+)

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;
 }
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net v2] bareudp: Fixed multiproto mode configuration
  2020-06-17  4:31 [PATCH net v2] bareudp: Fixed multiproto mode configuration Martin Varghese
@ 2020-06-17 16:21 ` Jakub Kicinski
  2020-06-17 17:02   ` Martin Varghese
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2020-06-17 16:21 UTC (permalink / raw)
  To: Martin Varghese; +Cc: netdev, davem, Martin

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net v2] bareudp: Fixed multiproto mode configuration
  2020-06-17 16:21 ` Jakub Kicinski
@ 2020-06-17 17:02   ` Martin Varghese
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Varghese @ 2020-06-17 17:02 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, davem, Martin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-17 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17  4:31 [PATCH net v2] bareudp: Fixed multiproto mode configuration Martin Varghese
2020-06-17 16:21 ` Jakub Kicinski
2020-06-17 17:02   ` Martin Varghese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).