Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] lec: Use rtnl lock/unlock when updating MTU
@ 2014-08-14 13:19 Chas Williams - CONTRACTOR
  2014-08-14 21:37 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Chas Williams - CONTRACTOR @ 2014-08-14 13:19 UTC (permalink / raw)
  To: netdev, linux-atm-general

The LECS response contains the MTU that should be used.  Correctly
synchronize with other layers when updating.

Signed-off-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
---
 net/atm/lec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/atm/lec.c b/net/atm/lec.c
index 4c5b8ba..6e13369 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -410,9 +410,11 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
 		priv->lane2_ops = NULL;
 		if (priv->lane_version > 1)
 			priv->lane2_ops = &lane2_ops;
+		rtnl_lock();
 		if (dev_set_mtu(dev, mesg->content.config.mtu))
 			pr_info("%s: change_mtu to %d failed\n",
 				dev->name, mesg->content.config.mtu);
+		rtnl_unlock();
 		priv->is_proxy = mesg->content.config.is_proxy;
 		break;
 	case l_flush_tran_id:
-- 
1.9.3

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

end of thread, other threads:[~2014-08-21 23:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 13:19 [PATCH net-next] lec: Use rtnl lock/unlock when updating MTU Chas Williams - CONTRACTOR
2014-08-14 21:37 ` David Miller
2014-08-15  0:56   ` Chas Williams (CONTRACTOR)
2014-08-21 23:31     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox