From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by dpdk.org (Postfix) with ESMTP id 9A3B81BB83 for ; Fri, 14 Dec 2018 14:19:13 +0100 (CET) Received: by mail-lf1-f68.google.com with SMTP id p6so4246798lfc.1 for ; Fri, 14 Dec 2018 05:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sxV7G4kgEPZjQvV+9mXVYuMaz6/pvrsPOMxvGIa99uA=; b=TXDRoQIV6hV6qGSD5/+UAo5ClPCEAOfUuNrBzPW8RhQvaXcasxHnaTgP2nvZf75FdL 0L64nW1h05lk2PmQ90Nn6i5SeruABIIkxdM2bQo1opGiGTM2XsrFt7Caw8j87ErPE/f+ 8EcmmzB4ffC9NzI7WUfeWNfXz/yztLzU1qv0Mvgotm/h71OlEU5viMeabdkqVA1CLc06 qUu7cM7u2yVPwnMhmyjcrMT6DpmqvnHTOh8EBbV1XIhRrNj2b8ytxTsza/kN/gX2byrD YBnxVxoqYsvqZrRl51qEHlE6bomlZG9O+gCe0BW8oceTrV5VvW1vbbUQdHDrQ3US+TMe agqQ== 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; bh=sxV7G4kgEPZjQvV+9mXVYuMaz6/pvrsPOMxvGIa99uA=; b=RlInKO6llJrQnfqsr2vfpjDMlPCV8aWiMObMh4Ma2KOVyg6fq4Lgefi8Ar06E7jEas cw+mOoW6OmszDxSYycppLco3rqv3ZoFHFUZBwANgEQiG6QWlzOW23djAREMqIA7XyXky cCPYeOoXbjDxkkWJkk1jlDHxRAauSW7xuYM0hiQ2DvCtREAbraoA/ZNOsick7x5q0Xs7 J9JwtGH3FS43rM/Wl0i3/3qerjxmOnI8oVFlOBmD4zsq/KLoVJ2Kjo+HBw/3HYkPK1OD qwdYjvTLrsvTJoQJdeb58r4Z9SYL2vKDWL5MCqdAyCPvDGsHHq3KvcFdB93BH97hL/Ac jAwA== X-Gm-Message-State: AA+aEWYh9dsxwEhXVtqyVKT8k9OsFmL4OitALORm+BQcEh5nRwd6OBWE I1IAVuDiejH89Kb3sxDJVzaPcg== X-Google-Smtp-Source: AFSGD/WlxCO7otvHUx9vDFu4WzIgNS7VQATE/NR0/BHN6pS8hAhGuaMCV9IDynMrKeMw07vM87Eg8g== X-Received: by 2002:a19:c4cc:: with SMTP id u195mr1763600lff.141.1544793553231; Fri, 14 Dec 2018 05:19:13 -0800 (PST) Received: from mkPC.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id o25sm873884lfd.29.2018.12.14.05.19.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 05:19:12 -0800 (PST) From: Michal Krawczyk To: dev@dpdk.org Cc: gtzalik@dpdk.org, mw@dpdk.org, matua@amazon.com, rk@semihalf.com, stable@dpdk.org Date: Fri, 14 Dec 2018 14:18:39 +0100 Message-Id: <20181214131846.22439-14-mk@semihalf.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20181214131846.22439-1-mk@semihalf.com> References: <20181214131846.22439-1-mk@semihalf.com> Subject: [dpdk-stable] [PATCH 13/20] net/ena: fix invalid reference to variable in union X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2018 13:19:14 -0000 From: Rafal Kozik Use empty_rx_reqs instead of empty_tx_reqs. As those two variables are part of union this not cause any failure, but for consistency should be changed. Fixes: c2034976673d ("net/ena: add Rx out of order completion") Cc: stable@dpdk.org Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 3aa32a3bf..14165561e 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1387,7 +1387,7 @@ static int ena_rx_queue_setup(struct rte_eth_dev *dev, } for (i = 0; i < nb_desc; i++) - rxq->empty_tx_reqs[i] = i; + rxq->empty_rx_reqs[i] = i; /* Store pointer to this queue in upper layer */ rxq->configured = 1; -- 2.14.1