Home
last modified time | relevance | path

Searched refs:nfp_net (Results 1 – 25 of 41) sorted by relevance

12

/drivers/net/ethernet/netronome/nfp/
Dnfp_net.h30 struct nfp_net *__nn = (nn); \
106 struct nfp_net;
388 struct nfp_net *nfp_net; member
626 struct nfp_net { struct
736 int (*cfg)(struct nfp_net *nn, struct nfp_mbox_amsg_entry *entry); argument
741 int nfp_net_sched_mbox_amsg_work(struct nfp_net *nn, u32 cmd, const void *data, size_t len,
742 int (*cb)(struct nfp_net *, struct nfp_mbox_amsg_entry *));
747 static inline u16 nn_readb(struct nfp_net *nn, int off) in nn_readb()
752 static inline void nn_writeb(struct nfp_net *nn, int off, u8 val) in nn_writeb()
757 static inline u16 nn_readw(struct nfp_net *nn, int off) in nn_readw()
[all …]
Dccm.h12 struct nfp_net;
114 int nfp_ccm_mbox_alloc(struct nfp_net *nn);
115 void nfp_ccm_mbox_free(struct nfp_net *nn);
116 int nfp_ccm_mbox_init(struct nfp_net *nn);
117 void nfp_ccm_mbox_clean(struct nfp_net *nn);
118 bool nfp_ccm_mbox_fits(struct nfp_net *nn, unsigned int size);
120 nfp_ccm_mbox_msg_alloc(struct nfp_net *nn, unsigned int req_size,
122 int __nfp_ccm_mbox_communicate(struct nfp_net *nn, struct sk_buff *skb,
126 int nfp_ccm_mbox_communicate(struct nfp_net *nn, struct sk_buff *skb,
130 int nfp_ccm_mbox_post(struct nfp_net *nn, struct sk_buff *skb,
Dnfp_app.h25 struct nfp_net;
93 const char *(*extra_cap)(struct nfp_app *app, struct nfp_net *nn);
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);
134 int (*bpf)(struct nfp_app *app, struct nfp_net *nn,
136 int (*xdp_offload)(struct nfp_app *app, struct nfp_net *nn,
166 struct nfp_net *ctrl;
188 bool __nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb);
[all …]
Dnfp_net_common.c84 static void nfp_net_reconfig_start(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start()
94 static void nfp_net_reconfig_start_async(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start_async()
105 static bool nfp_net_reconfig_check_done(struct nfp_net *nn, bool last_check) in nfp_net_reconfig_check_done()
127 static bool __nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in __nfp_net_reconfig_wait()
149 static int nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in nfp_net_reconfig_wait()
162 struct nfp_net *nn = from_timer(nn, t, reconfig_timer); in nfp_net_reconfig_timer()
190 static void nfp_net_reconfig_post(struct nfp_net *nn, u32 update) in nfp_net_reconfig_post()
210 static void nfp_net_reconfig_sync_enter(struct nfp_net *nn) in nfp_net_reconfig_sync_enter()
241 static void nfp_net_reconfig_wait_posted(struct nfp_net *nn) in nfp_net_reconfig_wait_posted()
261 int __nfp_net_reconfig(struct nfp_net *nn, u32 update) in __nfp_net_reconfig()
[all …]
Dccm_mbox.c54 static u32 nfp_ccm_mbox_max_msg(struct nfp_net *nn) in nfp_ccm_mbox_max_msg()
116 static bool nfp_ccm_mbox_is_first(struct nfp_net *nn, struct sk_buff *skb) in nfp_ccm_mbox_is_first()
121 static bool nfp_ccm_mbox_should_run(struct nfp_net *nn, struct sk_buff *skb) in nfp_ccm_mbox_should_run()
128 static void nfp_ccm_mbox_mark_next_runner(struct nfp_net *nn) in nfp_ccm_mbox_mark_next_runner()
144 nfp_ccm_mbox_write_tlv(struct nfp_net *nn, u32 off, u32 type, u32 len) in nfp_ccm_mbox_write_tlv()
151 static void nfp_ccm_mbox_copy_in(struct nfp_net *nn, struct sk_buff *last) in nfp_ccm_mbox_copy_in()
199 nfp_ccm_mbox_find_req(struct nfp_net *nn, __be16 tag, struct sk_buff *last) in nfp_ccm_mbox_find_req()
214 static void nfp_ccm_mbox_copy_out(struct nfp_net *nn, struct sk_buff *last) in nfp_ccm_mbox_copy_out()
355 nfp_ccm_mbox_mark_all_err(struct nfp_net *nn, struct sk_buff *last, int err) in nfp_ccm_mbox_mark_all_err()
374 static void nfp_ccm_mbox_run_queue_unlock(struct nfp_net *nn) in nfp_ccm_mbox_run_queue_unlock()
[all …]
Dnfp_net_dp.c57 struct nfp_net *nn = r_vec->nfp_net; in nfp_net_tx_ring_init()
79 struct nfp_net *nn = r_vec->nfp_net; in nfp_net_rx_ring_init()
183 int nfp_net_tx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp) in nfp_net_tx_rings_prepare()
254 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_net_rx_ring_free()
339 int nfp_net_rx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp) in nfp_net_rx_rings_prepare()
383 nfp_net_rx_ring_hw_cfg_write(struct nfp_net *nn, in nfp_net_rx_ring_hw_cfg_write()
393 nfp_net_tx_ring_hw_cfg_write(struct nfp_net *nn, in nfp_net_tx_ring_hw_cfg_write()
406 void nfp_net_vec_clear_ring_data(struct nfp_net *nn, unsigned int idx) in nfp_net_vec_clear_ring_data()
420 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_tx()
425 bool __nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb) in __nfp_ctrl_tx()
[all …]
Dnfp_net_dp.h86 static inline void nfp_net_irq_unmask(struct nfp_net *nn, unsigned int entry_nr) in nfp_net_irq_unmask()
96 nfp_net_rx_ring_hw_cfg_write(struct nfp_net *nn,
99 nfp_net_tx_ring_hw_cfg_write(struct nfp_net *nn,
101 void nfp_net_vec_clear_ring_data(struct nfp_net *nn, unsigned int idx);
104 int nfp_net_rx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp);
105 int nfp_net_tx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp);
146 bool (*ctrl_tx_one)(struct nfp_net *nn, struct nfp_net_r_vector *r_vec,
Dnfp_net_debugfs.c18 struct nfp_net *nn; in nfp_rx_q_show()
24 if (!r_vec->nfp_net || !r_vec->rx_ring) in nfp_rx_q_show()
26 nn = r_vec->nfp_net; in nfp_rx_q_show()
84 struct nfp_net *nn; in nfp_tx_q_show()
93 if (!r_vec->nfp_net || !tx_ring) in nfp_tx_q_show()
95 nn = r_vec->nfp_net; in nfp_tx_q_show()
124 void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir) in nfp_net_debugfs_vnic_add()
Dnfp_net_ethtool.c220 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_drvinfo()
489 struct nfp_net *nn; in nfp_net_get_link_ksettings()
627 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_ringparam()
636 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size()
656 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_set_ringparam()
728 struct nfp_net *nn = netdev_priv(netdev); in nfp_test_fw()
838 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats_count()
846 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats_strings()
880 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats()
982 static unsigned int nfp_vnic_get_tlv_stats_count(struct nfp_net *nn) in nfp_vnic_get_tlv_stats_count()
[all …]
Dnfp_net_main.c79 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic()
91 struct nfp_net *nn, *next; in nfp_net_pf_free_vnics()
98 static struct nfp_net *
104 struct nfp_net *nn; in nfp_net_pf_alloc_vnic()
140 nfp_net_pf_init_vnic(struct nfp_pf *pf, struct nfp_net *nn, unsigned int id) in nfp_net_pf_init_vnic()
181 struct nfp_net *nn; in nfp_net_pf_alloc_vnics()
213 static void nfp_net_pf_clean_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_clean_vnic()
226 struct nfp_net *nn; in nfp_net_pf_alloc_irqs()
271 struct nfp_net *nn; in nfp_net_pf_init_vnics()
549 struct nfp_net *nn; in nfp_net_notify_port_speed()
[all …]
Dnfp_main.h28 struct nfp_net;
118 struct nfp_net *ctrl_vnic;
160 bool nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb);
Dnfp_app_nic.c12 struct nfp_net *nn, unsigned int 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()
Dnfp_netvf_main.c29 struct nfp_net *nn;
61 static void nfp_netvf_get_mac_addr(struct nfp_net *nn) in nfp_netvf_get_mac_addr()
89 struct nfp_net *nn; in nfp_netvf_pci_probe()
302 struct nfp_net *nn; in nfp_netvf_pci_remove()
/drivers/net/ethernet/netronome/nfp/crypto/
Dcrypto.h8 struct nfp_net;
23 int nfp_net_tls_init(struct nfp_net *nn);
28 static inline int nfp_net_tls_init(struct nfp_net *nn) in nfp_net_tls_init()
50 static inline void nfp_net_ipsec_init(struct nfp_net *nn) in nfp_net_ipsec_init()
54 static inline void nfp_net_ipsec_clean(struct nfp_net *nn) in nfp_net_ipsec_clean()
58 void nfp_net_ipsec_init(struct nfp_net *nn);
59 void nfp_net_ipsec_clean(struct nfp_net *nn);
Dtls.c31 static void nfp_net_crypto_set_op(struct nfp_net *nn, u8 opcode, bool on) in nfp_net_crypto_set_op()
46 __nfp_net_tls_conn_cnt_changed(struct nfp_net *nn, int add, in __nfp_net_tls_conn_cnt_changed()
72 nfp_net_tls_conn_cnt_changed(struct nfp_net *nn, int add, in nfp_net_tls_conn_cnt_changed()
91 nfp_net_tls_conn_add(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_add()
97 nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_remove()
103 nfp_net_tls_alloc_simple(struct nfp_net *nn, size_t req_sz, gfp_t flags) in nfp_net_tls_alloc_simple()
111 nfp_net_tls_communicate_simple(struct nfp_net *nn, struct sk_buff *skb, in nfp_net_tls_communicate_simple()
135 static void nfp_net_tls_del_fw(struct nfp_net *nn, __be32 *fw_handle) in nfp_net_tls_del_fw()
161 nfp_net_tls_assign_conn_id(struct nfp_net *nn, in nfp_net_tls_assign_conn_id()
175 nfp_net_tls_set_ipv4(struct nfp_net *nn, struct nfp_crypto_req_add_v4 *req, in nfp_net_tls_set_ipv4()
[all …]
Dipsec.c133 static int nfp_net_ipsec_cfg(struct nfp_net *nn, struct nfp_mbox_amsg_entry *entry) in nfp_net_ipsec_cfg()
276 struct nfp_net *nn; in nfp_net_xfrm_add_state()
517 struct nfp_net *nn; in nfp_net_xfrm_del_state()
545 void nfp_net_ipsec_init(struct nfp_net *nn) in nfp_net_ipsec_init()
554 void nfp_net_ipsec_clean(struct nfp_net *nn) in nfp_net_ipsec_clean()
586 struct nfp_net *nn; in nfp_net_ipsec_rx()
/drivers/net/ethernet/netronome/nfp/nic/
Ddcb.c50 static struct nfp_dcb *get_dcb_priv(struct nfp_net *nn) in get_dcb_priv()
72 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_getets()
86 static bool nfp_refresh_tc2idx(struct nfp_net *nn) in nfp_refresh_tc2idx()
116 static int nfp_fill_maxrate(struct nfp_net *nn, u64 *max_rate_array) in nfp_fill_maxrate()
150 struct nfp_net *nn = netdev_priv(dev); in update_dscp_maxrate()
175 static void nfp_nic_set_trust(struct nfp_net *nn, u32 *update) in nfp_nic_set_trust()
193 static void nfp_nic_set_enable(struct nfp_net *nn, u32 enable, u32 *update) in nfp_nic_set_enable()
211 struct nfp_net *nn = netdev_priv(dev); in dcb_ets_check()
235 static void nfp_nic_fill_ets(struct nfp_net *nn) in nfp_nic_fill_ets()
251 static void nfp_nic_ets_init(struct nfp_net *nn, u32 *update) in nfp_nic_ets_init()
[all …]
Dmain.h33 int nfp_nic_dcb_init(struct nfp_net *nn);
34 void nfp_nic_dcb_clean(struct nfp_net *nn);
36 static inline int nfp_nic_dcb_init(struct nfp_net *nn) { return 0; } in nfp_nic_dcb_init()
37 static inline void nfp_nic_dcb_clean(struct nfp_net *nn) {} in nfp_nic_dcb_clean()
Dmain.c33 static int nfp_nic_vnic_init(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_init()
38 static void nfp_nic_vnic_clean(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_clean()
43 static int nfp_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_nic_vnic_alloc()
62 static void nfp_nic_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_free()
/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c24 static bool nfp_net_ebpf_capable(struct nfp_net *nn) in nfp_net_ebpf_capable()
38 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()
109 struct nfp_net *nn = cb_priv; in nfp_bpf_setup_tc_block_cb()
168 struct nfp_net *nn = netdev_priv(netdev); in nfp_bpf_setup_tc()
184 struct nfp_net *nn = netdev_priv(netdev); in nfp_bpf_check_mtu()
Doffload.c221 struct nfp_net *nn = netdev_priv(prog->aux->offload->netdev); in nfp_bpf_translate()
425 int nfp_ndo_bpf(struct nfp_app *app, struct nfp_net *nn, struct netdev_bpf *bpf) in nfp_ndo_bpf()
484 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog, in nfp_bpf_offload_check_mtu()
496 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_load()
551 nfp_net_bpf_start(struct nfp_net *nn, struct netlink_ext_ack *extack) in nfp_net_bpf_start()
564 static int nfp_net_bpf_stop(struct nfp_net *nn) in nfp_net_bpf_stop()
575 int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_offload()
/drivers/net/ethernet/netronome/nfp/nfd3/
Ddp.c254 struct nfp_net *nn = netdev_priv(netdev); in nfp_nfd3_tx()
421 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_tx_complete()
506 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xdp_complete()
906 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_rx()
1050 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_rx()
1058 struct nfp_net *nn; in nfp_nfd3_rx()
1165 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfd3_poll()
1167 if (r_vec->nfp_net->rx_coalesce_adapt_on && r_vec->rx_ring) { in nfp_nfd3_poll()
1182 if (r_vec->nfp_net->tx_coalesce_adapt_on && r_vec->tx_ring) { in nfp_nfd3_poll()
1204 nfp_nfd3_ctrl_tx_one(struct nfp_net *nn, struct nfp_net_r_vector *r_vec, in nfp_nfd3_ctrl_tx_one()
[all …]
Dxsk.c65 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xsk_rx_skb()
72 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_xsk_rx_skb()
119 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xsk_rx()
202 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_xsk_rx()
405 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfd3_xsk_poll()
/drivers/net/ethernet/netronome/nfp/nfdk/
Ddp.c252 struct nfp_net *nn = netdev_priv(netdev); in nfp_nfdk_tx()
471 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_tx_complete()
835 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_xdp_complete()
1027 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_rx()
1169 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfdk_rx()
1177 struct nfp_net *nn; in nfp_nfdk_rx()
1275 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfdk_poll()
1277 if (r_vec->nfp_net->rx_coalesce_adapt_on && r_vec->rx_ring) { in nfp_nfdk_poll()
1292 if (r_vec->nfp_net->tx_coalesce_adapt_on && r_vec->tx_ring) { in nfp_nfdk_poll()
1314 nfp_nfdk_ctrl_tx_one(struct nfp_net *nn, struct nfp_net_r_vector *r_vec, in nfp_nfdk_ctrl_tx_one()
[all …]
/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c176 struct nfp_net *nn; in nfp_abm_kill_reprs_all()
208 struct nfp_net *nn; in nfp_abm_eswitch_set_switchdev()
257 nfp_abm_vnic_set_mac(struct nfp_pf *pf, struct nfp_abm *abm, struct nfp_net *nn, in nfp_abm_vnic_set_mac()
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()

12