All of lore.kernel.org
 help / color / mirror / Atom feed
* Why secondary process can't receive the interrupt from NIC
@ 2017-03-22 14:53 topperxin
  0 siblings, 0 replies; only message in thread
From: topperxin @ 2017-03-22 14:53 UTC (permalink / raw)
  To: dev, user

HI list


          I'm using two processes in our program.
          The primary process to load config, init data
          The secondary process to receive and forward the package from NIC


           In order to reduce the cpu usage, we decide to use interrupt + poll mode.
           But I find in the dpdk lib, the secondary process can not setup and receive the interrupt.


           Who can tell me the reason, and if we want to let the secondary process receive the interrupt, what's the best practice?


           Thanks a lot.


=========================================

/*

 * map the PCI resources of a PCI device in virtual memory (VFIO version).

 * primary and secondary processes follow almost exactly the same path

 */

int

pci_vfio_map_resource(struct rte_pci_device *dev)

{

..........................................

        /* if secondary process, do not set up interrupts */

        if (internal_config.process_type == RTE_PROC_PRIMARY) {

                if (pci_vfio_setup_interrupts(dev, vfio_dev_fd) != 0) {

                        RTE_LOG(ERR, EAL, "  %s error setting up interrupts!\n", pci_addr);

                        close(vfio_dev_fd);

                        rte_free(vfio_res);

                        return -1;

                }




..........................................

}



 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-22 14:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-22 14:53 Why secondary process can't receive the interrupt from NIC topperxin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.