DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] 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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GBK, Size: 1483 bytes --]

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;

                }




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

}



 \x16º&}êëº\x1c¢‚+bž×¥r‰–yÓ\x1a¯mµçž¸×m5í\x17­º¹ÏjØ_zºî‡( ŠØ§µé\¢d^qè¯y×ë¢i kN"ž×¥r‰¦­8Š{^•Ê&×ݹ睵ÛFòv—d¢¸\x0f¢Ë_‹\x1c"¶\x11\x1213ât\x0e»Ûmu\v•žwmŒj½´×½yç®4ûMtÐ!\x13\f¢\fJ('jÛ«z

^ 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 [dpdk-dev] Why secondary process can't receive the interrupt from NIC topperxin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).