Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/vnic/nic_main.c
Show First 20 Lines • Show All 755 Lines • ▼ Show 20 Lines | nic_config_cpi(struct nicpf *nic, struct cpi_cfg_msg *cfg) | ||||
nic->rssi_base[cfg->vf_id] = rssi_base; | nic->rssi_base[cfg->vf_id] = rssi_base; | ||||
} | } | ||||
/* Responsds to VF with its RSS indirection table size */ | /* Responsds to VF with its RSS indirection table size */ | ||||
static void | static void | ||||
nic_send_rss_size(struct nicpf *nic, int vf) | nic_send_rss_size(struct nicpf *nic, int vf) | ||||
{ | { | ||||
union nic_mbx mbx = {}; | union nic_mbx mbx = {}; | ||||
uint64_t *msg; | |||||
msg = (uint64_t *)&mbx; | |||||
mbx.rss_size.msg = NIC_MBOX_MSG_RSS_SIZE; | mbx.rss_size.msg = NIC_MBOX_MSG_RSS_SIZE; | ||||
mbx.rss_size.ind_tbl_size = nic->rss_ind_tbl_size; | mbx.rss_size.ind_tbl_size = nic->rss_ind_tbl_size; | ||||
nic_send_msg_to_vf(nic, vf, &mbx); | nic_send_msg_to_vf(nic, vf, &mbx); | ||||
} | } | ||||
/* | /* | ||||
* Receive side scaling configuration | * Receive side scaling configuration | ||||
▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines |