]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: simplify the structure port
authordingtianhong <dingtianhong@huawei.com>
Thu, 15 May 2014 11:11:36 +0000 (19:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 May 2014 03:35:16 +0000 (23:35 -0400)
commit9d5a41ba6d533edcbb5976f55f1151a3814333bc
treeabf311bb54dbb685f4ef8543a1708211a0dc36f5
parent107c4e2dddf7871980b865d1b0401bd9b52ed102
macvlan: simplify the structure port

The port->count was used to count the number of macvlan devs
in the same port, but the list vlans could play the same role
to do that, so free the port if the list vlans is empty and
no need to use the parameter count.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c