Lines Matching full:app

643  * ice_dcbnl_getapp - get CEE APP
645 * @idtype: the App selector
646 * @id: the App ethtype or port number
651 struct dcb_app app = { in ice_dcbnl_getapp() local
660 return dcb_getapp(netdev, &app); in ice_dcbnl_getapp()
664 * ice_dcbnl_find_app - Search for APP in given DCB config
666 * @app: struct to hold app data to look for
670 struct ice_dcb_app_priority_table *app) in ice_dcbnl_find_app() argument
675 if (app->selector == cfg->app[i].selector && in ice_dcbnl_find_app()
676 app->prot_id == cfg->app[i].prot_id && in ice_dcbnl_find_app()
677 app->priority == cfg->app[i].priority) in ice_dcbnl_find_app()
685 * ice_dcbnl_setapp - set local IEEE App config
687 * @app: struct to hold app config info
689 static int ice_dcbnl_setapp(struct net_device *netdev, struct dcb_app *app) in ice_dcbnl_setapp() argument
711 ret = dcb_ieee_setapp(netdev, app); in ice_dcbnl_setapp()
715 new_app.selector = app->selector; in ice_dcbnl_setapp()
716 new_app.prot_id = app->protocol; in ice_dcbnl_setapp()
717 new_app.priority = app->priority; in ice_dcbnl_setapp()
723 new_cfg->app[new_cfg->numapps++] = new_app; in ice_dcbnl_setapp()
737 * ice_dcbnl_delapp - Delete local IEEE App config
739 * @app: struct to hold app too delete
743 static int ice_dcbnl_delapp(struct net_device *netdev, struct dcb_app *app) in ice_dcbnl_delapp() argument
759 ret = dcb_ieee_delapp(netdev, app); in ice_dcbnl_delapp()
766 if (app->selector == new_cfg->app[i].selector && in ice_dcbnl_delapp()
767 app->protocol == new_cfg->app[i].prot_id && in ice_dcbnl_delapp()
768 app->priority == new_cfg->app[i].priority) { in ice_dcbnl_delapp()
769 new_cfg->app[i].selector = 0; in ice_dcbnl_delapp()
770 new_cfg->app[i].prot_id = 0; in ice_dcbnl_delapp()
771 new_cfg->app[i].priority = 0; in ice_dcbnl_delapp()
776 /* Did not find DCB App */ in ice_dcbnl_delapp()
785 new_cfg->app[i].selector = old_cfg->app[j + 1].selector; in ice_dcbnl_delapp()
786 new_cfg->app[i].prot_id = old_cfg->app[j + 1].prot_id; in ice_dcbnl_delapp()
787 new_cfg->app[i].priority = old_cfg->app[j + 1].priority; in ice_dcbnl_delapp()
892 prio = dcbxcfg->app[i].priority; in ice_dcbnl_set_all()
895 /* Add APP only if the TC is enabled for this VSI */ in ice_dcbnl_set_all()
897 sapp.selector = dcbxcfg->app[i].selector; in ice_dcbnl_set_all()
898 sapp.protocol = dcbxcfg->app[i].prot_id; in ice_dcbnl_set_all()
908 * ice_dcbnl_vsi_del_app - Delete APP on all VSIs
910 * @app: APP to delete
912 * Delete given APP from all the VSIs for given PF
916 struct ice_dcb_app_priority_table *app) in ice_dcbnl_vsi_del_app() argument
921 sapp.selector = app->selector; in ice_dcbnl_vsi_del_app()
922 sapp.protocol = app->prot_id; in ice_dcbnl_vsi_del_app()
923 sapp.priority = app->priority; in ice_dcbnl_vsi_del_app()
925 …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()
926 vsi->idx, err, app->selector, app->prot_id, app->priority); in ice_dcbnl_vsi_del_app()
949 struct ice_dcb_app_priority_table app = old_cfg->app[i]; in ice_dcbnl_flush_apps() local
951 /* The APP is not available anymore delete it */ in ice_dcbnl_flush_apps()
952 if (!ice_dcbnl_find_app(new_cfg, &app)) in ice_dcbnl_flush_apps()
953 ice_dcbnl_vsi_del_app(main_vsi, &app); in ice_dcbnl_flush_apps()