]> git.baikalelectronics.ru Git - kernel.git/commit
net: use lists as arguments instead of bool upper
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:06 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:03 +0000 (16:02 -0400)
commit508a04ba8709fcdefd4f46df3c86f0a3563cb285
tree8be198de57ea3f78f880c8afcaebff9d24797716
parent487e5c9064395c013b4c8ffc826f3810e37c4305
net: use lists as arguments instead of bool upper

Currently we make use of bool upper when we want to specify if we want to
work with upper/lower list. It's, however, harder to read, debug and
occupies a lot more code.

Fix this by just passing the correct upper/lower_dev_list list_head pointer
instead of bool upper, and work internally with it.

CC: "David S. Miller" <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Jiri Pirko <jiri@resnulli.us>
CC: Alexander Duyck <alexander.h.duyck@intel.com>
CC: Cong Wang <amwang@redhat.com>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c