Home
last modified time | relevance | path

Searched refs:nfp_app (Results 1 – 25 of 35) sorted by relevance

12

/linux-5.19.10/drivers/net/ethernet/netronome/nfp/
Dnfp_app.h21 struct nfp_app;
90 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);
[all …]
Dnfp_net_repr.h8 struct nfp_app;
55 struct nfp_app *app;
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()
Dnfp_app.c38 struct nfp_app *nfp_app_from_netdev(struct net_device *netdev) in nfp_app_from_netdev()
57 const char *nfp_app_mip_name(struct nfp_app *app) in nfp_app_mip_name()
66 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_ndo_init()
75 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_ndo_uninit()
103 nfp_app_ctrl_msg_alloc(struct nfp_app *app, unsigned int size, gfp_t priority) in nfp_app_ctrl_msg_alloc()
121 nfp_reprs_get_locked(struct nfp_app *app, enum nfp_repr_type type) in nfp_reprs_get_locked()
128 nfp_app_reprs_set(struct nfp_app *app, enum nfp_repr_type type, in nfp_app_reprs_set()
142 nfp_app_netdev_feat_change(struct nfp_app *app, struct net_device *netdev) in nfp_app_netdev_feat_change()
177 struct nfp_app *app; in nfp_app_netdev_event()
180 app = container_of(nb, struct nfp_app, netdev_nb); in nfp_app_netdev_event()
[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()
42 nfp_net_sriov_update(struct nfp_app *app, int vf, u16 update, const char *msg) in nfp_net_sriov_update()
66 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_set_vf_mac()
99 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_set_vf_vlan()
150 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_set_vf_rate()
180 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_set_vf_spoofchk()
204 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_set_vf_trust()
229 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_set_vf_link_state()
263 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_get_vf_config()
Dnfp_port.h11 struct nfp_app;
68 struct nfp_app *app;
117 nfp_port_alloc(struct nfp_app *app, enum nfp_port_type type,
121 int nfp_port_init_phy_port(struct nfp_pf *pf, struct nfp_app *app,
128 int nfp_devlink_port_register(struct nfp_app *app, struct nfp_port *port);
Dccm.c65 nfp_ccm_reply(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag) 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()
91 nfp_ccm_wait_reply(struct nfp_ccm *ccm, struct nfp_app *app, in nfp_ccm_wait_reply()
131 struct nfp_app *app = ccm->app; in nfp_ccm_communicate()
177 struct nfp_app *app = ccm->app; in nfp_ccm_rx()
206 int nfp_ccm_init(struct nfp_ccm *ccm, struct nfp_app *app) in nfp_ccm_init()
Dccm.h11 struct nfp_app;
97 struct nfp_app *app;
107 int nfp_ccm_init(struct nfp_ccm *ccm, struct nfp_app *app);
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()
32 int nfp_app_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_app_nic_vnic_alloc()
Dnfp_net_repr.c20 nfp_repr_get_locked(struct nfp_app *app, struct nfp_reprs *set, unsigned int id) in nfp_repr_get_locked()
316 int nfp_repr_init(struct nfp_app *app, struct net_device *netdev, in nfp_repr_init()
422 nfp_repr_alloc_mqs(struct nfp_app *app, unsigned int txqs, unsigned int rxqs) in nfp_repr_alloc_mqs()
456 void nfp_reprs_clean_and_free(struct nfp_app *app, struct nfp_reprs *reprs) in nfp_reprs_clean_and_free()
471 nfp_reprs_clean_and_free_by_type(struct nfp_app *app, enum nfp_repr_type type) in nfp_reprs_clean_and_free_by_type()
509 int nfp_reprs_resync_phys_ports(struct nfp_app *app) in nfp_reprs_resync_phys_ports()
Dnfp_port.c172 int nfp_port_init_phy_port(struct nfp_pf *pf, struct nfp_app *app, in nfp_port_init_phy_port()
200 nfp_port_alloc(struct nfp_app *app, enum nfp_port_type type, in nfp_port_alloc()
Dnfp_net_ethtool.c183 static void nfp_net_get_nspinfo(struct nfp_app *app, char *version) in nfp_net_get_nspinfo()
202 nfp_get_drvinfo(struct nfp_app *app, struct pci_dev *pdev, in nfp_get_drvinfo()
233 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_get_drvinfo()
1115 nfp_dump_nsp_diag(struct nfp_app *app, struct ethtool_dump *dump, void *buffer) in nfp_dump_nsp_diag()
1160 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_set_dump()
1188 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_get_dump_flag()
1206 struct nfp_app *app = nfp_app_from_netdev(netdev); in nfp_app_get_dump_data()
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/flower/
Dmain.h24 struct nfp_app;
286 struct nfp_app *app;
499 nfp_flower_internal_port_can_offload(struct nfp_app *app, in nfp_flower_internal_port_can_offload()
528 int nfp_flower_metadata_init(struct nfp_app *app, u64 host_ctx_count,
530 void nfp_flower_metadata_cleanup(struct nfp_app *app);
532 int nfp_flower_setup_tc(struct nfp_app *app, struct net_device *netdev,
534 int nfp_flower_merge_offloaded_flows(struct nfp_app *app,
591 int nfp_flower_compile_flow_match(struct nfp_app *app,
598 int nfp_flower_compile_action(struct nfp_app *app,
603 int nfp_compile_flow_metadata(struct nfp_app *app, u32 cookie,
[all …]
Dmain.c28 static const char *nfp_flower_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_flower_extra_cap()
33 static enum devlink_eswitch_mode eswitch_mode_get(struct nfp_app *app) in eswitch_mode_get()
57 nfp_flower_get_internal_port_id(struct nfp_app *app, struct net_device *netdev) 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()
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()
108 nfp_flower_free_internal_port_id(struct nfp_app *app, struct net_device *netdev) in nfp_flower_free_internal_port_id()
123 nfp_flower_internal_port_event_handler(struct nfp_app *app, in nfp_flower_internal_port_event_handler()
146 nfp_flower_non_repr_priv_lookup(struct nfp_app *app, struct net_device *netdev) in nfp_flower_non_repr_priv_lookup()
167 nfp_flower_non_repr_priv_get(struct nfp_app *app, struct net_device *netdev) in nfp_flower_non_repr_priv_get()
199 nfp_flower_non_repr_priv_put(struct nfp_app *app, struct net_device *netdev) in nfp_flower_non_repr_priv_put()
[all …]
Dtunnel_conf.c196 void nfp_tunnel_keep_alive(struct nfp_app *app, struct sk_buff *skb) 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()
281 nfp_flower_xmit_tun_conf(struct nfp_app *app, u8 mtype, u16 plen, void *pdata, in nfp_flower_xmit_tun_conf()
343 nfp_tun_link_predt_entries(struct nfp_app *app, in nfp_tun_link_predt_entries()
354 void nfp_tun_link_and_update_nn_entries(struct nfp_app *app, in nfp_tun_link_and_update_nn_entries()
382 static void nfp_tun_cleanup_nn_entries(struct nfp_app *app) in nfp_tun_cleanup_nn_entries()
421 void nfp_tun_unlink_and_update_nn_entries(struct nfp_app *app, in nfp_tun_unlink_and_update_nn_entries()
449 nfp_tun_write_neigh(struct net_device *netdev, struct nfp_app *app, in nfp_tun_write_neigh()
575 struct nfp_app *app; in nfp_tun_neigh_event_handler()
653 void nfp_tunnel_request_route_v4(struct nfp_app *app, struct sk_buff *skb) in nfp_tunnel_request_route_v4()
[all …]
Dmetadata.c40 static int nfp_release_stats_entry(struct nfp_app *app, u32 stats_context_id) 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()
102 nfp_flower_search_fl_table(struct nfp_app *app, unsigned long tc_flower_cookie, 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()
137 static int nfp_release_mask_id(struct nfp_app *app, u8 mask_id) in nfp_release_mask_id()
161 static int nfp_mask_alloc(struct nfp_app *app, u8 *mask_id) in nfp_mask_alloc()
207 nfp_add_mask_table(struct nfp_app *app, char *mask_data, u32 mask_len) in nfp_add_mask_table()
234 nfp_search_mask_table(struct nfp_app *app, char *mask_data, u32 mask_len) in nfp_search_mask_table()
250 nfp_find_in_mask_table(struct nfp_app *app, char *mask_data, u32 mask_len) in nfp_find_in_mask_table()
265 nfp_check_mask_add(struct nfp_app *app, char *mask_data, u32 mask_len, in nfp_check_mask_add()
[all …]
Dcmsg.c22 nfp_flower_cmsg_alloc(struct nfp_app *app, unsigned int size, 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()
123 nfp_flower_process_mtu_ack(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_process_mtu_ack()
151 nfp_flower_cmsg_portmod_rx(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_cmsg_portmod_rx()
186 nfp_flower_cmsg_portreify_rx(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_cmsg_portreify_rx()
208 nfp_flower_cmsg_merge_hint_rx(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_cmsg_merge_hint_rx()
252 nfp_flower_cmsg_process_one_rx(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_cmsg_process_one_rx()
329 nfp_flower_queue_ctl_msg(struct nfp_app *app, struct sk_buff *skb, int type) in nfp_flower_queue_ctl_msg()
349 void nfp_flower_cmsg_rx(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_cmsg_rx()
Dqos_conf.c86 int nfp_flower_offload_one_police(struct nfp_app *app, bool ingress, in nfp_flower_offload_one_police()
156 nfp_flower_install_rate_limiter(struct nfp_app *app, struct net_device *netdev, in nfp_flower_install_rate_limiter()
280 nfp_flower_remove_rate_limiter(struct nfp_app *app, struct net_device *netdev, in nfp_flower_remove_rate_limiter()
336 void nfp_flower_stats_rlim_reply(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_stats_rlim_reply()
456 nfp_flower_stats_rate_limiter(struct nfp_app *app, struct net_device *netdev, in nfp_flower_stats_rate_limiter()
494 void nfp_flower_qos_init(struct nfp_app *app) in nfp_flower_qos_init()
505 void nfp_flower_qos_cleanup(struct nfp_app *app) in nfp_flower_qos_cleanup()
512 int nfp_flower_setup_qos_offload(struct nfp_app *app, struct net_device *netdev, in nfp_flower_setup_qos_offload()
547 nfp_flower_search_meter_entry(struct nfp_app *app, u32 meter_id) in nfp_flower_search_meter_entry()
556 nfp_flower_add_meter_entry(struct nfp_app *app, u32 meter_id) in nfp_flower_add_meter_entry()
[all …]
Doffload.c95 nfp_flower_xmit_flow(struct nfp_app *app, struct nfp_fl_payload *nfp_flow, in nfp_flower_xmit_flow()
238 nfp_flower_calculate_key_layers(struct nfp_app *app, in nfp_flower_calculate_key_layers()
1001 int nfp_flower_merge_offloaded_flows(struct nfp_app *app, in nfp_flower_merge_offloaded_flows()
1125 nfp_flower_validate_pre_tun_rule(struct nfp_app *app, in nfp_flower_validate_pre_tun_rule()
1325 nfp_flower_add_offload(struct nfp_app *app, struct net_device *netdev, in nfp_flower_add_offload()
1448 nfp_flower_remove_merge_flow(struct nfp_app *app, in nfp_flower_remove_merge_flow()
1520 nfp_flower_del_linked_merge_flows(struct nfp_app *app, in nfp_flower_del_linked_merge_flows()
1544 nfp_flower_del_offload(struct nfp_app *app, struct net_device *netdev, in nfp_flower_del_offload()
1623 __nfp_flower_update_merge_stats(struct nfp_app *app, in __nfp_flower_update_merge_stats()
1659 nfp_flower_update_merge_stats(struct nfp_app *app, in nfp_flower_update_merge_stats()
[all …]
Daction.c133 nfp_fl_pre_lag(struct nfp_app *app, const struct flow_action_entry *act, in nfp_fl_pre_lag()
172 nfp_fl_output(struct nfp_app *app, struct nfp_fl_output *output, in nfp_fl_output()
283 nfp_fl_get_tun_from_act(struct nfp_app *app, in nfp_fl_get_tun_from_act()
400 nfp_fl_set_tun(struct nfp_app *app, struct nfp_fl_set_tun *set_tun, in nfp_fl_set_tun()
942 nfp_flower_meter_action(struct nfp_app *app, in nfp_flower_meter_action()
972 nfp_flower_output_action(struct nfp_app *app, in nfp_flower_output_action()
1025 nfp_flower_loop_action(struct nfp_app *app, const struct flow_action_entry *act, in nfp_flower_loop_action()
1256 int nfp_flower_compile_action(struct nfp_app *app, in nfp_flower_compile_action()
Dcmsg.h740 nfp_flower_cmsg_mac_repr_start(struct nfp_app *app, unsigned int num_ports);
749 void nfp_flower_cmsg_rx(struct nfp_app *app, struct sk_buff *skb);
751 nfp_flower_cmsg_alloc(struct nfp_app *app, unsigned int size,
/linux-5.19.10/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()
57 nfp_abm_repr_get(struct nfp_app *app, u32 port_id, bool *redir_egress) in nfp_abm_repr_get()
77 nfp_abm_spawn_repr(struct nfp_app *app, struct nfp_abm_link *alink, in nfp_abm_spawn_repr()
148 nfp_abm_kill_repr(struct nfp_app *app, struct nfp_abm_link *alink, in nfp_abm_kill_repr()
182 static enum devlink_eswitch_mode nfp_abm_eswitch_mode_get(struct nfp_app *app) in nfp_abm_eswitch_mode_get()
206 struct nfp_app *app = abm->app; in nfp_abm_eswitch_set_switchdev()
239 static int nfp_abm_eswitch_mode_set(struct nfp_app *app, u16 mode) in nfp_abm_eswitch_mode_set()
313 nfp_abm_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, unsigned int id) in nfp_abm_vnic_alloc()
362 static void nfp_abm_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_abm_vnic_free()
372 static int nfp_abm_vnic_init(struct nfp_app *app, struct nfp_net *nn) in nfp_abm_vnic_init()
[all …]
Dmain.h21 struct nfp_app;
64 struct nfp_app *app;
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nic/
Dmain.c9 static int nfp_nic_init(struct nfp_app *app) in nfp_nic_init()
22 static int nfp_nic_sriov_enable(struct nfp_app *app, int num_vfs) in nfp_nic_sriov_enable()
27 static void nfp_nic_sriov_disable(struct nfp_app *app) in nfp_nic_sriov_disable()
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c38 nfp_bpf_xdp_offload(struct nfp_app *app, struct nfp_net *nn, in nfp_bpf_xdp_offload()
57 static const char *nfp_bpf_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_extra_cap()
63 nfp_bpf_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, unsigned int 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()
165 static int nfp_bpf_setup_tc(struct nfp_app *app, struct net_device *netdev, in nfp_bpf_setup_tc()
182 nfp_bpf_check_mtu(struct nfp_app *app, struct net_device *netdev, int new_mtu) in nfp_bpf_check_mtu()
336 static int nfp_bpf_parse_capabilities(struct nfp_app *app) in nfp_bpf_parse_capabilities()
423 static int nfp_bpf_ndo_init(struct nfp_app *app, struct net_device *netdev) in nfp_bpf_ndo_init()
430 static void nfp_bpf_ndo_uninit(struct nfp_app *app, struct net_device *netdev) in nfp_bpf_ndo_uninit()
437 static int nfp_bpf_start(struct nfp_app *app) in nfp_bpf_start()
[all …]
Dmain.h131 struct nfp_app *app;
577 struct nfp_app;
580 int nfp_ndo_bpf(struct nfp_app *app, struct nfp_net *nn,
611 void nfp_bpf_ctrl_msg_rx(struct nfp_app *app, struct sk_buff *skb);
613 nfp_bpf_ctrl_msg_rx_raw(struct nfp_app *app, const void *data,

12