From 9df03dd7d5752b1896b5794879fbd98ec46517d7 Mon Sep 17 00:00:00 2001 From: Adrien Mazarguil Date: Fri, 30 Oct 2015 20:00:08 +0100 Subject: [PATCH] mlx4: do not complain about port state 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 e422a808f2..8c7803739b 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -4821,9 +4821,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.20.1