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 623D3A2EEB for ; Fri, 13 Sep 2019 13:15:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 65BBF1F038; Fri, 13 Sep 2019 13:15:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 9FAA01F022; Fri, 13 Sep 2019 13:14:59 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8DBEvCF023058; Fri, 13 Sep 2019 04:14:57 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=WTPD14nyk0leVt1cW4ydscZ77JDDUO7Yo6cgQV88wAI=; b=Tky13kLjQTFgribn7PtILf7+3c7eeF1muMBlJbd60g8WA+2uSZAJC6z9REAeHk0ddt/z /CXn5JVtcXgZ0jsUpwJ0dmXAi3ECZFAkVDL+InXgyi2akHbU8bJXwfER01jyG1FBUVbD +1npxx0wYzoQBUl4OPnBqn/leu4yA8cLuDIjxjtGOkFM3qoOhdATmpaywkKsy2V1T2k7 BogsaJHieNDfqH9nQcrNS+NFRSJDB6unBJknS0ndA6xZSauFf/YD920fzuehMdpIJQmj rsMWscy71S9tsYHHucItjVAUmHDFg0kKpOPn3s3zhtegI0FU3y7AxGTwUMdsFL2ZJZqE nQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2uytdfkc56-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 13 Sep 2019 04:14:57 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 13 Sep 2019 04:14:55 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 13 Sep 2019 04:14:55 -0700 Received: from dell-e5540.caveonetworks.com (unknown [10.29.16.81]) by maili.marvell.com (Postfix) with ESMTP id C07963F703F; Fri, 13 Sep 2019 04:14:52 -0700 (PDT) From: To: CC: , Vivek Sharma , Date: Fri, 13 Sep 2019 16:44:49 +0530 Message-ID: <1568373289-5629-1-git-send-email-viveksharma@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-13_06:2019-09-11,2019-09-13 signatures=0 Subject: [dpdk-dev] [PATCH] ethdev: use correct QinQ offload flag 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" From: Vivek Sharma Use correct flag for indicating QinQ strip rx offload. Fixes: dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip") Cc: stable@dpdk.org Signed-off-by: Vivek Sharma --- lib/librte_ethdev/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 17d183e..bfc0468 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -2823,7 +2823,7 @@ rte_eth_dev_get_vlan_offload(uint16_t port_id) ret |= ETH_VLAN_EXTEND_OFFLOAD; if (*dev_offloads & DEV_RX_OFFLOAD_QINQ_STRIP) - ret |= DEV_RX_OFFLOAD_QINQ_STRIP; + ret |= ETH_QINQ_STRIP_OFFLOAD; return ret; } -- 2.7.4