Lines Matching full:app
11 struct i40e_dcb_app_priority_table *app);
186 * i40e_dcbnl_ieee_setapp - set local IEEE App configuration
188 * @app: structure to hold the Application information
190 * Sets local IEEE App configuration
193 struct dcb_app *app) in i40e_dcbnl_ieee_setapp() argument
208 ret = dcb_ieee_setapp(netdev, app); in i40e_dcbnl_ieee_setapp()
212 new_app.selector = app->selector; in i40e_dcbnl_ieee_setapp()
213 new_app.protocolid = app->protocol; in i40e_dcbnl_ieee_setapp()
214 new_app.priority = app->priority; in i40e_dcbnl_ieee_setapp()
221 /* Add the app */ in i40e_dcbnl_ieee_setapp()
222 pf->tmp_cfg.app[pf->tmp_cfg.numapps++] = new_app; in i40e_dcbnl_ieee_setapp()
237 * i40e_dcbnl_ieee_delapp - delete local IEEE App configuration
239 * @app: structure to hold the Application information
241 * Deletes local IEEE App configuration other than the first application
245 struct dcb_app *app) in i40e_dcbnl_ieee_delapp() argument
255 ret = dcb_ieee_delapp(netdev, app); in i40e_dcbnl_ieee_delapp()
260 /* Need one app for FW so keep it */ in i40e_dcbnl_ieee_delapp()
267 /* Find and reset the app */ in i40e_dcbnl_ieee_delapp()
269 if (app->selector == pf->tmp_cfg.app[i].selector && in i40e_dcbnl_ieee_delapp()
270 app->protocol == pf->tmp_cfg.app[i].protocolid && in i40e_dcbnl_ieee_delapp()
271 app->priority == pf->tmp_cfg.app[i].priority) { in i40e_dcbnl_ieee_delapp()
272 /* Reset the app data */ in i40e_dcbnl_ieee_delapp()
273 pf->tmp_cfg.app[i].selector = 0; in i40e_dcbnl_ieee_delapp()
274 pf->tmp_cfg.app[i].protocolid = 0; in i40e_dcbnl_ieee_delapp()
275 pf->tmp_cfg.app[i].priority = 0; in i40e_dcbnl_ieee_delapp()
280 /* If the specific DCB app not found */ in i40e_dcbnl_ieee_delapp()
285 /* Overwrite the tmp_cfg app */ in i40e_dcbnl_ieee_delapp()
287 pf->tmp_cfg.app[j] = old_cfg->app[j + 1]; in i40e_dcbnl_ieee_delapp()
748 * i40e_dcbnl_getapp - Get CEE APP
750 * @idtype: the App selector
751 * @id: the App ethtype or port number
753 * Return the CEE mode app for the given idtype and id
758 struct dcb_app app = { in i40e_dcbnl_getapp() local
767 return dcb_getapp(netdev, &app); in i40e_dcbnl_getapp()
872 * Set up all the IEEE APPs in the DCBNL App Table and generate event for
899 /* Set up all the App TLVs if DCBx is negotiated */ in i40e_dcbnl_set_all()
901 prio = dcbxcfg->app[i].priority; in i40e_dcbnl_set_all()
904 /* Add APP only if the TC is enabled for this VSI */ in i40e_dcbnl_set_all()
906 sapp.selector = dcbxcfg->app[i].selector; in i40e_dcbnl_set_all()
907 sapp.protocol = dcbxcfg->app[i].protocolid; in i40e_dcbnl_set_all()
918 * i40e_dcbnl_vsi_del_app - Delete APP for given VSI
920 * @app: APP to delete
922 * Delete given APP from the DCBNL APP table for given
926 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_vsi_del_app() argument
934 sapp.selector = app->selector; in i40e_dcbnl_vsi_del_app()
935 sapp.protocol = app->protocolid; in i40e_dcbnl_vsi_del_app()
936 sapp.priority = app->priority; in i40e_dcbnl_vsi_del_app()
941 * i40e_dcbnl_del_app - Delete APP on all VSIs
943 * @app: APP to delete
945 * Delete given APP from all the VSIs for given PF
948 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_del_app() argument
955 err = i40e_dcbnl_vsi_del_app(vsi, app); in i40e_dcbnl_del_app()
956 dev_dbg(&pf->pdev->dev, "Deleting app for VSI seid=%d err=%d sel=%d proto=0x%x prio=%d\n", in i40e_dcbnl_del_app()
957 vsi->seid, err, app->selector, in i40e_dcbnl_del_app()
958 app->protocolid, app->priority); in i40e_dcbnl_del_app()
963 * i40e_dcbnl_find_app - Search APP in given DCB config
965 * @app: APP to search for
967 * Find given APP in the DCB configuration
970 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_find_app() argument
975 if (app->selector == cfg->app[i].selector && in i40e_dcbnl_find_app()
976 app->protocolid == cfg->app[i].protocolid && in i40e_dcbnl_find_app()
977 app->priority == cfg->app[i].priority) in i40e_dcbnl_find_app()
997 struct i40e_dcb_app_priority_table app; in i40e_dcbnl_flush_apps() local
1005 app = old_cfg->app[i]; in i40e_dcbnl_flush_apps()
1006 /* The APP is not available anymore delete it */ in i40e_dcbnl_flush_apps()
1007 if (!i40e_dcbnl_find_app(new_cfg, &app)) in i40e_dcbnl_flush_apps()
1008 i40e_dcbnl_del_app(pf, &app); in i40e_dcbnl_flush_apps()
1016 * Set up DCBNL ops and initial APP TLVs