Lines Matching full:app

11 				struct i40e_dcb_app_priority_table *app);
187 * i40e_dcbnl_ieee_setapp - set local IEEE App configuration
189 * @app: structure to hold the Application information
191 * Sets local IEEE App configuration
194 struct dcb_app *app) in i40e_dcbnl_ieee_setapp() argument
209 ret = dcb_ieee_setapp(netdev, app); in i40e_dcbnl_ieee_setapp()
213 new_app.selector = app->selector; in i40e_dcbnl_ieee_setapp()
214 new_app.protocolid = app->protocol; in i40e_dcbnl_ieee_setapp()
215 new_app.priority = app->priority; in i40e_dcbnl_ieee_setapp()
222 /* Add the app */ in i40e_dcbnl_ieee_setapp()
223 pf->tmp_cfg.app[pf->tmp_cfg.numapps++] = new_app; in i40e_dcbnl_ieee_setapp()
238 * i40e_dcbnl_ieee_delapp - delete local IEEE App configuration
240 * @app: structure to hold the Application information
242 * Deletes local IEEE App configuration other than the first application
246 struct dcb_app *app) in i40e_dcbnl_ieee_delapp() argument
256 ret = dcb_ieee_delapp(netdev, app); in i40e_dcbnl_ieee_delapp()
261 /* Need one app for FW so keep it */ in i40e_dcbnl_ieee_delapp()
268 /* Find and reset the app */ in i40e_dcbnl_ieee_delapp()
270 if (app->selector == pf->tmp_cfg.app[i].selector && in i40e_dcbnl_ieee_delapp()
271 app->protocol == pf->tmp_cfg.app[i].protocolid && in i40e_dcbnl_ieee_delapp()
272 app->priority == pf->tmp_cfg.app[i].priority) { in i40e_dcbnl_ieee_delapp()
273 /* Reset the app data */ in i40e_dcbnl_ieee_delapp()
274 pf->tmp_cfg.app[i].selector = 0; in i40e_dcbnl_ieee_delapp()
275 pf->tmp_cfg.app[i].protocolid = 0; in i40e_dcbnl_ieee_delapp()
276 pf->tmp_cfg.app[i].priority = 0; in i40e_dcbnl_ieee_delapp()
281 /* If the specific DCB app not found */ in i40e_dcbnl_ieee_delapp()
286 /* Overwrite the tmp_cfg app */ in i40e_dcbnl_ieee_delapp()
288 pf->tmp_cfg.app[j] = old_cfg->app[j + 1]; in i40e_dcbnl_ieee_delapp()
749 * i40e_dcbnl_getapp - Get CEE APP
751 * @idtype: the App selector
752 * @id: the App ethtype or port number
754 * Return the CEE mode app for the given idtype and id
759 struct dcb_app app = { in i40e_dcbnl_getapp() local
768 return dcb_getapp(netdev, &app); in i40e_dcbnl_getapp()
876 * Set up all the IEEE APPs in the DCBNL App Table and generate event for
903 /* Set up all the App TLVs if DCBx is negotiated */ in i40e_dcbnl_set_all()
905 prio = dcbxcfg->app[i].priority; in i40e_dcbnl_set_all()
908 /* Add APP only if the TC is enabled for this VSI */ in i40e_dcbnl_set_all()
910 sapp.selector = dcbxcfg->app[i].selector; in i40e_dcbnl_set_all()
911 sapp.protocol = dcbxcfg->app[i].protocolid; in i40e_dcbnl_set_all()
922 * i40e_dcbnl_vsi_del_app - Delete APP for given VSI
924 * @app: APP to delete
926 * Delete given APP from the DCBNL APP table for given
930 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_vsi_del_app() argument
938 sapp.selector = app->selector; in i40e_dcbnl_vsi_del_app()
939 sapp.protocol = app->protocolid; in i40e_dcbnl_vsi_del_app()
940 sapp.priority = app->priority; in i40e_dcbnl_vsi_del_app()
945 * i40e_dcbnl_del_app - Delete APP on all VSIs
947 * @app: APP to delete
949 * Delete given APP from all the VSIs for given PF
952 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_del_app() argument
958 err = i40e_dcbnl_vsi_del_app(pf->vsi[v], app); in i40e_dcbnl_del_app()
959 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()
960 pf->vsi[v]->seid, err, app->selector, in i40e_dcbnl_del_app()
961 app->protocolid, app->priority); in i40e_dcbnl_del_app()
967 * i40e_dcbnl_find_app - Search APP in given DCB config
969 * @app: APP to search for
971 * Find given APP in the DCB configuration
974 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_find_app() argument
979 if (app->selector == cfg->app[i].selector && in i40e_dcbnl_find_app()
980 app->protocolid == cfg->app[i].protocolid && in i40e_dcbnl_find_app()
981 app->priority == cfg->app[i].priority) in i40e_dcbnl_find_app()
1001 struct i40e_dcb_app_priority_table app; in i40e_dcbnl_flush_apps() local
1009 app = old_cfg->app[i]; in i40e_dcbnl_flush_apps()
1010 /* The APP is not available anymore delete it */ in i40e_dcbnl_flush_apps()
1011 if (!i40e_dcbnl_find_app(new_cfg, &app)) in i40e_dcbnl_flush_apps()
1012 i40e_dcbnl_del_app(pf, &app); in i40e_dcbnl_flush_apps()
1020 * Set up DCBNL ops and initial APP TLVs