X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_vnet.h;h=d990880bc84a0bdd8fb4f7cd505a4ce778851739;hb=124131ed42f201896d9b81c039ee3fffd0336e21;hp=05a6235dd43906a9668a66c34a2190ada4922838;hpb=0956466aad020813d1e470df366d552fdabab2a9;p=palacios.releases.git diff --git a/palacios/include/palacios/vmm_vnet.h b/palacios/include/palacios/vmm_vnet.h index 05a6235..d990880 100644 --- a/palacios/include/palacios/vmm_vnet.h +++ b/palacios/include/palacios/vmm_vnet.h @@ -70,7 +70,7 @@ struct v3_vnet_pkt { uint8_t src_type; uint32_t src_id; uint8_t header[ETHERNET_HEADER_LEN]; - uint8_t *data; + uint8_t * data; } __attribute__((packed)); } __attribute__((packed)); } __attribute__((packed)); @@ -106,8 +106,10 @@ struct v3_vnet_dev_xcall_args{ }; struct v3_vnet_dev_ops { - int (*input)(struct v3_vm_info * vm, struct v3_vnet_pkt * pkt, void * dev_data); - void (*poll) (struct v3_vm_info *vm, void *dev_data); + int (*input)(struct v3_vm_info * vm, + struct v3_vnet_pkt * pkt, + void * dev_data); + void (*poll) (struct v3_vm_info * vm, void * dev_data); void (*poll_xcall)(void *arg); void (*start_tx)(void * dev_data); @@ -115,9 +117,12 @@ struct v3_vnet_dev_ops { }; struct v3_vnet_bridge_ops { - int (*input)(struct v3_vm_info * vm, struct v3_vnet_pkt pkt[], uint16_t pkt_num, void * private_data); - int (*xcall_input)(void *data); - void (*polling_pkt)(struct v3_vm_info * vm, void *private_data); + int (*input)(struct v3_vm_info * vm, + struct v3_vnet_pkt * pkt, + void * private_data); + int (*xcall_input)(void * data); + void (*polling_pkt)(struct v3_vm_info * vm, + void * private_data); };