From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id BEEEB939E for ; Fri, 30 Oct 2015 20:00:32 +0100 (CET) Received: by wicfx6 with SMTP id fx6so16536539wic.1 for ; Fri, 30 Oct 2015 12:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=vWONUkVOK5fpgbzcL7Yksg95OSOH86bAlI1EKoK16YU=; b=UGVtauQc+jQKRnqAr7DOWi1sPi7Czw4d2mx892TJw4Mz9QzaV/YkyXxQqn1PsVg2vB 6zTnPh2P/Fw+OZne+Nc6oPjfyyNL0gf2DCglLMH6Ky7jaqJuF9iUaHimA+CgLMmrgIv/ 3L1YmBJw1KB544O/O1O6sH2OctCTwcRNfqyjLhlzSlzTLKomnLzBqDB0rntUd2cwqT5F mxTQ7E/DwHeswm/MZqzPUBsVftF9hKVlnORh+bAdFTSMOtO7Kg9iUxkR1xU1fX7mMlyd NL/QQNOThd1f/hhCyq0lbcaENunY3Bva2LPM/zd2Vmu4i9tuDCSqXlRkUCzXIyecaQgH FmNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=vWONUkVOK5fpgbzcL7Yksg95OSOH86bAlI1EKoK16YU=; b=P1dPWoQ5TPyx6jcDzBw6RUMIQ3VZjcANTYwHfLJ/jy0fB6ViOUyVaNy3mJvhPTA1dn R3zeseSvumKU2VpO+Juy1cL9BpDHAZLzjv4a1vgkyXYJmMPRUvHsJPDxJ54xL1zsK2Cq cm2BodG2bW0tidRQKtdJnMmqKS+nsDGxo9YuoFdaT+ywXgCtPAiNhWKCod7aL4RpkkY7 Ishl22MFzhLdeMii5R3tIDe9QGOJ8ec3FcgbvpQpUmm7ImEworff3IB3UVaji5VNPIfn 0oEiolHzhmt/27Vmz64EJfp/mjcBzn/in+MMB9bCsfqM8QGLO0n7EMfNh/ob8BYWqaum qIVg== X-Gm-Message-State: ALoCoQkyAqguEVUq+9ZI+Un14fV6jfeN7vON3QWSy8jEu/+Zz0o35ZooA4C68++14zIG/poSCZdF X-Received: by 10.194.188.111 with SMTP id fz15mr9156915wjc.106.1446231632658; Fri, 30 Oct 2015 12:00:32 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id ly4sm8435265wjb.4.2015.10.30.12.00.31 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 30 Oct 2015 12:00:32 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Fri, 30 Oct 2015 20:00:08 +0100 Message-Id: <1446231609-8463-2-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1446231609-8463-1-git-send-email-adrien.mazarguil@6wind.com> References: <1446231609-8463-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 2/3] mlx4: do not complain about port state X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 19:00:32 -0000 Port is considering inactive when the related netdevice is down. There is no reason to warn about it (and confuse users) since it's automatically brought up later by the PMD. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 4cf2f7d..3b25492 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -4985,9 +4985,9 @@ mlx4_pci_devinit(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev) goto port_error; } if (port_attr.state != IBV_PORT_ACTIVE) - WARN("bad state for port %d: \"%s\" (%d)", - port, ibv_port_state_str(port_attr.state), - port_attr.state); + DEBUG("port %d is not active: \"%s\" (%d)", + port, ibv_port_state_str(port_attr.state), + port_attr.state); /* Allocate protection domain. */ pd = ibv_alloc_pd(ctx); -- 2.1.0