Lines Matching defs:app

469 		struct dcb_app app = {
473 up = dcb_getapp(netdev, &app);
538 struct dcb_app app;
539 app.selector = idtype;
540 app.protocol = id;
541 app.priority = up;
542 ret = dcb_setapp(netdev, &app);
985 * retrieve the peer app configuration form the driver. If the driver
1000 struct nlattr *app;
1008 app = nla_nest_start_noflag(skb, app_nested_type);
1009 if (!app)
1021 nla_nest_end(skb, app);
1033 struct nlattr *ieee, *app;
1112 app = nla_nest_start_noflag(skb, DCB_ATTR_IEEE_APP_TABLE);
1113 if (!app)
1119 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app),
1120 &itr->app);
1134 nla_nest_end(skb, app);
1229 struct nlattr *cee, *app;
1270 /* local app */
1272 app = nla_nest_start_noflag(skb, DCB_ATTR_CEE_APP_TABLE);
1273 if (!app)
1284 itr->app.selector);
1289 itr->app.protocol);
1294 itr->app.priority);
1301 nla_nest_end(skb, app);
1799 static struct dcb_app_type *dcb_app_lookup(const struct dcb_app *app,
1805 if (itr->app.selector == app->selector &&
1806 itr->app.protocol == app->protocol &&
1808 ((prio == -1) || itr->app.priority == prio))
1815 static int dcb_app_add(const struct dcb_app *app, int ifindex)
1823 memcpy(&entry->app, app, sizeof(*app));
1837 u8 dcb_getapp(struct net_device *dev, struct dcb_app *app)
1843 itr = dcb_app_lookup(app, dev->ifindex, -1);
1845 prio = itr->app.priority;
1853 * dcb_setapp - add CEE dcb application data to app list
1856 * removes applications from the app list if the priority is
1866 memcpy(&event.app, new, sizeof(event.app));
1875 itr->app.priority = new->priority;
1900 u8 dcb_ieee_getapp_mask(struct net_device *dev, struct dcb_app *app)
1906 itr = dcb_app_lookup(app, dev->ifindex, -1);
1908 prio |= 1 << itr->app.priority;
1916 * dcb_ieee_setapp - add IEEE dcb application data to app list
1929 memcpy(&event.app, new, sizeof(event.app));
1961 memcpy(&event.app, del, sizeof(event.app));
1998 itr->app.selector == IEEE_8021QAZ_APP_SEL_DSCP &&
1999 itr->app.protocol < 64 &&
2000 itr->app.priority < IEEE_8021QAZ_MAX_TCS) {
2001 prio = itr->app.priority;
2002 p_map->map[prio] |= 1ULL << itr->app.protocol;
2027 itr->app.selector == IEEE_8021QAZ_APP_SEL_DSCP &&
2028 itr->app.protocol < 64 &&
2029 itr->app.priority < IEEE_8021QAZ_MAX_TCS)
2030 p_map->map[itr->app.protocol] |= 1 << itr->app.priority;
2055 itr->app.selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE &&
2056 itr->app.protocol == 0 &&
2057 itr->app.priority < IEEE_8021QAZ_MAX_TCS)
2058 mask |= 1 << itr->app.priority;