Lines Matching refs:kinfo

255 	struct net_device *netdev = h->kinfo.netdev;  in hclge_ieee_setets()
262 h->kinfo.tc_info.mqprio_active) in hclge_ieee_setets()
278 h->kinfo.tc_info.dcb_ets_active = num_tc > 1; in hclge_ieee_setets()
329 struct net_device *netdev = h->kinfo.netdev; in hclge_ieee_setpfc()
397 struct net_device *netdev = h->kinfo.netdev; in hclge_ieee_setapp()
410 if (app->priority == h->kinfo.dscp_prio[app->protocol]) in hclge_ieee_setapp()
419 old_app.priority = h->kinfo.dscp_prio[app->protocol]; in hclge_ieee_setapp()
421 h->kinfo.dscp_prio[app->protocol] = app->priority; in hclge_ieee_setapp()
426 h->kinfo.dscp_prio[app->protocol] = old_app.priority; in hclge_ieee_setapp()
431 vport->nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_DSCP; in hclge_ieee_setapp()
433 h->kinfo.dscp_app_cnt++; in hclge_ieee_setapp()
443 struct net_device *netdev = h->kinfo.netdev; in hclge_ieee_delapp()
450 app->priority != h->kinfo.dscp_prio[app->protocol]) in hclge_ieee_delapp()
460 h->kinfo.dscp_prio[app->protocol] = HNAE3_PRIO_ID_INVALID; in hclge_ieee_delapp()
465 h->kinfo.dscp_prio[app->protocol] = app->priority; in hclge_ieee_delapp()
470 if (h->kinfo.dscp_app_cnt) in hclge_ieee_delapp()
471 h->kinfo.dscp_app_cnt--; in hclge_ieee_delapp()
473 if (!h->kinfo.dscp_app_cnt) { in hclge_ieee_delapp()
474 vport->nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_PRIO; in hclge_ieee_delapp()
487 if (h->kinfo.tc_info.mqprio_active) in hclge_getdcbx()
496 struct net_device *netdev = h->kinfo.netdev; in hclge_setdcbx()
598 struct hnae3_knic_private_info *kinfo; in hclge_setup_tc() local
611 kinfo = &vport->nic.kinfo; in hclge_setup_tc()
612 if (kinfo->tc_info.dcb_ets_active) in hclge_setup_tc()
626 memcpy(&old_tc_info, &kinfo->tc_info, sizeof(old_tc_info)); in hclge_setup_tc()
627 hclge_sync_mqprio_qopt(&kinfo->tc_info, mqprio_qopt); in hclge_setup_tc()
628 kinfo->tc_info.mqprio_active = tc > 0; in hclge_setup_tc()
630 ret = hclge_config_tc(hdev, &kinfo->tc_info); in hclge_setup_tc()
643 memcpy(&kinfo->tc_info, &old_tc_info, sizeof(old_tc_info)); in hclge_setup_tc()
644 if (hclge_config_tc(hdev, &kinfo->tc_info)) in hclge_setup_tc()
668 struct hnae3_knic_private_info *kinfo; in hclge_dcb_ops_set() local
677 kinfo = &vport->nic.kinfo; in hclge_dcb_ops_set()
678 kinfo->dcb_ops = &hns3_dcb_ops; in hclge_dcb_ops_set()