From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id E905A9204 for ; Fri, 30 Oct 2015 17:13:28 +0100 (CET) Received: by wmff134 with SMTP id f134so15574901wmf.0 for ; Fri, 30 Oct 2015 09:13:28 -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; bh=QwY7sMjAHIcL9jkGa7Cyv70cOqgCOrWRnYGf5VTwuW4=; b=GDN/UYinD63x3rdLziS3e0Hxd6P9r6HFIBwlN/5JDqEbcURH2RGe7ZWViQ3v/3/LFa dDXO++xMgyEWJ5qVJ5k1rpeCOV8spA5Fqevb3dfDcJ+tcWfu3oNJm5SXETg/bKoH2gOn OlHkklxGYH0RVnLPhD3ryFqvxWXWwUlH931o395ylxkm/cGfY+IS8zhon0SkFdh0+zI0 iJ3xpEfJ3W+7P4SfFwxwHX0lZVz3/HtKDqgIve/x+X6fJaqtCEX1vWDMfUs26haeb8Zm ArJrbW/VrO1rIDbIsJOr+X36vZrhM7S8r84gWXiHm4SstoDjLY7DL+HyTdyJwawONZ/0 oEvw== 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; bh=QwY7sMjAHIcL9jkGa7Cyv70cOqgCOrWRnYGf5VTwuW4=; b=AF38nYiPid1TgqY0I1StiEUXCFshOHKdTs7xsPgWxo2tpETieouQQVoKtBd0aNytXQ MtPRxfaxhDOR3M4OKSO6MY+lJvqradAsL3Wm9UBZOf1kkk/X2wnz14ZdvimOyEA1yFJn O4mKNxK/zNVFFaLJ3ut+kl2QO/26GtIaHzluXCRdN34uxc1Vv1aPS5fYQbwmDydbuV1S DaBqcbrJdElYXEKshT5qWCdU3ZvieTd14iDIQYQexpfUqKfcIJamDL9qVTHc51dIa9sc 9S3mFB0B7voZf3mY/lYyyOdeIrzSwKAXh2wmU+KgCB0nQpmftveKck8VXapHfQqPaBTv Vg7w== X-Gm-Message-State: ALoCoQksl04DXXwUHfQcWdJGpvpnIF/BmtrDNxP8ON0FqxyiTliGhOid+AT/TeMtn3xDdEYQib/Y X-Received: by 10.28.216.7 with SMTP id p7mr4243968wmg.61.1446221608776; Fri, 30 Oct 2015 09:13:28 -0700 (PDT) Received: from gloops.dev.6wind.com (89-158-215-180.rev.numericable.fr. [89.158.215.180]) by smtp.gmail.com with ESMTPSA id 186sm3584297wmp.10.2015.10.30.09.13.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Oct 2015 09:13:28 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Fri, 30 Oct 2015 17:13:23 +0100 Message-Id: <1446221603-10679-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 Cc: Julien Meunier Subject: [dpdk-dev] [PATCH] enic: fix vlan filtering 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: Fri, 30 Oct 2015 16:13:29 -0000 From: Julien Meunier Report an error when something went wrong. Signed-off-by: Julien Meunier Signed-off-by: David Marchand --- drivers/net/enic/enic_ethdev.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index e385560..5df9a6c 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -271,13 +271,14 @@ static int enicpmd_vlan_filter_set(struct rte_eth_dev *eth_dev, uint16_t vlan_id, int on) { struct enic *enic = pmd_priv(eth_dev); + int err; ENICPMD_FUNC_TRACE(); if (on) - enic_add_vlan(enic, vlan_id); + err = enic_add_vlan(enic, vlan_id); else - enic_del_vlan(enic, vlan_id); - return 0; + err = enic_del_vlan(enic, vlan_id); + return err; } static void enicpmd_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) -- 1.9.1