Lines Matching full:app
645 * ice_dcbnl_getapp - get CEE APP
647 * @idtype: the App selector
648 * @id: the App ethtype or port number
653 struct dcb_app app = { in ice_dcbnl_getapp() local
662 return dcb_getapp(netdev, &app); in ice_dcbnl_getapp()
666 * ice_dcbnl_find_app - Search for APP in given DCB config
668 * @app: struct to hold app data to look for
672 struct ice_dcb_app_priority_table *app) in ice_dcbnl_find_app() argument
677 if (app->selector == cfg->app[i].selector && in ice_dcbnl_find_app()
678 app->prot_id == cfg->app[i].prot_id && in ice_dcbnl_find_app()
679 app->priority == cfg->app[i].priority) in ice_dcbnl_find_app()
687 * ice_dcbnl_setapp - set local IEEE App config
689 * @app: struct to hold app config info
691 static int ice_dcbnl_setapp(struct net_device *netdev, struct dcb_app *app) in ice_dcbnl_setapp() argument
713 ret = dcb_ieee_setapp(netdev, app); in ice_dcbnl_setapp()
717 new_app.selector = app->selector; in ice_dcbnl_setapp()
718 new_app.prot_id = app->protocol; in ice_dcbnl_setapp()
719 new_app.priority = app->priority; in ice_dcbnl_setapp()
725 new_cfg->app[new_cfg->numapps++] = new_app; in ice_dcbnl_setapp()
739 * ice_dcbnl_delapp - Delete local IEEE App config
741 * @app: struct to hold app too delete
745 static int ice_dcbnl_delapp(struct net_device *netdev, struct dcb_app *app) in ice_dcbnl_delapp() argument
761 ret = dcb_ieee_delapp(netdev, app); in ice_dcbnl_delapp()
768 if (app->selector == new_cfg->app[i].selector && in ice_dcbnl_delapp()
769 app->protocol == new_cfg->app[i].prot_id && in ice_dcbnl_delapp()
770 app->priority == new_cfg->app[i].priority) { in ice_dcbnl_delapp()
771 new_cfg->app[i].selector = 0; in ice_dcbnl_delapp()
772 new_cfg->app[i].prot_id = 0; in ice_dcbnl_delapp()
773 new_cfg->app[i].priority = 0; in ice_dcbnl_delapp()
778 /* Did not find DCB App */ in ice_dcbnl_delapp()
787 new_cfg->app[i].selector = old_cfg->app[j + 1].selector; in ice_dcbnl_delapp()
788 new_cfg->app[i].prot_id = old_cfg->app[j + 1].prot_id; in ice_dcbnl_delapp()
789 new_cfg->app[i].priority = old_cfg->app[j + 1].priority; in ice_dcbnl_delapp()
894 prio = dcbxcfg->app[i].priority; in ice_dcbnl_set_all()
897 /* Add APP only if the TC is enabled for this VSI */ in ice_dcbnl_set_all()
899 sapp.selector = dcbxcfg->app[i].selector; in ice_dcbnl_set_all()
900 sapp.protocol = dcbxcfg->app[i].prot_id; in ice_dcbnl_set_all()
910 * ice_dcbnl_vsi_del_app - Delete APP on all VSIs
912 * @app: APP to delete
914 * Delete given APP from all the VSIs for given PF
918 struct ice_dcb_app_priority_table *app) in ice_dcbnl_vsi_del_app() argument
923 sapp.selector = app->selector; in ice_dcbnl_vsi_del_app()
924 sapp.protocol = app->prot_id; in ice_dcbnl_vsi_del_app()
925 sapp.priority = app->priority; in ice_dcbnl_vsi_del_app()
927 …dev_dbg(ice_pf_to_dev(vsi->back), "Deleting app for VSI idx=%d err=%d sel=%d proto=0x%x, prio=%d\n… in ice_dcbnl_vsi_del_app()
928 vsi->idx, err, app->selector, app->prot_id, app->priority); in ice_dcbnl_vsi_del_app()
951 struct ice_dcb_app_priority_table app = old_cfg->app[i]; in ice_dcbnl_flush_apps() local
953 /* The APP is not available anymore delete it */ in ice_dcbnl_flush_apps()
954 if (!ice_dcbnl_find_app(new_cfg, &app)) in ice_dcbnl_flush_apps()
955 ice_dcbnl_vsi_del_app(main_vsi, &app); in ice_dcbnl_flush_apps()