Received: by 10.223.164.202 with SMTP id h10csp207987wrb; Mon, 13 Nov 2017 05:17:20 -0800 (PST) X-Google-Smtp-Source: AGs4zMaGKzO0ewNIH665Eco46wgNRx5HSXMZW9DR7RrqWVggwtH9GDrUZ9cCLzJnT+w8lo4GwTLq X-Received: by 10.84.176.132 with SMTP id v4mr8904041plb.393.1510579040578; Mon, 13 Nov 2017 05:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579040; cv=none; d=google.com; s=arc-20160816; b=kvxUDylBBDXs/LcAy730Txa8ecaUt/r0WY29hAi480Rhq8w1gOhMTpmk1FQBbMGGfw 98iPFmm3CPHUB3vWKdL3984Qb84Z6eHT096PlO6AmdnU2YBMiCslTYtyM0Q2FV7G9gHO Qupwz4R9IGup4m+wAPPQqaWZLFh7sW8cehOhdQrxlZd0/BKr3lQ4deDQ3vLHi79BuExX sqMNwlbYhKILJAZvKCljtdw84ZDtUG2Tf42/dHAO3w4KKeFPihgw75SH7zJaszQyQ4+R 0IOxd/KhQ6Ij5u7rOw38luESTYT0c8CVkl2pmRFo1cJkJuDyCB6ckhqoWmiMBjiZqQfe E4pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VGf23yZ2FJGdSmDNcnUfSIetjzITQvn4q69NPjawZ0E=; b=HXnovhG9gcmK7Ys8ydM8umX4EzGfi3gx0psON7o2d3gvSBS5LmMyqQW05Hv8mPVIB/ xEdNDdg3xWH9uKOC4VC8NDWFuiHhkdCUGtEJm5y6kv5oOJaw5t317yphD9wq65LXxs7O TfMSduQJLFnvoAHHqeBRMwKJI/zsYINoa5Pp2qPL/PTqATC0TUdgpzkxlWA9uU9ug7V2 AKeVObHXNaVvAKmiBKFQ4tLnp5kNe4D6FWjjSRyMeUUoatssC8IT81xkiKpciESJFX6y VkqP2x1qi6HR23KE1DmTC6Ndgelhya2C+w7MekYZEYDFVfwBgNTb7CQpqXqN7YwTKmkK 7wyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g68si13635503pgc.304.2017.11.13.05.17.07; Mon, 13 Nov 2017 05:17:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752233AbdKMNQd (ORCPT + 95 others); Mon, 13 Nov 2017 08:16:33 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:53762 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754891AbdKMNCf (ORCPT ); Mon, 13 Nov 2017 08:02:35 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1eEENf-0004WO-5v; Mon, 13 Nov 2017 14:02:27 +0100 Date: Mon, 13 Nov 2017 14:02:27 +0100 From: Andrew Lunn To: Egil Hjelmeland Cc: vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/2] net: dsa: lan9303: Clear offload_fwd_mark for IGMP Message-ID: <20171113130227.GC22473@lunn.ch> References: <20171110115435.4261-1-privat@egil-hjelmeland.no> <20171110115435.4261-3-privat@egil-hjelmeland.no> <2e0d170e-08f6-4009-e422-6faea463a0c2@egil-hjelmeland.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e0d170e-08f6-4009-e422-6faea463a0c2@egil-hjelmeland.no> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > RTFM, my bad. The lan9303 has both STP and IGMP bits in the receive tag. It > is as simple as: > > u16 lan9303_tag1 = ntohs(lan9303_tag[1]); > skb->offload_fwd_mark = !(lan9303_tag1 & 0x18); Hi Egil That is much nicer. But please add a couple of #defines for the 0x18 bits. Andrew From 1583956334517218411@xxx Mon Nov 13 13:07:54 +0000 2017 X-GM-THRID: 1583680264397303225 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread