netdev-dpdk: vhost-user port link state fix
authorZoltán Balogh <zoltan.balogh@ericsson.com>
Thu, 2 Jun 2016 12:42:39 +0000 (12:42 +0000)
committerDaniele Di Proietto <diproiettod@vmware.com>
Thu, 2 Jun 2016 21:26:02 +0000 (14:26 -0700)
commite543851d21e40364723c05e63c3a2bf62a9ef8aa
tree504f7a39cc338ebaa295d038313b3d3db6640ea0
parentf5857865770efb5a5383fa7aa886c0ff15f2038a
netdev-dpdk: vhost-user port link state fix

OVS reports that link state of a vhost-user port (type=dpdkvhostuser) is
DOWN, even when traffic is running through the port between a Virtual
Machine and the vSwitch. Changing admin state with the
"ovs-ofctl mod-port <BR> <PORT> up/down" command over OpenFlow does
affect neither the reported link state nor the traffic.

The patch below does the flowing:
 - Triggers link state change by altering netdev's change_seq member.
 - Controls sending/receiving of packets through vhost-user port
   according to the port's current admin state.
 - Sets admin state of newly created vhost-user port to UP.

Signed-off-by: Zoltán Balogh <zoltan.balogh@ericsson.com>
Co-authored-by: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
AUTHORS
lib/netdev-dpdk.c