Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix LLE_TRY_UPGRADE when GATEWAY



details:   https://anonhg.NetBSD.org/src/rev/3ebe1b72e840
branches:  trunk
changeset: 340893:3ebe1b72e840
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Oct 09 01:50:09 2015 +0000

description:
Fix LLE_TRY_UPGRADE when GATEWAY

It's expected to return a value.

diffstat:

 sys/net/if_llatbl.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b0fa50308afa -r 3ebe1b72e840 sys/net/if_llatbl.h
--- a/sys/net/if_llatbl.h       Fri Oct 09 00:09:52 2015 +0000
+++ b/sys/net/if_llatbl.h       Fri Oct 09 01:50:09 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_llatbl.h,v 1.3 2015/09/30 07:12:32 ozaki-r Exp $    */
+/*     $NetBSD: if_llatbl.h,v 1.4 2015/10/09 01:50:09 ozaki-r Exp $    */
 /*
  * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
  * Copyright (c) 2004-2008 Qing Li. All rights reserved.
@@ -131,7 +131,7 @@
                                        mutex_exit(&(lle)->lle_lock); \
                                } while (0)
 #define        LLE_DOWNGRADE(lle)      do {} while (0)
-#define        LLE_TRY_UPGRADE(lle)    do {} while (0)
+#define        LLE_TRY_UPGRADE(lle)    (1)
 #define        LLE_LOCK_INIT(lle)      mutex_init(&(lle)->lle_lock, MUTEX_DEFAULT, \
                                    IPL_NET)
 #define        LLE_LOCK_DESTROY(lle)   mutex_destroy(&(lle)->lle_lock)



Home | Main Index | Thread Index | Old Index