From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF0FBA0562; Tue, 31 Mar 2020 06:42:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFAB31C0B7; Tue, 31 Mar 2020 06:42:15 +0200 (CEST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 523662BCE for ; Tue, 31 Mar 2020 06:42:11 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id g32so3739009pgb.6 for ; Mon, 30 Mar 2020 21:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4STHvn45VW3tSwuQaAkxb8w0CsvHEqi7ZK830XrKDMg=; b=Wkxk4u/q8jZqrg6Xkf69r+nx4L/zJ/lfvMo7VJiyUGj4AoKgmbgTQDCCufQ9LpOAQR DS+yEpZOMgTXyWViA1EL6PMsDGWiJcMAq0/8QezxzbroV8CMbx80IL0Ry7L8sWhxpOOV 2cPA3fQ87MzmE+YwjaPpsUs8ikaziqAVq9coCUk51PYEXiFSTurrghKM4OyWv2PRqWpy va5IRPPmfPrVnAdxGuEgYe058IPsqTeaPNyuZxABhhIf9aGozygqDX8Zw0kNaUKgkS32 Cf0C1Hs3OlP99aoIKBNj9Tz5EZAT47YicSk1vbroNN16wMrO1f9RR3jaATGF1HZLCuzs 9RIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4STHvn45VW3tSwuQaAkxb8w0CsvHEqi7ZK830XrKDMg=; b=gBJhHkUjG+QkNE+8j7qU8THHx0pzYvh7qwVTsx8fNJTzTjmd+W8K4QKm26Zv16NQv3 1+nH5id9WhZKNZpQYZR0uOWTMrkaWyEgHj8imn1cI63Dwse3zV/QsO+ow6zNQ84vxVDR Wk8StGfXWwnTrlDBSGLQssaSe8HqV6TOGCaO/fQkqQh0IDYGCkcaqUOCrT5O202vT1hB 47W0HKxPyzrylfmKhFAgvIBS/WtbQJ931SonV0ygkA3k87QlkTjlsivLAZGeNlUNYdXw NMBPo7OmYT/FM01I/3h1yCpemZ5BWPakhsGTZ5alV6zHVNR4mhg4Zb9ERvqLCxiFfphe tywQ== X-Gm-Message-State: ANhLgQ2Cufrs14vL5s/rNyvjdAOgSRCh7nYqGFln0Gvwtec7bPMd+2iF KC6KdsM3M2Zy+KeWaEZE8renwJ/kmBQxOw== X-Google-Smtp-Source: ADFU+vvvhRcMjPepB/mX6ex2Um1Hqg4FCWaGF9oo6HzL3UqknIOaYwPmkqovW8y6Af5bTIZGkDhwVQ== X-Received: by 2002:a63:5847:: with SMTP id i7mr15845828pgm.127.1585629730285; Mon, 30 Mar 2020 21:42:10 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u129sm11417107pfb.101.2020.03.30.21.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 21:42:09 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , ophirmu@mellanox.com Date: Mon, 30 Mar 2020 21:41:52 -0700 Message-Id: <20200331044156.31935-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200331044156.31935-1-stephen@networkplumber.org> References: <20200331044156.31935-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 3/7] net/tap: do not use PMD logtype X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The PMD logtype is legacy and drivers should use their own logtype. Fixes: 050316a88313 ("net/tap: support TSO (TCP Segment Offload)") Cc: ophirmu@mellanox.com Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 05470a211588..2c9fb76b63de 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -778,7 +778,7 @@ tap_ioctl(struct pmd_internals *pmd, unsigned long request, case SIOCSIFMTU: break; default: - RTE_LOG(WARNING, PMD, "%s: ioctl() called with wrong arg\n", + TAP_LOG(WARNING, "%s: ioctl() called with wrong arg", pmd->name); return -EINVAL; } @@ -1301,7 +1301,9 @@ tap_gso_ctx_setup(struct rte_gso_ctx *gso_ctx, struct rte_eth_dev *dev) SOCKET_ID_ANY); if (!mp) { struct pmd_internals *pmd = dev->data->dev_private; - RTE_LOG(DEBUG, PMD, "%s: failed to create mbuf pool for device %s\n", + + TAP_LOG(ERR, + "%s: failed to create mbuf pool for device %s\n", pmd->name, dev->device->name); return -1; } -- 2.20.1