From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 5FF5F8D36 for ; Wed, 7 Sep 2016 09:02:49 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id 1so14062501wmz.1 for ; Wed, 07 Sep 2016 00:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wkp3q1Y+6vFETBxA7MFYK6kCyV5o/gw75yiYEWOL6tA=; b=FU1aelVc7u+ACws7JrTIERbxEC6ZmBeEFzpTjleetO7DsL7jBvAD4LgG0NsMto7LlN hUJlNqL867DLfzOJsuyELWHOliYbXQ1Vrk6/KYj2hyQRtraQkHN8d09xVV9RHt5yN27Z PyK7zlqRzpQq4T2a/0Mi1jaX/rUrHgBg9EudQ1LQBy4KwmL2+5yc0hyPpqGTj+TdU2J4 wXjNAccvUKIVS8//ovilVCCHN2FgVtkCkoLOXppp+gTwVBZZx+KP0I0TX0uoBJU0OSDU UWq4xTXy8nR/EO7c3opcPrGa0TXgf5NJw45tOGKOl1hWAj+7seNGhGkik9Jz9ovj1EvA Qpgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wkp3q1Y+6vFETBxA7MFYK6kCyV5o/gw75yiYEWOL6tA=; b=Or4fi7kEAzm14o6WjgMrzCAUZt6T2l3GV58SChEoIo5R+1p3wLTu/5SVt+MssEMbGf GG/ZMW01qJdKaBSyl5WvryT+1bpyrkHdz2fFKWql36N3cH5xUpCPp5coJLWy7TGO5WO2 pEPmt863UCxqNhpnhF8aqLrDEMXMiE2cLLs9+Of0ldWcSCrFvFttMow4DD+4n9ETlomp zRoSQSO11qQ/4/PP93hI5L8A5Ev1LM2EUnQl1LhqDDla7o2tIJCwGxLMmH7S8QFwMDDS 9uhEYFIYbo7Ek36pt6V8wcvS2XL021XafW9sXrlqYh7zjg2Xeiw5Dl3j297/hbiUUa4t x9zg== X-Gm-Message-State: AE9vXwOLEdUrHQ4qCd2V5MbiQdDr0///pYMRPL+0IJ1CxPd0j5f6Rs+AlWyIs3D8kEe1HgL1 X-Received: by 10.194.107.69 with SMTP id ha5mr38551552wjb.100.1473231769170; Wed, 07 Sep 2016 00:02:49 -0700 (PDT) Received: from ping.vm.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id z17sm2556475wmz.23.2016.09.07.00.02.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 00:02:48 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil Date: Wed, 7 Sep 2016 09:02:20 +0200 Message-Id: <6c6471fe56da31c00c85a6c930a1bd5a992c2461.1473230641.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH 2/8] net/mlx5: fix Rx VLAN offload capability report 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: Wed, 07 Sep 2016 07:02:49 -0000 From: Adrien Mazarguil This capability is implemented but not reported. Fixes: f3db9489188a ("mlx5: support Rx VLAN stripping") Signed-off-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c index 130e15d..47f323e 100644 --- a/drivers/net/mlx5/mlx5_ethdev.c +++ b/drivers/net/mlx5/mlx5_ethdev.c @@ -583,7 +583,8 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info) (DEV_RX_OFFLOAD_IPV4_CKSUM | DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM) : - 0); + 0) | + (priv->hw_vlan_strip ? DEV_RX_OFFLOAD_VLAN_STRIP : 0); if (!priv->mps) info->tx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT; if (priv->hw_csum) -- 2.1.4