net: adjust handle_macvlan to pass port struct to hook
authorJiri Pirko <jpirko@redhat.com>
Thu, 6 May 2010 01:33:53 +0000 (01:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 May 2010 06:48:02 +0000 (23:48 -0700)
Now there's null check here and also again in the hook. Looking at bridge bits
which are simmilar, port structure is rcu_dereferenced right away in
handle_bridge and passed to hook. Looks nicer.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found