From patchwork Tue Jun 2 13:06:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingyu Li X-Patchwork-Id: 479452 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BCBDE1412E3 for ; Tue, 2 Jun 2015 23:07:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=NSfb8ced; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A60F62802BB; Tue, 2 Jun 2015 15:05:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A40422802BB for ; Tue, 2 Jun 2015 15:05:43 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 2 Jun 2015 15:05:43 +0200 (CEST) Received: by pdbnf5 with SMTP id nf5so71541333pdb.2 for ; Tue, 02 Jun 2015 06:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=QhDUJqY2+4QhWRI/+/SC6r4gLnTGGdFJTkXyjriGJHI=; b=NSfb8ced6njdd/GFDYdJ5WpzOrMTnHJR6ZWwUUZEMcrSYnG/afPiXdym2M96Fy/yQj o7EvnZAwO8lNV73uXkva3aawIu/xErBN5APltNdO8yWqzP8dK/ilkzo7TYVaWUQCHSlp YDl0i8SHLPprWoTkY418NA8MsU0Ef0RBeBUH+GwmN6k8YR3RgBZRhXY9sw8RlDszUhlj dIQ+/i/hfHw24+C+IdFWDh857Rfklk/rf9K0HoO1KjJNXHrZ5VbiChl5jqhnAMLRn8bk hfsJ9afbUCqH/eF0FeYe/12x41SZfsYelfkoQLGqqYL7Vi2i+FdLP1wRWJfxW5O4Gjnz LDvQ== X-Received: by 10.70.35.6 with SMTP id d6mr49198580pdj.166.1433250434560; Tue, 02 Jun 2015 06:07:14 -0700 (PDT) Received: from localhost.localdomain ([140.113.45.114]) by mx.google.com with ESMTPSA id bn7sm17911911pac.22.2015.06.02.06.07.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jun 2015 06:07:14 -0700 (PDT) From: michael lee To: blogic@openwrt.org Date: Tue, 2 Jun 2015 21:06:41 +0800 Message-Id: <1433250405-2888-1-git-send-email-igvtee@gmail.com> X-Mailer: git-send-email 2.0.5 Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH] [ 1/5] ramips: fix ethernet vlan tx offload support check when delete X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: michael lee --- target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c index 1822fea..60c3c91 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -514,7 +514,7 @@ static int fe_vlan_rx_kill_vid(struct net_device *dev, u32 idx = (vid & 0xf); if (!((fe_reg_table[FE_REG_FE_DMA_VID_BASE]) && - (dev->features | NETIF_F_HW_VLAN_CTAG_TX))) + (dev->features & NETIF_F_HW_VLAN_CTAG_TX))) return 0; clear_bit(idx, &priv->vlan_map);