datapath: Don't insert empty OVS_VPORT_ATTR_OPTIONS attribute
authorThomas Graf <tgraf@suug.ch>
Tue, 2 Apr 2013 23:34:28 +0000 (16:34 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 2 Apr 2013 23:34:28 +0000 (16:34 -0700)
commit778ea0a463e08b2f47d69288367ac7960712fb0c
treec68f2f34bfdc05c5d266c167f52dc8147af88a54
parent62bd7349adaf5ee740cd9da58305f7523d7c9e6e
datapath: Don't insert empty OVS_VPORT_ATTR_OPTIONS attribute

The port specific options are currently unused resulting in an
empty OVS_VPORT_ATTR_OPTIONS nested attribute being inserted
into every OVS_VPORT_CMD_GET message.

Don't insert OVS_VPORT_ATTR_OPTIONS if no options are present.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
[jesse: Options are used by tunnels but the concept still applies.]
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/vport.c