Lines Matching full:rf
96 irdma_request_reset(struct irdma_pci_f *rf) in irdma_request_reset() argument
98 struct ice_rdma_peer *peer = rf->peer_info; in irdma_request_reset()
111 struct ice_rdma_peer *peer = iwdev->rf->peer_info; in irdma_register_qset()
135 struct ice_rdma_peer *peer = iwdev->rf->peer_info; in irdma_unregister_qset()
152 struct irdma_pci_f *rf; in hw_to_dev() local
154 rf = container_of(hw, struct irdma_pci_f, hw); in hw_to_dev()
155 return rf->pcidev; in hw_to_dev()
206 irdma_manage_arp_cache(iwdev->rf, mac_addr, local_ipaddr6, in irdma_add_ipv6_cb()
247 irdma_manage_arp_cache(iwdev->rf, mac_addr, ip_addr, in irdma_add_ipv4_cb()
295 struct irdma_pci_f *rf = arg; in irdma_ifaddrevent_handler() local
304 if (rf->iwdev->netdev != ifp) { in irdma_ifaddrevent_handler()
305 for (i = 0; if_getvlantrunk(rf->iwdev->netdev) != NULL && i < VLAN_N_VID; ++i) { in irdma_ifaddrevent_handler()
307 ifv = VLAN_DEVAT(rf->iwdev->netdev, i); in irdma_ifaddrevent_handler()
320 irdma_add_ipv4_addr(rf->iwdev, ifp); in irdma_ifaddrevent_handler()
322 irdma_add_ipv6_addr(rf->iwdev, ifp); in irdma_ifaddrevent_handler()
332 for_each_set_bit(arp_index, rf->allocated_arps, rf->arp_table_size) { in irdma_ifaddrevent_handler()
333 if (!memcmp(rf->arp_table[arp_index].ip_addr, ip, sizeof(ip))) { in irdma_ifaddrevent_handler()
334 irdma_manage_arp_cache(rf, rf->arp_table[arp_index].mac_addr, in irdma_ifaddrevent_handler()
335 rf->arp_table[arp_index].ip_addr, in irdma_ifaddrevent_handler()
346 irdma_reg_ipaddr_event_cb(struct irdma_pci_f *rf) in irdma_reg_ipaddr_event_cb() argument
348 rf->irdma_ifaddr_event = EVENTHANDLER_REGISTER(ifaddr_event_ext, in irdma_reg_ipaddr_event_cb()
350 rf, in irdma_reg_ipaddr_event_cb()
355 irdma_dereg_ipaddr_event_cb(struct irdma_pci_f *rf) in irdma_dereg_ipaddr_event_cb() argument
357 EVENTHANDLER_DEREGISTER(ifaddr_event_ext, rf->irdma_ifaddr_event); in irdma_dereg_ipaddr_event_cb()
459 return irdma_add_arp(iwdev->rf, ip, dst_mac); in irdma_addr_resolve_neigh()
486 return irdma_add_arp(iwdev->rf, dest, dst_mac); in irdma_addr_resolve_neigh_ipv6()
507 arpindex = irdma_arp_table(iwdev->rf, cm_node->rem_addr, in irdma_resolve_neigh_lpb_chk()
511 oldarpindex = irdma_arp_table(iwdev->rf, cm_node->rem_addr, in irdma_resolve_neigh_lpb_chk()
556 * @rf: RDMA PCI function
559 irdma_set_rf_user_cfg_params(struct irdma_pci_f *rf) in irdma_set_rf_user_cfg_params() argument
564 rf->en_rem_endpoint_trk = en_rem_endpoint_trk; in irdma_set_rf_user_cfg_params()
565 rf->limits_sel = limits_sel; in irdma_set_rf_user_cfg_params()
566 rf->rst_to = IRDMA_RST_TIMEOUT_HZ; in irdma_set_rf_user_cfg_params()
568 rf->dcqcn_ena = true; in irdma_set_rf_user_cfg_params()
573 * @arg1: pointer to rf
581 struct irdma_pci_f *rf = (struct irdma_pci_f *)arg1; in irdma_sysctl_dcqcn_update() local
583 u8 dcqcn_ena = rf->dcqcn_ena; in irdma_sysctl_dcqcn_update()
589 rf->dcqcn_ena = false; in irdma_sysctl_dcqcn_update()
591 rf->dcqcn_ena = true; in irdma_sysctl_dcqcn_update()
779 * @rf: RDMA PCI function
788 irdma_dcqcn_tunables_init(struct irdma_pci_f *rf) in irdma_dcqcn_tunables_init() argument
792 irdma_sysctl_oid_list = SYSCTL_CHILDREN(rf->tun_info.irdma_sysctl_tree); in irdma_dcqcn_tunables_init()
794 SYSCTL_ADD_PROC(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
795 OID_AUTO, "dcqcn_enable", CTLFLAG_RW | CTLTYPE_U8, rf, 0, in irdma_dcqcn_tunables_init()
799 SYSCTL_ADD_U8(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
801 &rf->dcqcn_params.cc_cfg_valid, 0, in irdma_dcqcn_tunables_init()
804 rf->dcqcn_params.min_dec_factor = 1; in irdma_dcqcn_tunables_init()
805 SYSCTL_ADD_U8(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
807 &rf->dcqcn_params.min_dec_factor, 0, in irdma_dcqcn_tunables_init()
810 SYSCTL_ADD_U8(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
812 &rf->dcqcn_params.min_rate, 0, in irdma_dcqcn_tunables_init()
815 rf->dcqcn_params.dcqcn_f = 5; in irdma_dcqcn_tunables_init()
816 SYSCTL_ADD_U8(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
817 OID_AUTO, "dcqcn_F", CTLFLAG_RDTUN, &rf->dcqcn_params.dcqcn_f, 0, in irdma_dcqcn_tunables_init()
820 rf->dcqcn_params.dcqcn_t = 0x37; in irdma_dcqcn_tunables_init()
821 SYSCTL_ADD_U16(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
822 OID_AUTO, "dcqcn_T", CTLFLAG_RDTUN, &rf->dcqcn_params.dcqcn_t, 0, in irdma_dcqcn_tunables_init()
825 rf->dcqcn_params.dcqcn_b = 0x249f0; in irdma_dcqcn_tunables_init()
826 SYSCTL_ADD_U32(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
827 OID_AUTO, "dcqcn_B", CTLFLAG_RDTUN, &rf->dcqcn_params.dcqcn_b, 0, in irdma_dcqcn_tunables_init()
830 rf->dcqcn_params.rai_factor = 1; in irdma_dcqcn_tunables_init()
831 SYSCTL_ADD_U16(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
833 &rf->dcqcn_params.rai_factor, 0, in irdma_dcqcn_tunables_init()
836 rf->dcqcn_params.hai_factor = 5; in irdma_dcqcn_tunables_init()
837 SYSCTL_ADD_U16(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
839 &rf->dcqcn_params.hai_factor, 0, in irdma_dcqcn_tunables_init()
842 rf->dcqcn_params.rreduce_mperiod = 50; in irdma_dcqcn_tunables_init()
843 SYSCTL_ADD_U32(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_dcqcn_tunables_init()
845 &rf->dcqcn_params.rreduce_mperiod, 0, in irdma_dcqcn_tunables_init()
851 * @rf: RDMA PCI function
854 irdma_sysctl_settings(struct irdma_pci_f *rf) in irdma_sysctl_settings() argument
858 irdma_sysctl_oid_list = SYSCTL_CHILDREN(rf->tun_info.irdma_sysctl_tree); in irdma_sysctl_settings()
860 SYSCTL_ADD_BOOL(&rf->tun_info.irdma_sysctl_ctx, irdma_sysctl_oid_list, in irdma_sysctl_settings()
867 irdma_sw_stats_tunables_init(struct irdma_pci_f *rf) in irdma_sw_stats_tunables_init() argument
870 struct sysctl_ctx_list *irdma_ctx = &rf->tun_info.irdma_sysctl_ctx; in irdma_sw_stats_tunables_init()
871 struct irdma_sc_dev *dev = &rf->sc_dev; in irdma_sw_stats_tunables_init()
872 struct irdma_cm_core *cm_core = &rf->iwdev->cm_core; in irdma_sw_stats_tunables_init()
873 struct irdma_puda_rsrc *ilq = rf->iwdev->vsi.ilq; in irdma_sw_stats_tunables_init()
874 struct irdma_puda_rsrc *ieq = rf->iwdev->vsi.ieq; in irdma_sw_stats_tunables_init()
885 sws_oid_list = SYSCTL_CHILDREN(rf->tun_info.sws_sysctl_tree); in irdma_sw_stats_tunables_init()
1037 struct irdma_pci_f *rf; in irdma_cleanup_dead_qps() local
1048 rf = iwqp->iwdev->rf; in irdma_cleanup_dead_qps()
1049 irdma_free_dma_mem(rf->sc_dev.hw, &iwqp->q2_ctx_mem); in irdma_cleanup_dead_qps()
1050 irdma_free_dma_mem(rf->sc_dev.hw, &iwqp->kqp.dma_mem); in irdma_cleanup_dead_qps()