From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 7B85C8DAD for ; Wed, 14 Sep 2016 13:54:30 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id i130so44279246wmf.0 for ; Wed, 14 Sep 2016 04:54:30 -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 :in-reply-to:references; bh=wkp3q1Y+6vFETBxA7MFYK6kCyV5o/gw75yiYEWOL6tA=; b=X8XlMz5RPMsTbNC98NYm026Kc+2sLB7NQxBAEArKyhoX+Y9BFpgWaHhqwD8qUqI4wE q7BvdDULRmLraReeHWTAViiiE5FiOWC4d7UwucDn8XV/gfGp49UPvuof5NP3xO5MT7w5 ebNflgdBK8zMDuAZ7LGaTQAgG+muHPivy08mFr/RSYLQdXKqmbbdCwtAmRPPdj2I7XBI qnml98CALZeuewxCu5JwAsc3rbTjH8orhNc3Z/ABx5P8AIsEioCVanCrCUNtPXId8zhl nQmyoguTs/bn3N5FfEo0mt8UZMAx6a30j+TqzxKfCKTp0BC7S/8nPP6Q86mvSHnFNcF3 ubPA== 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:in-reply-to:references; bh=wkp3q1Y+6vFETBxA7MFYK6kCyV5o/gw75yiYEWOL6tA=; b=Uq6dnrQhp4fmnRi/8JSH6HgBIBAOHaZvOxTkB+PEb51kL4gT37yVZsTjeNsVU7f5r9 BkG/Pyh4Lx/49btmMx0B89fgdJZ5iVkijK8aEHspsgrCZclDtOHa+FVfxqsxke+IglrP huF3a+jUjPoAJc/c/qkmWG7IOlbbQjF51pY2FRBQFCsj6I8Dg+Bi/6PuW4abMxpjcJf2 fVa+i/T410uVwh/FW0UMlnP+a8cJGwRlimYAxzStPMGN1m7B5d8+3Q8zI8+2VbrZ9rMD 4LZLyMelqLzyyQ+lnKplRNb2sf5MhJs17jMNQqckizKdivlZdRYpmwb+5z5/XAx6+NlH bjuA== X-Gm-Message-State: AE9vXwPdcTohcQESY3Y6VeEaV2vwzUxp2NOcRGQlEcg5M1DLUCuv0SEsruxUfTgXZrWbTaAZ X-Received: by 10.28.212.211 with SMTP id l202mr2876879wmg.109.1473854070282; Wed, 14 Sep 2016 04:54:30 -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 m133sm10417332wmg.0.2016.09.14.04.54.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Sep 2016 04:54:29 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Adrien Mazarguil Date: Wed, 14 Sep 2016 13:53:49 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH V2 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, 14 Sep 2016 11:54:30 -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