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)
commit7863c054d1b4fd35f76c13e2e918f7f483fe48f4
tree8be198de57ea3f78f880c8afcaebff9d24797716
parent4ed377e36ec2f385484d12e516faf88516fad31c
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