Skip to content

Commit 562fc2a

Browse files
committed
native: Correct check for PMD
1 parent 684115f commit 562fc2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/pmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ int init_pmd_port(int port, int rxqs, int txqs, int rxq_core[], int txq_core[],
135135
rte_eth_dev_info_get(port, &dev_info);
136136

137137
eth_rxconf = dev_info.default_rxconf;
138-
if (strcmp(dev_info.driver_name, "rte_em_pmd") != 0 ||
138+
if (strcmp(dev_info.driver_name, "rte_em_pmd") != 0 &&
139139
strcmp(dev_info.driver_name, "net_e1000_em") != 0) {
140140
/* Drop packets when no descriptors are available
141141
* Protected since this is not supported by EM driver

0 commit comments

Comments
 (0)