Lines Matching refs:rx_config

2024 bnad_init_rx_config(struct bnad *bnad, struct bna_rx_config *rx_config)
2026 memset(rx_config, 0, sizeof(*rx_config));
2027 rx_config->rx_type = BNA_RX_T_REGULAR;
2028 rx_config->num_paths = bnad->num_rxp_per_rx;
2029 rx_config->coalescing_timeo = bnad->rx_coalescing_timeo;
2032 rx_config->rss_status = BNA_STATUS_T_ENABLED;
2033 rx_config->rss_config.hash_type =
2038 rx_config->rss_config.hash_mask =
2040 netdev_rss_key_fill(rx_config->rss_config.toeplitz_hash_key,
2041 sizeof(rx_config->rss_config.toeplitz_hash_key));
2043 rx_config->rss_status = BNA_STATUS_T_DISABLED;
2044 memset(&rx_config->rss_config, 0,
2045 sizeof(rx_config->rss_config));
2048 rx_config->frame_size = BNAD_FRAME_SIZE(bnad->netdev->mtu);
2049 rx_config->q0_multi_buf = BNA_STATUS_T_DISABLED;
2056 rx_config->rxp_type = BNA_RXP_SLR;
2059 rx_config->frame_size > 4096) {
2064 rx_config->q0_buf_size = 2048;
2066 rx_config->q0_num_vecs = 4;
2067 rx_config->q0_depth = bnad->rxq_depth * rx_config->q0_num_vecs;
2068 rx_config->q0_multi_buf = BNA_STATUS_T_ENABLED;
2070 rx_config->q0_buf_size = rx_config->frame_size;
2071 rx_config->q0_num_vecs = 1;
2072 rx_config->q0_depth = bnad->rxq_depth;
2076 if (rx_config->rxp_type == BNA_RXP_SLR) {
2077 rx_config->q1_depth = bnad->rxq_depth;
2078 rx_config->q1_buf_size = BFI_SMALL_RXBUF_SIZE;
2081 rx_config->vlan_strip_status =
2144 struct bna_rx_config *rx_config = &bnad->rx_config[rx_id];
2171 bnad_rx_msix_unregister(bnad, rx_info, rx_config->num_paths);
2194 struct bna_rx_config *rx_config = &bnad->rx_config[rx_id];
2210 bnad_init_rx_config(bnad, rx_config);
2214 bna_rx_res_req(rx_config, res_info);
2219 rx_config->num_paths,
2220 (rx_config->q0_depth *
2224 if (rx_config->rxp_type != BNA_RXP_SINGLE) {
2226 rx_config->num_paths,
2227 (rx_config->q1_depth *
2240 rx = bna_rx_create(&bnad->bna, bnad, rx_config, &rx_cbfn, res_info,
2261 rx_config->num_paths);