aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/af_packet/af_packet.h
diff options
context:
space:
mode:
authorRay Kinsella <ray.kinsella@intel.com>2017-04-21 12:24:43 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-04-28 08:01:12 +0000
commitc855b73f785b3c4c1756927ad542de13ba193b6f (patch)
tree282b4c2ee5b34f20bb9a71b130f20181c55179e5 /src/vnet/devices/af_packet/af_packet.h
parentd77630adaf48f05766c33ec60ef19ed50acae161 (diff)
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>
Diffstat (limited to 'src/vnet/devices/af_packet/af_packet.h')
-rw-r--r--src/vnet/devices/af_packet/af_packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/af_packet/af_packet.h b/src/vnet/devices/af_packet/af_packet.h
index 77a2c7a3753..194977f03c1 100644
--- a/src/vnet/devices/af_packet/af_packet.h
+++ b/src/vnet/devices/af_packet/af_packet.h
@@ -24,6 +24,7 @@ typedef struct
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
clib_spinlock_t lockp;
u8 *host_if_name;
+ int host_if_index;
int fd;
struct tpacket_req *rx_req;
struct tpacket_req *tx_req;