Lines Matching refs:rss_data

2350 	struct idpf_rss_data *rss_data;  in idpf_send_get_set_rss_lut_msg()  local
2355 rss_data = in idpf_send_get_set_rss_lut_msg()
2356 &vport->adapter->vport_config[vport->idx]->user_config.rss_data; in idpf_send_get_set_rss_lut_msg()
2357 buf_size = struct_size(rl, lut, rss_data->rss_lut_size); in idpf_send_get_set_rss_lut_msg()
2376 rl->lut_entries = cpu_to_le16(rss_data->rss_lut_size); in idpf_send_get_set_rss_lut_msg()
2377 for (i = 0; i < rss_data->rss_lut_size; i++) in idpf_send_get_set_rss_lut_msg()
2378 rl->lut[i] = cpu_to_le32(rss_data->rss_lut[i]); in idpf_send_get_set_rss_lut_msg()
2395 if (rss_data->rss_lut_size == le16_to_cpu(recv_rl->lut_entries)) in idpf_send_get_set_rss_lut_msg()
2398 rss_data->rss_lut_size = le16_to_cpu(recv_rl->lut_entries); in idpf_send_get_set_rss_lut_msg()
2399 kfree(rss_data->rss_lut); in idpf_send_get_set_rss_lut_msg()
2401 rss_data->rss_lut = kzalloc(lut_buf_size, GFP_KERNEL); in idpf_send_get_set_rss_lut_msg()
2402 if (!rss_data->rss_lut) { in idpf_send_get_set_rss_lut_msg()
2403 rss_data->rss_lut_size = 0; in idpf_send_get_set_rss_lut_msg()
2408 memcpy(rss_data->rss_lut, recv_rl->lut, rss_data->rss_lut_size); in idpf_send_get_set_rss_lut_msg()
2425 struct idpf_rss_data *rss_data; in idpf_send_get_set_rss_key_msg() local
2430 rss_data = in idpf_send_get_set_rss_key_msg()
2431 &vport->adapter->vport_config[vport->idx]->user_config.rss_data; in idpf_send_get_set_rss_key_msg()
2432 buf_size = struct_size(rk, key_flex, rss_data->rss_key_size); in idpf_send_get_set_rss_key_msg()
2450 rk->key_len = cpu_to_le16(rss_data->rss_key_size); in idpf_send_get_set_rss_key_msg()
2451 for (i = 0; i < rss_data->rss_key_size; i++) in idpf_send_get_set_rss_key_msg()
2452 rk->key_flex[i] = rss_data->rss_key[i]; in idpf_send_get_set_rss_key_msg()
2471 if (rss_data->rss_key_size == key_size) in idpf_send_get_set_rss_key_msg()
2474 rss_data->rss_key_size = key_size; in idpf_send_get_set_rss_key_msg()
2475 kfree(rss_data->rss_key); in idpf_send_get_set_rss_key_msg()
2476 rss_data->rss_key = kzalloc(key_size, GFP_KERNEL); in idpf_send_get_set_rss_key_msg()
2477 if (!rss_data->rss_key) { in idpf_send_get_set_rss_key_msg()
2478 rss_data->rss_key_size = 0; in idpf_send_get_set_rss_key_msg()
2483 memcpy(rss_data->rss_key, recv_rk->key_flex, rss_data->rss_key_size); in idpf_send_get_set_rss_key_msg()
3146 struct idpf_rss_data *rss_data; in idpf_vport_init() local
3150 rss_data = &vport_config->user_config.rss_data; in idpf_vport_init()
3163 rss_data->rss_key_size = min_t(u16, NETDEV_RSS_KEY_LEN, in idpf_vport_init()
3165 rss_data->rss_lut_size = le16_to_cpu(vport_msg->rss_lut_size); in idpf_vport_init()