Skip to content

Commit 986a1b6

Browse files
david-marchandshemminger
authored andcommitted
net/tap: remove log when running without multiprocess
In case DPDK is started with multiprocess disabled (like in OVS), there is no reason to log an error on multiprocess aspects. Note: the only caller of this helper does not check the return value. Fixes: c36ce70 ("net/tap: fix to populate FDs in secondary process") Cc: stable@dpdk.org Signed-off-by: David Marchand <david.marchand@redhat.com>
1 parent 05e592e commit 986a1b6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/net/tap/rte_eth_tap.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ tap_link_set_up(struct rte_eth_dev *dev)
769769
return 0;
770770
}
771771

772-
static int
772+
static void
773773
tap_mp_req_on_rxtx(struct rte_eth_dev *dev)
774774
{
775775
struct rte_mp_msg msg;
@@ -791,13 +791,10 @@ tap_mp_req_on_rxtx(struct rte_eth_dev *dev)
791791
msg.num_fds = dev->data->nb_rx_queues;
792792

793793
err = rte_mp_sendmsg(&msg);
794-
if (err < 0) {
794+
if (err < 0 && rte_errno != ENOTSUP) {
795795
TAP_LOG(ERR, "Failed to send start req to secondary %d",
796796
rte_errno);
797-
return -1;
798797
}
799-
800-
return 0;
801798
}
802799

803800
static int

0 commit comments

Comments
 (0)