netdev: get device type from vport prefix if it uses one
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 26 May 2016 12:56:34 +0000 (09:56 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 23 Jun 2016 22:08:25 +0000 (19:08 -0300)
commit7bcffeb41298e34e2864bec9c52d687eb858d433
treec905c5f96557bb7771111c1650792e7313d08887
parent8e2b26562c2e82fd4492d4a27aa24238e47b022a
netdev: get device type from vport prefix if it uses one

If the device name uses a vport prefix, then use that vport type.

Since these names are reserved, we can assume this is the right type.

This is important when we are querying the datapath right after vswitch has
started and using the right type will be even more important when we add support
to creating tunnel ports with rtnetlink.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
lib/netdev.c