tunneling: Don't shadow vport when generating cache.
authorJesse Gross <jesse@nicira.com>
Tue, 28 Dec 2010 05:19:35 +0000 (21:19 -0800)
committerJesse Gross <jesse@nicira.com>
Tue, 28 Dec 2010 17:38:59 +0000 (09:38 -0800)
commitecd859a28313166f042a0181cb27f444e3c4da32
tree023c0f483d5472133ff3f5a11f559936b8dc4409
parent8ba43fbd1f14d60a2d097bafc7d0606d860d0f72
tunneling: Don't shadow vport when generating cache.

When generating the tunnel header cache we have two vports that we
are working with: the sender and destination.  Unfortunately, both of
these use the name 'vport'.  This renames the destination to avoid
shadowing the sender.  This doesn't actually fix a bug because the
compiler correctly uses the right one, even when shadowed.

Found with sparse.

Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/tunnel.c