af_packet: reflect admin device state on host 33/6333/7
authorRay Kinsella <ray.kinsella@intel.com>
Fri, 21 Apr 2017 11:24:43 +0000 (12:24 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 28 Apr 2017 08:01:12 +0000 (08:01 +0000)
commitc855b73f785b3c4c1756927ad542de13ba193b6f
tree282b4c2ee5b34f20bb9a71b130f20181c55179e5
parentd77630adaf48f05766c33ec60ef19ed50acae161
af_packet: reflect admin device state on host

Setting the interface state in VPP on an af_packet device, was not being
reflected on the host. This implied the user had to set the device state
in VPP and then on the host, in order to put the interface into an 'up'
state. This changes makes the device state consisent in VPP and the host.

Change-Id: I6dc6aee79503e04576683db937b861337a2b375b
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
src/vnet/devices/af_packet/af_packet.c
src/vnet/devices/af_packet/af_packet.h
src/vnet/devices/af_packet/device.c