MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nfp_enable_queues

Function nfp_enable_queues

dpdk/drivers/common/nfp/nfp_common.c:179–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void
180nfp_enable_queues(struct nfp_hw *hw,
181 uint16_t nb_rx_queues,
182 uint16_t nb_tx_queues)
183{
184 int i;
185 uint64_t enabled_queues;
186
187 /* Enabling the required TX queues in the device */
188 enabled_queues = 0;
189 for (i = 0; i < nb_tx_queues; i++)
190 enabled_queues |= (1ULL << i);
191
192 nn_cfg_writeq(hw, NFP_NET_CFG_TXRS_ENABLE, enabled_queues);
193
194 /* Enabling the required RX queues in the device */
195 enabled_queues = 0;
196 for (i = 0; i < nb_rx_queues; i++)
197 enabled_queues |= (1ULL << i);
198
199 nn_cfg_writeq(hw, NFP_NET_CFG_RXRS_ENABLE, enabled_queues);
200}
201
202void
203nfp_disable_queues(struct nfp_hw *hw)

Callers 2

nfp_net_enable_queuesFunction · 0.85
nfp_vdpa_hw_startFunction · 0.85

Calls 1

nn_cfg_writeqFunction · 0.85

Tested by

no test coverage detected