Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_net_vsc.h
Show First 20 Lines • Show All 1,082 Lines • ▼ Show 20 Lines | typedef struct netvsc_dev_ { | ||||
uint32_t vrss_send_table[VRSS_SEND_TABLE_SIZE]; | uint32_t vrss_send_table[VRSS_SEND_TABLE_SIZE]; | ||||
} netvsc_dev; | } netvsc_dev; | ||||
struct vmbus_channel; | struct vmbus_channel; | ||||
typedef void (*pfn_on_send_rx_completion)(struct vmbus_channel *, void *); | typedef void (*pfn_on_send_rx_completion)(struct vmbus_channel *, void *); | ||||
#define NETVSC_DEVICE_RING_BUFFER_SIZE (128 * PAGE_SIZE) | #define NETVSC_DEVICE_RING_BUFFER_SIZE (128 * PAGE_SIZE) | ||||
#define NETVSC_PACKET_MAXPAGE 32 | |||||
#define NETVSC_VLAN_PRIO_MASK 0xe000 | #define NETVSC_VLAN_PRIO_MASK 0xe000 | ||||
#define NETVSC_VLAN_PRIO_SHIFT 13 | #define NETVSC_VLAN_PRIO_SHIFT 13 | ||||
#define NETVSC_VLAN_VID_MASK 0x0fff | #define NETVSC_VLAN_VID_MASK 0x0fff | ||||
#define TYPE_IPV4 2 | #define TYPE_IPV4 2 | ||||
#define TYPE_IPV6 4 | #define TYPE_IPV6 4 | ||||
#define TYPE_TCP 2 | #define TYPE_TCP 2 | ||||
Show All 33 Lines | typedef struct netvsc_packet_ { | ||||
} compl; | } compl; | ||||
uint32_t send_buf_section_idx; | uint32_t send_buf_section_idx; | ||||
uint32_t send_buf_section_size; | uint32_t send_buf_section_size; | ||||
void *rndis_mesg; | void *rndis_mesg; | ||||
uint32_t tot_data_buf_len; | uint32_t tot_data_buf_len; | ||||
void *data; | void *data; | ||||
uint32_t gpa_cnt; | uint32_t gpa_cnt; | ||||
struct vmbus_gpa gpa[VMBUS_CHAN_SGLIST_MAX]; | struct vmbus_gpa gpa[NETVSC_PACKET_MAXPAGE]; | ||||
} netvsc_packet; | } netvsc_packet; | ||||
typedef struct { | typedef struct { | ||||
uint8_t mac_addr[6]; /* Assumption unsigned long */ | uint8_t mac_addr[6]; /* Assumption unsigned long */ | ||||
uint8_t link_state; | uint8_t link_state; | ||||
} netvsc_device_info; | } netvsc_device_info; | ||||
#ifndef HN_USE_TXDESC_BUFRING | #ifndef HN_USE_TXDESC_BUFRING | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |