Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: secondary process crash #588

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -667,17 +667,17 @@ index 0000000000..f7d4271848
+
+ static int num_spp_devs;
+
+ memset(spp_dev, 0, sizeof(struct spp_dev));
+
+ eth_dev->dev_ops = &eth_spp_ops;
+ eth_dev->rx_pkt_burst = &spp_rx_pkt_burst;
+ eth_dev->tx_pkt_burst = &spp_tx_pkt_burst;
+ spp_dev->rte_eth_dev_data = eth_dev->data;
+ spp_dev->rte_eth_dev = eth_dev;
+
+ if (rte_eal_process_type() != RTE_PROC_PRIMARY)
+ return 0;
+
+ memset(spp_dev, 0, sizeof(struct spp_dev));
+
+ spp_dev->rte_eth_dev_data = eth_dev->data;
+ spp_dev->rte_eth_dev = eth_dev;
+
+ pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev);
+ spp_dev->pci_dev = pci_dev;
+
Expand Down
6 changes: 4 additions & 2 deletions sdk/apps/virtual-ethernet/scripts/virtual_ethernet_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ def install_dpdk(install_path):

# Clone the DPDK repo
logger.info("Cloning %s version of %s into %s" % (dpdk_ver, dpdk_git, install_path))
cmd_exec("git clone -b %s %s" % (dpdk_ver, dpdk_git))
cmd_exec("git clone %s" % (dpdk_git))

# cd to the dpdk directory
# cd to the dpdk directory
os.chdir("dpdk")
# checkout tag
cmd_exec("git checkout %s" % (dpdk_ver))

# Check that the patches can be applied
# for patchfile in patchfiles:
Expand Down