• Home
  • Raw
  • Download

Lines Matching refs:app

658 	struct dcb_app app = {  in ice_dcbnl_getapp()  local
667 return dcb_getapp(netdev, &app); in ice_dcbnl_getapp()
677 struct ice_dcb_app_priority_table *app) in ice_dcbnl_find_app() argument
682 if (app->selector == cfg->app[i].selector && in ice_dcbnl_find_app()
683 app->prot_id == cfg->app[i].prot_id && in ice_dcbnl_find_app()
684 app->priority == cfg->app[i].priority) in ice_dcbnl_find_app()
698 static int ice_dcbnl_setapp(struct net_device *netdev, struct dcb_app *app) in ice_dcbnl_setapp() argument
707 if (app->selector != IEEE_8021QAZ_APP_SEL_DSCP) in ice_dcbnl_setapp()
722 if (app->protocol >= ICE_DSCP_NUM_VAL) { in ice_dcbnl_setapp()
724 app->protocol); in ice_dcbnl_setapp()
729 if (app->priority >= max_tc) { in ice_dcbnl_setapp()
731 app->priority, max_tc); in ice_dcbnl_setapp()
741 ret = dcb_ieee_setapp(netdev, app); in ice_dcbnl_setapp()
745 if (test_and_set_bit(app->protocol, new_cfg->dscp_mapped)) { in ice_dcbnl_setapp()
747 app->protocol); in ice_dcbnl_setapp()
748 ret = dcb_ieee_delapp(netdev, app); in ice_dcbnl_setapp()
755 new_app.selector = app->selector; in ice_dcbnl_setapp()
756 new_app.prot_id = app->protocol; in ice_dcbnl_setapp()
757 new_app.priority = app->priority; in ice_dcbnl_setapp()
805 new_cfg->dscp_map[app->protocol] = app->priority; in ice_dcbnl_setapp()
806 new_cfg->app[new_cfg->numapps++] = new_app; in ice_dcbnl_setapp()
827 static int ice_dcbnl_delapp(struct net_device *netdev, struct dcb_app *app) in ice_dcbnl_delapp() argument
842 ret = dcb_ieee_delapp(netdev, app); in ice_dcbnl_delapp()
849 if (app->selector == new_cfg->app[i].selector && in ice_dcbnl_delapp()
850 app->protocol == new_cfg->app[i].prot_id && in ice_dcbnl_delapp()
851 app->priority == new_cfg->app[i].priority) { in ice_dcbnl_delapp()
852 new_cfg->app[i].selector = 0; in ice_dcbnl_delapp()
853 new_cfg->app[i].prot_id = 0; in ice_dcbnl_delapp()
854 new_cfg->app[i].priority = 0; in ice_dcbnl_delapp()
868 new_cfg->app[j].selector = old_cfg->app[j + 1].selector; in ice_dcbnl_delapp()
869 new_cfg->app[j].prot_id = old_cfg->app[j + 1].prot_id; in ice_dcbnl_delapp()
870 new_cfg->app[j].priority = old_cfg->app[j + 1].priority; in ice_dcbnl_delapp()
874 if (app->selector != IEEE_8021QAZ_APP_SEL_DSCP || in ice_dcbnl_delapp()
881 clear_bit(app->protocol, new_cfg->dscp_mapped); in ice_dcbnl_delapp()
883 new_cfg->dscp_map[app->protocol] = app->protocol % in ice_dcbnl_delapp()
1016 prio = dcbxcfg->app[i].priority; in ice_dcbnl_set_all()
1021 sapp.selector = dcbxcfg->app[i].selector; in ice_dcbnl_set_all()
1022 sapp.protocol = dcbxcfg->app[i].prot_id; in ice_dcbnl_set_all()
1040 struct ice_dcb_app_priority_table *app) in ice_dcbnl_vsi_del_app() argument
1045 sapp.selector = app->selector; in ice_dcbnl_vsi_del_app()
1046 sapp.protocol = app->prot_id; in ice_dcbnl_vsi_del_app()
1047 sapp.priority = app->priority; in ice_dcbnl_vsi_del_app()
1050 vsi->idx, err, app->selector, app->prot_id, app->priority); in ice_dcbnl_vsi_del_app()
1073 struct ice_dcb_app_priority_table app = old_cfg->app[i]; in ice_dcbnl_flush_apps() local
1076 if (!ice_dcbnl_find_app(new_cfg, &app)) in ice_dcbnl_flush_apps()
1077 ice_dcbnl_vsi_del_app(main_vsi, &app); in ice_dcbnl_flush_apps()