Lines Matching defs:vnic
353 struct bnxt_vnic_info *vnic);
1079 printf("%s: failed to allocate vnic rss context\n",
1092 printf("%s: failed to allocate vnic\n", DEVNAME(sc));
1097 printf("%s: failed to configure vnic\n", DEVNAME(sc));
1102 printf("%s: failed to configure vnic placement mode\n",
1109 printf("%s: failed to set vnic filter\n", DEVNAME(sc));
2821 struct bnxt_vnic_info *vnic)
2831 req.vnic_id = htole16(vnic->id);
2838 bnxt_hwrm_vnic_cfg(struct bnxt_softc *softc, struct bnxt_vnic_info *vnic)
2844 if (vnic->flags & BNXT_VNIC_FLAG_DEFAULT)
2846 if (vnic->flags & BNXT_VNIC_FLAG_BD_STALL)
2848 if (vnic->flags & BNXT_VNIC_FLAG_VLAN_STRIP)
2853 req.vnic_id = htole16(vnic->id);
2854 req.dflt_ring_grp = htole16(vnic->def_ring_grp);
2855 req.rss_rule = htole16(vnic->rss_id);
2856 req.cos_rule = htole16(vnic->cos_rule);
2857 req.lb_rule = htole16(vnic->lb_rule);
2858 req.mru = htole16(vnic->mru);
2864 bnxt_hwrm_vnic_alloc(struct bnxt_softc *softc, struct bnxt_vnic_info *vnic)
2871 if (vnic->id != (uint16_t)HWRM_NA_SIGNATURE) {
2872 printf("%s: attempt to re-allocate vnic %04x\n",
2873 DEVNAME(softc), vnic->id);
2879 if (vnic->flags & BNXT_VNIC_FLAG_DEFAULT)
2887 vnic->id = le32toh(resp->vnic_id);
2895 bnxt_hwrm_vnic_free(struct bnxt_softc *softc, struct bnxt_vnic_info *vnic)
2900 if (vnic->id == (uint16_t)HWRM_NA_SIGNATURE) {
2901 printf("%s: attempt to deallocate vnic %04x\n",
2902 DEVNAME(softc), vnic->id);
2907 req.vnic_id = htole16(vnic->id);
2912 vnic->id = (uint16_t)HWRM_NA_SIGNATURE;
2927 printf("%s: attempt to re-allocate vnic ctx %04x\n",
2953 printf("%s: attempt to deallocate vnic ctx %04x\n",
3198 bnxt_hwrm_set_filter(struct bnxt_softc *softc, struct bnxt_vnic_info *vnic)
3205 if (vnic->filter_id != -1) {
3220 req.dst_id = htole16(vnic->id);
3229 vnic->filter_id = le64toh(resp->l2_filter_id);
3230 vnic->flow_id = le64toh(resp->flow_id);
3238 bnxt_hwrm_free_filter(struct bnxt_softc *softc, struct bnxt_vnic_info *vnic)
3243 if (vnic->filter_id == -1) {
3245 DEVNAME(softc), vnic->filter_id);
3250 req.l2_filter_id = htole64(vnic->filter_id);
3255 vnic->filter_id = -1;
3263 bnxt_hwrm_vnic_rss_cfg(struct bnxt_softc *softc, struct bnxt_vnic_info *vnic,
3273 req.rss_ctx_idx = htole16(vnic->rss_id);