projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0965a1f
)
bonding: convert bond_has_slaves() to use the neighbour list
author
Veaceslav Falico
<vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:22 +0000
(09:20 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 26 Sep 2013 20:02:06 +0000
(16:02 -0400)
The same way as it was used for its own slave_list.
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bonding.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bonding/bonding.h
b/drivers/net/bonding/bonding.h
index bcef15ec3459018675f436de97135a246c8b2fa4..170c7fce1b44797d3458e2e017e05d7650977bc3 100644
(file)
--- a/
drivers/net/bonding/bonding.h
+++ b/
drivers/net/bonding/bonding.h
@@
-72,7
+72,7
@@
res; })
/* slave list primitives */
-#define bond_has_slaves(bond) !list_empty(&(bond)->
slave_list
)
+#define bond_has_slaves(bond) !list_empty(&(bond)->
dev->adj_list.lower
)
#define bond_to_slave(ptr) list_entry(ptr, struct slave, list)