Lines Matching refs:vnic_info
660 softc->vnic_info.id = (uint16_t)HWRM_NA_SIGNATURE; in bnxt_rx_queues_alloc()
661 softc->vnic_info.filter_id = -1; in bnxt_rx_queues_alloc()
662 softc->vnic_info.def_ring_grp = (uint16_t)HWRM_NA_SIGNATURE; in bnxt_rx_queues_alloc()
663 softc->vnic_info.cos_rule = (uint16_t)HWRM_NA_SIGNATURE; in bnxt_rx_queues_alloc()
664 softc->vnic_info.lb_rule = (uint16_t)HWRM_NA_SIGNATURE; in bnxt_rx_queues_alloc()
665 softc->vnic_info.rx_mask = HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST | in bnxt_rx_queues_alloc()
667 softc->vnic_info.mc_list_count = 0; in bnxt_rx_queues_alloc()
668 softc->vnic_info.flags = BNXT_VNIC_FLAG_DEFAULT; in bnxt_rx_queues_alloc()
670 &softc->vnic_info.mc_list, 0); in bnxt_rx_queues_alloc()
676 &softc->vnic_info.rss_hash_key_tbl, 0); in bnxt_rx_queues_alloc()
679 bus_dmamap_sync(softc->vnic_info.rss_hash_key_tbl.idi_tag, in bnxt_rx_queues_alloc()
680 softc->vnic_info.rss_hash_key_tbl.idi_map, in bnxt_rx_queues_alloc()
682 memcpy(softc->vnic_info.rss_hash_key_tbl.idi_vaddr, in bnxt_rx_queues_alloc()
683 softc->vnic_info.rss_hash_key, HW_HASH_KEY_SIZE); in bnxt_rx_queues_alloc()
687 &softc->vnic_info.rss_grp_tbl, 0); in bnxt_rx_queues_alloc()
690 bus_dmamap_sync(softc->vnic_info.rss_grp_tbl.idi_tag, in bnxt_rx_queues_alloc()
691 softc->vnic_info.rss_grp_tbl.idi_map, in bnxt_rx_queues_alloc()
693 memset(softc->vnic_info.rss_grp_tbl.idi_vaddr, 0xff, in bnxt_rx_queues_alloc()
694 softc->vnic_info.rss_grp_tbl.idi_size); in bnxt_rx_queues_alloc()
700 iflib_dma_free(&softc->vnic_info.rss_hash_key_tbl); in bnxt_rx_queues_alloc()
702 iflib_dma_free(&softc->vnic_info.mc_list); in bnxt_rx_queues_alloc()
1533 arc4rand(softc->vnic_info.rss_hash_key, HW_HASH_KEY_SIZE, 0); in bnxt_attach_pre()
1534 softc->vnic_info.rss_hash_type = in bnxt_attach_pre()
1554 SLIST_INIT(&softc->vnic_info.vlan_tags); in bnxt_attach_pre()
1555 softc->vnic_info.vlan_tag_list.idi_vaddr = NULL; in bnxt_attach_pre()
1636 iflib_dma_free(&softc->vnic_info.mc_list); in bnxt_detach()
1637 iflib_dma_free(&softc->vnic_info.rss_hash_key_tbl); in bnxt_detach()
1638 iflib_dma_free(&softc->vnic_info.rss_grp_tbl); in bnxt_detach()
1639 if (softc->vnic_info.vlan_tag_list.idi_vaddr) in bnxt_detach()
1640 iflib_dma_free(&softc->vnic_info.vlan_tag_list); in bnxt_detach()
1641 SLIST_FOREACH_SAFE(tag, &softc->vnic_info.vlan_tags, next, tmp) in bnxt_detach()
1697 rc = bnxt_hwrm_vnic_free(softc, &softc->vnic_info); in bnxt_hwrm_resource_free()
1701 rc = bnxt_hwrm_vnic_ctx_free(softc, softc->vnic_info.rss_id); in bnxt_hwrm_resource_free()
1766 uint16_t *rgt = (uint16_t *) softc->vnic_info.rss_grp_tbl.idi_vaddr; in bnxt_rss_grp_tbl_init()
1882 rc = bnxt_hwrm_vnic_ctx_alloc(softc, &softc->vnic_info.rss_id); in bnxt_init()
1887 softc->vnic_info.def_ring_grp = softc->grp_info[0].grp_id; in bnxt_init()
1888 softc->vnic_info.mru = softc->scctx->isc_max_frame_size; in bnxt_init()
1889 rc = bnxt_hwrm_vnic_alloc(softc, &softc->vnic_info); in bnxt_init()
1892 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_init()
1895 rc = bnxt_hwrm_vnic_set_hds(softc, &softc->vnic_info); in bnxt_init()
1904 rc = bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_init()
1905 softc->vnic_info.rss_hash_type); in bnxt_init()
1944 bnxt_hwrm_cfa_l2_set_rx_mask(softc, &softc->vnic_info); in bnxt_init()
1986 mta = softc->vnic_info.mc_list.idi_vaddr; in bnxt_multi_set()
1987 bzero(mta, softc->vnic_info.mc_list.idi_size); in bnxt_multi_set()
1991 softc->vnic_info.rx_mask |= in bnxt_multi_set()
1993 bnxt_hwrm_cfa_l2_set_rx_mask(softc, &softc->vnic_info); in bnxt_multi_set()
1995 softc->vnic_info.rx_mask &= in bnxt_multi_set()
1997 bus_dmamap_sync(softc->vnic_info.mc_list.idi_tag, in bnxt_multi_set()
1998 softc->vnic_info.mc_list.idi_map, BUS_DMASYNC_PREWRITE); in bnxt_multi_set()
1999 softc->vnic_info.mc_list_count = mcnt; in bnxt_multi_set()
2000 softc->vnic_info.rx_mask |= in bnxt_multi_set()
2002 if (bnxt_hwrm_cfa_l2_set_rx_mask(softc, &softc->vnic_info)) in bnxt_multi_set()
2162 softc->vnic_info.rx_mask |= in bnxt_promisc_set()
2165 softc->vnic_info.rx_mask &= in bnxt_promisc_set()
2169 softc->vnic_info.rx_mask |= in bnxt_promisc_set()
2173 softc->vnic_info.rx_mask &= in bnxt_promisc_set()
2176 rc = bnxt_hwrm_cfa_l2_set_rx_mask(softc, &softc->vnic_info); in bnxt_promisc_set()
2455 SLIST_INSERT_HEAD(&softc->vnic_info.vlan_tags, new_tag, next); in bnxt_vlan_register()
2464 SLIST_FOREACH(vlan_tag, &softc->vnic_info.vlan_tags, next) { in bnxt_vlan_unregister()
2466 SLIST_REMOVE(&softc->vnic_info.vlan_tags, vlan_tag, in bnxt_vlan_unregister()
3190 softc->vnic_info.filter_id = -1; in bnxt_clear_ids()
3191 softc->vnic_info.id = (uint16_t)HWRM_NA_SIGNATURE; in bnxt_clear_ids()
3192 softc->vnic_info.rss_id = (uint16_t)HWRM_NA_SIGNATURE; in bnxt_clear_ids()
3193 memset(softc->vnic_info.rss_grp_tbl.idi_vaddr, 0xff, in bnxt_clear_ids()
3194 softc->vnic_info.rss_grp_tbl.idi_size); in bnxt_clear_ids()