datapath: Move vport init to first port create.
authorPravin B Shelar <pshelar@nicira.com>
Mon, 6 May 2013 17:32:12 +0000 (10:32 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Mon, 6 May 2013 18:42:48 +0000 (11:42 -0700)
commit806b46ef3d1f3e17e87d91c4fb0041aa87709497
tree9e22fd37e3ddc39f58e9e0b063c00c383dae3ee1
parentbe7cd27e44258bdb3c4e7dd8fd7389b5db56d55a
datapath: Move vport init to first port create.

vport->init and exit() functions are defined by gre and netdev vport
only and both can be moved to first port create.

Following patch does same, it moves vport init to respective vport
create and gets rid of vport->init() and vport->exit() functions.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/vport-gre.c
datapath/vport-internal_dev.c
datapath/vport-netdev.c
datapath/vport.c
datapath/vport.h