Home
last modified time | relevance | path

Searched refs:app (Results 1 – 25 of 107) sorted by relevance

12345

/drivers/net/ethernet/netronome/nfp/
Dnfp_app.h90 int (*init)(struct nfp_app *app);
91 void (*clean)(struct nfp_app *app);
93 const char *(*extra_cap)(struct nfp_app *app, struct nfp_net *nn);
95 int (*ndo_init)(struct nfp_app *app, struct net_device *netdev);
96 void (*ndo_uninit)(struct nfp_app *app, struct net_device *netdev);
98 int (*vnic_alloc)(struct nfp_app *app, struct nfp_net *nn,
100 void (*vnic_free)(struct nfp_app *app, struct nfp_net *nn);
101 int (*vnic_init)(struct nfp_app *app, struct nfp_net *nn);
102 void (*vnic_clean)(struct nfp_app *app, struct nfp_net *nn);
104 int (*repr_init)(struct nfp_app *app, struct net_device *netdev);
[all …]
Dnfp_app.c43 return nn->app; in nfp_app_from_netdev()
49 return repr->app; in nfp_app_from_netdev()
57 const char *nfp_app_mip_name(struct nfp_app *app) in nfp_app_mip_name() argument
59 if (!app || !app->pf->mip) in nfp_app_mip_name()
61 return nfp_mip_name(app->pf->mip); in nfp_app_mip_name()
66 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_ndo_init() local
68 if (!app || !app->type->ndo_init) in nfp_app_ndo_init()
70 return app->type->ndo_init(app, netdev); in nfp_app_ndo_init()
75 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_ndo_uninit() local
77 if (app && app->type->ndo_uninit) in nfp_app_ndo_uninit()
[all …]
Dnfp_net_sriov.c18 nfp_net_sriov_check(struct nfp_app *app, int vf, u16 cap, const char *msg, bool warn) in nfp_net_sriov_check() argument
22 if (!app || !app->pf->vfcfg_tbl2) in nfp_net_sriov_check()
25 cap_vf = readw(app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_CAP); in nfp_net_sriov_check()
28 nfp_warn(app->pf->cpp, "ndo_set_vf_%s not supported\n", msg); in nfp_net_sriov_check()
32 if (vf < 0 || vf >= app->pf->num_vfs) { in nfp_net_sriov_check()
34 nfp_warn(app->pf->cpp, "invalid VF id %d\n", vf); in nfp_net_sriov_check()
42 nfp_net_sriov_update(struct nfp_app *app, int vf, u16 update, const char *msg) in nfp_net_sriov_update() argument
48 writeb(vf, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_VF_NUM); in nfp_net_sriov_update()
49 writew(update, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_UPD); in nfp_net_sriov_update()
51 nn = list_first_entry(&app->pf->vnics, struct nfp_net, vnic_list); in nfp_net_sriov_update()
[all …]
Dccm.c10 #define ccm_warn(app, msg...) nn_dp_warn(&(app)->ctrl->dp, msg) argument
30 ccm_warn(ccm->app, "all FW request contexts busy!\n"); in nfp_ccm_alloc_tag()
65 nfp_ccm_reply(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag) in nfp_ccm_reply() argument
69 nfp_ctrl_lock(app->ctrl); in nfp_ccm_reply()
71 nfp_ctrl_unlock(app->ctrl); in nfp_ccm_reply()
77 nfp_ccm_reply_drop_tag(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag) in nfp_ccm_reply_drop_tag() argument
81 nfp_ctrl_lock(app->ctrl); in nfp_ccm_reply_drop_tag()
85 nfp_ctrl_unlock(app->ctrl); in nfp_ccm_reply_drop_tag()
91 nfp_ccm_wait_reply(struct nfp_ccm *ccm, struct nfp_app *app, in nfp_ccm_wait_reply() argument
99 skb = nfp_ccm_reply(ccm, app, tag); in nfp_ccm_wait_reply()
[all …]
Dnfp_net_repr.c20 nfp_repr_get_locked(struct nfp_app *app, struct nfp_reprs *set, unsigned int id) in nfp_repr_get_locked() argument
23 nfp_app_is_locked(app)); in nfp_repr_get_locked()
172 err = nfp_app_check_mtu(repr->app, netdev, new_mtu); in nfp_repr_change_mtu()
176 err = nfp_app_repr_change_mtu(repr->app, netdev, new_mtu); in nfp_repr_change_mtu()
207 err = nfp_app_repr_stop(repr->app, repr); in nfp_repr_stop()
224 err = nfp_app_repr_open(repr->app, repr); in nfp_repr_open()
297 nfp_app_repr_clean(repr->app, repr->netdev); in nfp_repr_clean()
316 int nfp_repr_init(struct nfp_app *app, struct net_device *netdev, in nfp_repr_init() argument
392 if (nfp_app_has_tc(app)) { in nfp_repr_init()
397 err = nfp_app_repr_init(app, netdev); in nfp_repr_init()
[all …]
Dnfp_net_repr.h55 struct nfp_app *app; member
91 nfp_repr_get_locked(struct nfp_app *app, struct nfp_reprs *set,
97 int nfp_repr_init(struct nfp_app *app, struct net_device *netdev,
102 nfp_repr_alloc_mqs(struct nfp_app *app, unsigned int txqs, unsigned int rxqs);
104 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs);
105 void nfp_reprs_clean_and_free_by_type(struct nfp_app *app,
108 int nfp_reprs_resync_phys_ports(struct nfp_app *app);
110 static inline struct net_device *nfp_repr_alloc(struct nfp_app *app) in nfp_repr_alloc() argument
112 return nfp_repr_alloc_mqs(app, 1, 1); in nfp_repr_alloc()
Dnfp_app_nic.c11 int nfp_app_nic_vnic_init_phy_port(struct nfp_pf *pf, struct nfp_app *app, in nfp_app_nic_vnic_init_phy_port() argument
19 nn->port = nfp_port_alloc(app, NFP_PORT_PHYS_PORT, nn->dp.netdev); in nfp_app_nic_vnic_init_phy_port()
23 err = nfp_port_init_phy_port(pf, app, nn->port, id); in nfp_app_nic_vnic_init_phy_port()
32 int nfp_app_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_app_nic_vnic_alloc() argument
37 err = nfp_app_nic_vnic_init_phy_port(app->pf, app, nn, id); in nfp_app_nic_vnic_alloc()
41 nfp_net_get_mac_addr(app->pf, nn->dp.netdev, nn->port); in nfp_app_nic_vnic_alloc()
Dnfp_port.c43 ppid->id_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_port_get_port_parent_id()
58 return nfp_app_setup_tc(port->app, netdev, type, type_data); in nfp_port_setup_tc()
168 err = nfp_eth_set_configured(port->app->cpp, eth_port->index, configed); in nfp_port_configure()
172 int nfp_port_init_phy_port(struct nfp_pf *pf, struct nfp_app *app, in nfp_port_init_phy_port() argument
177 nfp_err(app->cpp, in nfp_port_init_phy_port()
183 nfp_warn(app->cpp, in nfp_port_init_phy_port()
200 nfp_port_alloc(struct nfp_app *app, enum nfp_port_type type, in nfp_port_alloc() argument
211 port->app = app; in nfp_port_alloc()
213 list_add_tail(&port->port_list, &app->pf->ports); in nfp_port_alloc()
Dnfp_net_main.c83 nfp_app_vnic_free(pf->app, nn); in nfp_net_pf_free_vnic()
119 nn->app = pf->app; in nfp_net_pf_alloc_vnic()
127 err = nfp_app_vnic_alloc(pf->app, nn, id); in nfp_net_pf_alloc_vnic()
148 err = nfp_devlink_port_register(pf->app, nn->port); in nfp_net_pf_init_vnic()
165 err = nfp_app_vnic_init(pf->app, nn); in nfp_net_pf_init_vnic()
222 nfp_app_vnic_clean(pf->app, nn); in nfp_net_pf_clean_vnic()
311 pf->app = nfp_app_alloc(pf, nfp_net_pf_get_app_id(pf)); in nfp_net_pf_app_init()
312 if (IS_ERR(pf->app)) in nfp_net_pf_app_init()
313 return PTR_ERR(pf->app); in nfp_net_pf_app_init()
316 err = nfp_app_init(pf->app); in nfp_net_pf_app_init()
[all …]
/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c28 static const char *nfp_flower_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_flower_extra_cap() argument
33 static enum devlink_eswitch_mode eswitch_mode_get(struct nfp_app *app) in eswitch_mode_get() argument
57 nfp_flower_get_internal_port_id(struct nfp_app *app, struct net_device *netdev) in nfp_flower_get_internal_port_id() argument
59 struct nfp_flower_priv *priv = app->priv; in nfp_flower_get_internal_port_id()
76 u32 nfp_flower_get_port_id_from_netdev(struct nfp_app *app, in nfp_flower_get_port_id_from_netdev() argument
83 } else if (nfp_flower_internal_port_can_offload(app, netdev)) { in nfp_flower_get_port_id_from_netdev()
84 ext_port = nfp_flower_get_internal_port_id(app, netdev); in nfp_flower_get_port_id_from_netdev()
95 nfp_flower_get_netdev_from_internal_port_id(struct nfp_app *app, int port_id) in nfp_flower_get_netdev_from_internal_port_id() argument
97 struct nfp_flower_priv *priv = app->priv; in nfp_flower_get_netdev_from_internal_port_id()
108 nfp_flower_free_internal_port_id(struct nfp_app *app, struct net_device *netdev) in nfp_flower_free_internal_port_id() argument
[all …]
Dcmsg.c22 nfp_flower_cmsg_alloc(struct nfp_app *app, unsigned int size, in nfp_flower_cmsg_alloc() argument
30 skb = nfp_app_ctrl_msg_alloc(app, size, flag); in nfp_flower_cmsg_alloc()
44 nfp_flower_cmsg_mac_repr_start(struct nfp_app *app, unsigned int num_ports) in nfp_flower_cmsg_mac_repr_start() argument
49 skb = nfp_flower_cmsg_alloc(app, struct_size(msg, ports, num_ports), in nfp_flower_cmsg_mac_repr_start()
81 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(*msg), in nfp_flower_cmsg_portmod()
96 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_cmsg_portmod()
106 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(*msg), in nfp_flower_cmsg_portreify()
117 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_cmsg_portreify()
123 nfp_flower_process_mtu_ack(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_process_mtu_ack() argument
125 struct nfp_flower_priv *app_priv = app->priv; in nfp_flower_process_mtu_ack()
[all …]
Dtunnel_conf.c196 void nfp_tunnel_keep_alive(struct nfp_app *app, struct sk_buff *skb) in nfp_tunnel_keep_alive() argument
208 nfp_flower_cmsg_warn(app, "Tunnel keep-alive request exceeds max routes.\n"); in nfp_tunnel_keep_alive()
214 nfp_flower_cmsg_warn(app, "Corruption in tunnel keep-alive message.\n"); in nfp_tunnel_keep_alive()
222 netdev = nfp_app_dev_get(app, port, NULL); in nfp_tunnel_keep_alive()
237 void nfp_tunnel_keep_alive_v6(struct nfp_app *app, struct sk_buff *skb) in nfp_tunnel_keep_alive_v6() argument
250 nfp_flower_cmsg_warn(app, "IPv6 tunnel keep-alive request exceeds max routes.\n"); in nfp_tunnel_keep_alive_v6()
256 nfp_flower_cmsg_warn(app, "Corruption in tunnel keep-alive message.\n"); in nfp_tunnel_keep_alive_v6()
264 netdev = nfp_app_dev_get(app, port, NULL); in nfp_tunnel_keep_alive_v6()
281 nfp_flower_xmit_tun_conf(struct nfp_app *app, u8 mtype, u16 plen, void *pdata, in nfp_flower_xmit_tun_conf() argument
284 struct nfp_flower_priv *priv = app->priv; in nfp_flower_xmit_tun_conf()
[all …]
Dmain.h287 struct nfp_app *app; member
501 nfp_flower_internal_port_can_offload(struct nfp_app *app, in nfp_flower_internal_port_can_offload() argument
504 struct nfp_flower_priv *app_priv = app->priv; in nfp_flower_internal_port_can_offload()
530 int nfp_flower_metadata_init(struct nfp_app *app, u64 host_ctx_count,
532 void nfp_flower_metadata_cleanup(struct nfp_app *app);
534 int nfp_flower_setup_tc(struct nfp_app *app, struct net_device *netdev,
536 int nfp_flower_merge_offloaded_flows(struct nfp_app *app,
593 int nfp_flower_compile_flow_match(struct nfp_app *app,
600 int nfp_flower_compile_action(struct nfp_app *app,
605 int nfp_compile_flow_metadata(struct nfp_app *app, u32 cookie,
[all …]
Dqos_conf.c86 int nfp_flower_offload_one_police(struct nfp_app *app, bool ingress, in nfp_flower_offload_one_police() argument
92 skb = nfp_flower_cmsg_alloc(app, sizeof(struct nfp_police_config), in nfp_flower_offload_one_police()
115 nfp_ctrl_tx(app->ctrl, skb); in nfp_flower_offload_one_police()
165 nfp_flower_install_rate_limiter(struct nfp_app *app, struct net_device *netdev, in nfp_flower_install_rate_limiter() argument
171 struct nfp_flower_priv *fl_priv = app->priv; in nfp_flower_install_rate_limiter()
274 nfp_flower_offload_one_police(repr->app, true, in nfp_flower_install_rate_limiter()
289 nfp_flower_remove_rate_limiter(struct nfp_app *app, struct net_device *netdev, in nfp_flower_remove_rate_limiter() argument
293 struct nfp_flower_priv *fl_priv = app->priv; in nfp_flower_remove_rate_limiter()
329 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(struct nfp_police_config), in nfp_flower_remove_rate_limiter()
339 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_remove_rate_limiter()
[all …]
Dmetadata.c40 static int nfp_release_stats_entry(struct nfp_app *app, u32 stats_context_id) in nfp_release_stats_entry() argument
42 struct nfp_flower_priv *priv = app->priv; in nfp_release_stats_entry()
58 static int nfp_get_stats_entry(struct nfp_app *app, u32 *stats_context_id) in nfp_get_stats_entry() argument
60 struct nfp_flower_priv *priv = app->priv; in nfp_get_stats_entry()
102 nfp_flower_search_fl_table(struct nfp_app *app, unsigned long tc_flower_cookie, in nfp_flower_search_fl_table() argument
106 struct nfp_flower_priv *priv = app->priv; in nfp_flower_search_fl_table()
115 void nfp_flower_rx_flow_stats(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_rx_flow_stats() argument
118 struct nfp_flower_priv *priv = app->priv; in nfp_flower_rx_flow_stats()
137 static int nfp_release_mask_id(struct nfp_app *app, u8 mask_id) in nfp_release_mask_id() argument
139 struct nfp_flower_priv *priv = app->priv; in nfp_release_mask_id()
[all …]
Doffload.c95 nfp_flower_xmit_flow(struct nfp_app *app, struct nfp_fl_payload *nfp_flow, in nfp_flower_xmit_flow() argument
116 skb = nfp_flower_cmsg_alloc(app, tot_len, mtype, GFP_KERNEL); in nfp_flower_xmit_flow()
134 nfp_ctrl_tx(app->ctrl, skb); in nfp_flower_xmit_flow()
238 nfp_flower_calculate_key_layers(struct nfp_app *app, in nfp_flower_calculate_key_layers() argument
247 struct nfp_flower_priv *priv = app->priv; in nfp_flower_calculate_key_layers()
1001 int nfp_flower_merge_offloaded_flows(struct nfp_app *app, in nfp_flower_merge_offloaded_flows() argument
1005 struct nfp_flower_priv *priv = app->priv; in nfp_flower_merge_offloaded_flows()
1022 nfp_flower_cmsg_warn(app, "The two flows are already merged.\n"); in nfp_flower_merge_offloaded_flows()
1056 err = nfp_compile_flow_metadata(app, merge_flow->tc_flower_cookie, merge_flow, in nfp_flower_merge_offloaded_flows()
1077 err = nfp_flower_xmit_flow(app, merge_flow, in nfp_flower_merge_offloaded_flows()
[all …]
Dlag_conf.c117 nfp_flower_cmsg_warn(priv->app, in nfp_fl_lag_group_create()
157 int nfp_flower_lag_populate_pre_action(struct nfp_app *app, in nfp_flower_lag_populate_pre_action() argument
162 struct nfp_flower_priv *priv = app->priv; in nfp_flower_lag_populate_pre_action()
185 int nfp_flower_lag_get_output_id(struct nfp_app *app, struct net_device *master) in nfp_flower_lag_get_output_id() argument
187 struct nfp_flower_priv *priv = app->priv; in nfp_flower_lag_get_output_id()
214 skb = nfp_flower_cmsg_alloc(priv->app, size, in nfp_fl_lag_config_group()
260 nfp_ctrl_tx(priv->app->ctrl, skb); in nfp_fl_lag_config_group()
293 nfp_flower_cmsg_warn(priv->app, in nfp_fl_lag_do_work()
327 if (repr->app != priv->app) { in nfp_fl_lag_do_work()
362 nfp_flower_cmsg_warn(priv->app, in nfp_fl_lag_do_work()
[all …]
/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c30 nfp_abm_setup_tc(struct nfp_app *app, struct net_device *netdev, in nfp_abm_setup_tc() argument
57 nfp_abm_repr_get(struct nfp_app *app, u32 port_id, bool *redir_egress) in nfp_abm_repr_get() argument
66 reprs = rcu_dereference(app->reprs[rtype]); in nfp_abm_repr_get()
77 nfp_abm_spawn_repr(struct nfp_app *app, struct nfp_abm_link *alink, in nfp_abm_spawn_repr() argument
96 netdev = nfp_repr_alloc_mqs(app, txqs, 1); in nfp_abm_spawn_repr()
102 port = nfp_port_alloc(app, ptype, netdev); in nfp_abm_spawn_repr()
110 err = nfp_port_init_phy_port(app->pf, app, port, alink->id); in nfp_abm_spawn_repr()
115 port->pf_split = app->pf->max_data_vnics > 1; in nfp_abm_spawn_repr()
123 err = nfp_repr_init(app, netdev, nfp_abm_portid(rtype, alink->id), in nfp_abm_spawn_repr()
128 reprs = nfp_reprs_get_locked(app, rtype); in nfp_abm_spawn_repr()
[all …]
/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c27 struct nfp_app_bpf *bpf = nn->app->priv; in nfp_net_ebpf_capable()
38 nfp_bpf_xdp_offload(struct nfp_app *app, struct nfp_net *nn, in nfp_bpf_xdp_offload() argument
57 static const char *nfp_bpf_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_extra_cap() argument
63 nfp_bpf_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, unsigned int id) in nfp_bpf_vnic_alloc() argument
65 struct nfp_pf *pf = app->pf; in nfp_bpf_vnic_alloc()
84 err = nfp_app_nic_vnic_alloc(app, nn, id); in nfp_bpf_vnic_alloc()
97 static void nfp_bpf_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_vnic_free() argument
165 static int nfp_bpf_setup_tc(struct nfp_app *app, struct net_device *netdev, in nfp_bpf_setup_tc() argument
182 nfp_bpf_check_mtu(struct nfp_app *app, struct net_device *netdev, int new_mtu) in nfp_bpf_check_mtu() argument
210 struct nfp_cpp *cpp = bpf->app->pf->cpp; in nfp_bpf_parse_cap_adjust_head()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c658 struct dcb_app app = { in ice_dcbnl_getapp() local
667 return dcb_getapp(netdev, &app); in ice_dcbnl_getapp()
677 struct ice_dcb_app_priority_table *app) in ice_dcbnl_find_app() argument
682 if (app->selector == cfg->app[i].selector && in ice_dcbnl_find_app()
683 app->prot_id == cfg->app[i].prot_id && in ice_dcbnl_find_app()
684 app->priority == cfg->app[i].priority) in ice_dcbnl_find_app()
698 static int ice_dcbnl_setapp(struct net_device *netdev, struct dcb_app *app) in ice_dcbnl_setapp() argument
707 if (app->selector != IEEE_8021QAZ_APP_SEL_DSCP) in ice_dcbnl_setapp()
722 if (app->protocol >= ICE_DSCP_NUM_VAL) { in ice_dcbnl_setapp()
724 app->protocol); in ice_dcbnl_setapp()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c11 struct i40e_dcb_app_priority_table *app);
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()
223 pf->tmp_cfg.app[pf->tmp_cfg.numapps++] = new_app; in i40e_dcbnl_ieee_setapp()
246 struct dcb_app *app) in i40e_dcbnl_ieee_delapp() argument
256 ret = dcb_ieee_delapp(netdev, app); in i40e_dcbnl_ieee_delapp()
270 if (app->selector == pf->tmp_cfg.app[i].selector && in i40e_dcbnl_ieee_delapp()
[all …]
/drivers/hid/
Dhid-multitouch.c175 struct mt_application *app);
176 static void mt_post_parse(struct mt_device *td, struct mt_application *app);
712 mt_store_field(hdev, app, \
718 unsigned long **bit, int *max, struct mt_application *app) in mt_touch_input_mapping() argument
730 app->mt_flags |= INPUT_MT_POINTER; in mt_touch_input_mapping()
736 app->buttons_count++; in mt_touch_input_mapping()
788 if (app->quirks & MT_QUIRK_HOVERING) { in mt_touch_input_mapping()
801 app->quirks |= MT_QUIRK_CONFIDENCE; in mt_touch_input_mapping()
803 if (app->quirks & MT_QUIRK_CONFIDENCE) in mt_touch_input_mapping()
819 app->touches_by_report++; in mt_touch_input_mapping()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c370 static int hclge_ieee_setapp(struct hnae3_handle *h, struct dcb_app *app) in hclge_ieee_setapp() argument
378 if (app->selector != IEEE_8021QAZ_APP_SEL_DSCP || in hclge_ieee_setapp()
379 app->protocol >= HNAE3_MAX_DSCP || in hclge_ieee_setapp()
380 app->priority >= HNAE3_MAX_USER_PRIO) in hclge_ieee_setapp()
384 app->protocol, app->priority); in hclge_ieee_setapp()
386 if (app->priority == h->kinfo.dscp_prio[app->protocol]) in hclge_ieee_setapp()
389 ret = dcb_ieee_setapp(netdev, app); in hclge_ieee_setapp()
394 old_app.protocol = app->protocol; in hclge_ieee_setapp()
395 old_app.priority = h->kinfo.dscp_prio[app->protocol]; in hclge_ieee_setapp()
397 h->kinfo.dscp_prio[app->protocol] = app->priority; in hclge_ieee_setapp()
[all …]
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c313 static int bnxt_hwrm_set_dcbx_app(struct bnxt *bp, struct dcb_app *app, in bnxt_hwrm_set_dcbx_app() argument
359 if (fw_app->protocol_id == cpu_to_be16(app->protocol) && in bnxt_hwrm_set_dcbx_app()
360 fw_app->protocol_selector == app->selector && in bnxt_hwrm_set_dcbx_app()
361 fw_app->priority == app->priority) { in bnxt_hwrm_set_dcbx_app()
371 fw_app->protocol_id = cpu_to_be16(app->protocol); in bnxt_hwrm_set_dcbx_app()
372 fw_app->protocol_selector = app->selector; in bnxt_hwrm_set_dcbx_app()
373 fw_app->priority = app->priority; in bnxt_hwrm_set_dcbx_app()
431 static int bnxt_hwrm_queue_dscp2pri_cfg(struct bnxt *bp, struct dcb_app *app, in bnxt_hwrm_queue_dscp2pri_cfg() argument
453 dscp2pri->dscp = app->protocol; in bnxt_hwrm_queue_dscp2pri_cfg()
458 dscp2pri->pri = app->priority; in bnxt_hwrm_queue_dscp2pri_cfg()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c64 struct dcb_app app; in cxgb4_dcb_cleanup_apps() local
68 app.priority = 0; in cxgb4_dcb_cleanup_apps()
75 app.protocol = dcb->app_priority[i].protocolid; in cxgb4_dcb_cleanup_apps()
78 app.priority = dcb->app_priority[i].user_prio_map; in cxgb4_dcb_cleanup_apps()
79 app.selector = dcb->app_priority[i].sel_field + 1; in cxgb4_dcb_cleanup_apps()
80 err = dcb_ieee_delapp(dev, &app); in cxgb4_dcb_cleanup_apps()
82 app.selector = !!(dcb->app_priority[i].sel_field); in cxgb4_dcb_cleanup_apps()
83 err = dcb_setapp(dev, &app); in cxgb4_dcb_cleanup_apps()
89 dcb_ver_array[dcb->dcb_version], app.selector, in cxgb4_dcb_cleanup_apps()
90 app.protocol, -err); in cxgb4_dcb_cleanup_apps()
[all …]

12345