Home
last modified time | relevance | path

Searched refs:app_priv (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmain.c345 kfree(repr->app_priv); in nfp_flower_repr_netdev_clean()
417 nfp_repr->app_priv = repr_priv; in nfp_flower_spawn_vnic_reprs()
535 nfp_repr->app_priv = repr_priv; in nfp_flower_spawn_phy_reprs()
704 struct nfp_flower_priv *app_priv = app->priv; in nfp_flower_sync_feature_bits() local
709 app_priv->flower_ext_feats | in nfp_flower_sync_feature_bits()
720 app_priv->flower_en_feats |= NFP_FL_ENABLE_LAG; in nfp_flower_sync_feature_bits()
721 nfp_flower_lag_init(&app_priv->nfp_lag); in nfp_flower_sync_feature_bits()
728 if (app_priv->flower_ext_feats & NFP_FL_FEATS_FLOW_MOD) { in nfp_flower_sync_feature_bits()
733 app_priv->flower_en_feats |= NFP_FL_ENABLE_FLOW_MERGE; in nfp_flower_sync_feature_bits()
734 nfp_flower_internal_port_init(app_priv); in nfp_flower_sync_feature_bits()
[all …]
H A Dcmsg.c125 struct nfp_flower_priv *app_priv = app->priv; in nfp_flower_process_mtu_ack() local
133 spin_lock_bh(&app_priv->mtu_conf.lock); in nfp_flower_process_mtu_ack()
134 if (!app_priv->mtu_conf.requested_val || in nfp_flower_process_mtu_ack()
135 app_priv->mtu_conf.portnum != be32_to_cpu(msg->portnum) || in nfp_flower_process_mtu_ack()
136 be16_to_cpu(msg->mtu) != app_priv->mtu_conf.requested_val) { in nfp_flower_process_mtu_ack()
138 spin_unlock_bh(&app_priv->mtu_conf.lock); in nfp_flower_process_mtu_ack()
142 app_priv->mtu_conf.ack = true; in nfp_flower_process_mtu_ack()
143 app_priv->mtu_conf.requested_val = 0; in nfp_flower_process_mtu_ack()
144 wake_up(&app_priv->mtu_conf.wait_q); in nfp_flower_process_mtu_ack()
145 spin_unlock_bh(&app_priv->mtu_conf.lock); in nfp_flower_process_mtu_ack()
[all …]
H A Dtunnel_conf.c716 struct nfp_flower_priv *app_priv; in nfp_tun_neigh_event_handler() local
739 app_priv = container_of(nb, struct nfp_flower_priv, tun.neigh_nb); in nfp_tun_neigh_event_handler()
740 app = app_priv->app; in nfp_tun_neigh_event_handler()
1063 repr_priv = repr->app_priv; in nfp_tunnel_offloaded_macs_inc_ref_and_link()
1182 repr_priv = repr->app_priv; in nfp_tunnel_del_shared_mac()
1266 repr_priv = repr->app_priv; in nfp_tunnel_offload_mac()
1405 repr_priv = repr->app_priv; in nfp_tunnel_mac_event_handler()
1431 struct nfp_flower_priv *app_priv = app->priv; in nfp_flower_xmit_pre_tun_flow() local
1438 if (app_priv->pre_tun_rule_cnt == NFP_TUN_PRE_TUN_RULE_LIMIT) in nfp_flower_xmit_pre_tun_flow()
1477 app_priv->pre_tun_rule_cnt++; in nfp_flower_xmit_pre_tun_flow()
[all …]
H A Dqos_conf.c189 repr_priv = repr->app_priv; in nfp_flower_install_rate_limiter()
308 repr_priv = repr->app_priv; in nfp_flower_remove_rate_limiter()
367 repr_priv = repr->app_priv; in nfp_flower_stats_rlim_reply()
435 repr_priv = priv->app_priv; in nfp_flower_stats_rlim_request_all()
482 repr_priv = repr->app_priv; in nfp_flower_stats_rate_limiter()
H A Dmain.h520 struct nfp_flower_priv *app_priv = app->priv; in nfp_flower_internal_port_can_offload() local
522 if (!(app_priv->flower_en_feats & NFP_FL_ENABLE_FLOW_MERGE)) in nfp_flower_internal_port_can_offload()
H A Dlag_conf.c371 repr_priv = repr->app_priv; in nfp_fl_lag_do_work()
645 repr_priv = repr->app_priv; in nfp_fl_lag_changels_event()
H A Doffload.c1791 repr_priv = repr->app_priv; in nfp_flower_setup_tc_block()
/linux/drivers/net/ethernet/netronome/nfp/nic/
H A Dmain.c46 struct nfp_app_nic_private *app_pri = nn->app_priv; in nfp_nic_vnic_alloc()
54 nn->app_priv = kzalloc(sizeof(*app_pri), GFP_KERNEL); in nfp_nic_vnic_alloc()
55 if (!nn->app_priv) in nfp_nic_vnic_alloc()
64 kfree(nn->app_priv); in nfp_nic_vnic_free()
H A Ddcb.c52 struct nfp_dcb *dcb = &((struct nfp_app_nic_private *)nn->app_priv)->dcb; in get_dcb_priv()
/linux/drivers/net/ethernet/netronome/nfp/abm/
H A Dmain.c42 return nfp_abm_setup_root(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
44 return nfp_abm_setup_tc_mq(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
46 return nfp_abm_setup_tc_red(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
48 return nfp_abm_setup_tc_gred(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc()
100 repr->app_priv = alink; in nfp_abm_spawn_repr()
179 nfp_abm_kill_reprs(abm, (struct nfp_abm_link *)nn->app_priv); in nfp_abm_kill_reprs_all()
219 struct nfp_abm_link *alink = nn->app_priv; in nfp_abm_eswitch_set_switchdev()
323 nn->app_priv = alink; in nfp_abm_vnic_alloc()
364 struct nfp_abm_link *alink = nn->app_priv; in nfp_abm_vnic_free()
374 struct nfp_abm_link *alink = nn->app_priv; in nfp_abm_vnic_init()
[all …]
H A Dcls.c234 alink = repr->app_priv; in nfp_abm_setup_tc_block_cb()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c82 nn->app_priv = bv; in nfp_bpf_vnic_alloc()
93 kfree(nn->app_priv); in nfp_bpf_vnic_alloc()
99 struct nfp_bpf_vnic *bv = nn->app_priv; in nfp_bpf_vnic_free()
143 bv = nn->app_priv; in nfp_bpf_setup_tc_block_cb()
194 bv = nn->app_priv; in nfp_bpf_check_mtu()
H A Doffload.c522 img = nfp_bpf_relo_for_vnic(nfp_prog, nn->app_priv); in nfp_net_bpf_load()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_repr.h57 void *app_priv; member
H A Dnfp_net.h739 void *app_priv; member