vmxnet3.c (e8d40465592716cb209f0ae5de6b4cbe9ea2f8ba) | vmxnet3.c (cb8d4c8f54b8271f642f02382eec29d468bb1c77) |
---|---|
1/* 2 * QEMU VMWARE VMXNET3 paravirtual NIC 3 * 4 * Copyright (c) 2012 Ravello Systems LTD (http://ravellosystems.com) 5 * 6 * Developed by Daynix Computing LTD (http://www.daynix.com) 7 * 8 * Authors: --- 23 unchanged lines hidden (view full) --- 32#include "vmware_utils.h" 33#include "vmxnet_tx_pkt.h" 34#include "vmxnet_rx_pkt.h" 35 36#define PCI_DEVICE_ID_VMWARE_VMXNET3_REVISION 0x1 37#define VMXNET3_MSIX_BAR_SIZE 0x2000 38#define MIN_BUF_SIZE 60 39 | 1/* 2 * QEMU VMWARE VMXNET3 paravirtual NIC 3 * 4 * Copyright (c) 2012 Ravello Systems LTD (http://ravellosystems.com) 5 * 6 * Developed by Daynix Computing LTD (http://www.daynix.com) 7 * 8 * Authors: --- 23 unchanged lines hidden (view full) --- 32#include "vmware_utils.h" 33#include "vmxnet_tx_pkt.h" 34#include "vmxnet_rx_pkt.h" 35 36#define PCI_DEVICE_ID_VMWARE_VMXNET3_REVISION 0x1 37#define VMXNET3_MSIX_BAR_SIZE 0x2000 38#define MIN_BUF_SIZE 60 39 |
40/* Compatability flags for migration */ | 40/* Compatibility flags for migration */ |
41#define VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT 0 42#define VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS \ 43 (1 << VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT) 44#define VMXNET3_COMPAT_FLAG_DISABLE_PCIE_BIT 1 45#define VMXNET3_COMPAT_FLAG_DISABLE_PCIE \ 46 (1 << VMXNET3_COMPAT_FLAG_DISABLE_PCIE_BIT) 47 48#define VMXNET3_EXP_EP_OFFSET (0x48) --- 287 unchanged lines hidden (view full) --- 336 337 MACAddr perm_mac; 338 uint32_t vlan_table[VMXNET3_VFT_SIZE]; 339 uint32_t rx_mode; 340 MACAddr *mcast_list; 341 uint32_t mcast_list_len; 342 uint32_t mcast_list_buff_size; /* needed for live migration. */ 343 | 41#define VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT 0 42#define VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS \ 43 (1 << VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT) 44#define VMXNET3_COMPAT_FLAG_DISABLE_PCIE_BIT 1 45#define VMXNET3_COMPAT_FLAG_DISABLE_PCIE \ 46 (1 << VMXNET3_COMPAT_FLAG_DISABLE_PCIE_BIT) 47 48#define VMXNET3_EXP_EP_OFFSET (0x48) --- 287 unchanged lines hidden (view full) --- 336 337 MACAddr perm_mac; 338 uint32_t vlan_table[VMXNET3_VFT_SIZE]; 339 uint32_t rx_mode; 340 MACAddr *mcast_list; 341 uint32_t mcast_list_len; 342 uint32_t mcast_list_buff_size; /* needed for live migration. */ 343 |
344 /* Compatability flags for migration */ | 344 /* Compatibility flags for migration */ |
345 uint32_t compat_flags; 346} VMXNET3State; 347 348/* Interrupt management */ 349 350/* 351 *This function returns sign whether interrupt line is in asserted state 352 * This depends on the type of interrupt used. For INTX interrupt line will --- 2371 unchanged lines hidden --- | 345 uint32_t compat_flags; 346} VMXNET3State; 347 348/* Interrupt management */ 349 350/* 351 *This function returns sign whether interrupt line is in asserted state 352 * This depends on the type of interrupt used. For INTX interrupt line will --- 2371 unchanged lines hidden --- |