Received: by 10.223.164.202 with SMTP id h10csp197435wrb; Mon, 13 Nov 2017 05:07:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMai8kiiLBidvJJaPFPfFjvhTWo2sByK0179/PV3peSS90SZUyk4Phnsn9ZRKToXQni6X8iG X-Received: by 10.98.75.71 with SMTP id y68mr9930259pfa.45.1510578475019; Mon, 13 Nov 2017 05:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510578474; cv=none; d=google.com; s=arc-20160816; b=htbmBSy/tFIrZXx95oPNoJwGX2rSLHHrDeF1NC5+cl51UIw7tP1QmHR9DB88t4RWTm DQvpbCPIpdykRVCiJbYeZw4Zl8jfJsoicw/ReIvT6TXTgkEcnPHvaAdWw/wNFh3gHJ33 lKBC9Cl9Lie51fikXew/McbOaMusFXlyh8gzqKkq19hEWIfUV5mUdcteCirl03mpGBi/ Uv2n7Q/5pnoFGo7weQuwB0JqD+RgoAvoKd9pM7dEPxR4NXqopS3xIlEuRMyIQOHcoV2x bIstrPBIF2uC1gyggn7fcKhBDMdh6Qnj5T72kbYWOnqpmeevfPGXUeMrHmw6rSEoZEHG E22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=pCfTfZoORcVeWndAfwUprtfbC4vP3DKweXwVN8rRngg=; b=uFoe+ljs6kpCx+musbMoodLBAHsCtU3INTb1Fl7oiN1Fg8gCwb+mHspC8UkC5woyE4 2hgnC7+V9le1BlaHriFizw1fTfRScCGWjcWEZdxMh0afdVkMAyzmK+mIcQ6JOsvHoCf1 gunpl63IQo0qa5Q1M0X3xMJpwN1/LaXQSTEx06dEn4ehIY3C7Shg5zPMgK92ElI1u/oM +sbzL4xrEt7ABLxRrUcxIjnPbURKFH948uGzQIKZ/ItA+Nba6qEOiNurgzglpOWwbZID zinJzNhR9nVqxGyrqWu+lvS6Xip9bNtwTKGZ7Y/ZsnWeMLVliYz2iQWytf26PHEq6DY7 MQ+w== 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 p4si13916132pgc.227.2017.11.13.05.07.41; Mon, 13 Nov 2017 05:07:54 -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 S932334AbdKMNFb (ORCPT + 95 others); Mon, 13 Nov 2017 08:05:31 -0500 Received: from aibo.runbox.com ([91.220.196.211]:46682 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932092AbdKMNF3 (ORCPT ); Mon, 13 Nov 2017 08:05:29 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1eEEQT-00078Y-FM; Mon, 13 Nov 2017 14:05:21 +0100 Received: from 93.89.113.32.ip.vitnett.no ([93.89.113.32] helo=[10.5.202.90]) by mailfront12.runbox.com with esmtpsa (uid:646232 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1eEEPY-0006Vy-L4; Mon, 13 Nov 2017 14:04:24 +0100 Subject: Re: [PATCH net-next 2/2] net: dsa: lan9303: Clear offload_fwd_mark for IGMP To: Andrew Lunn Cc: vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171110115435.4261-1-privat@egil-hjelmeland.no> <20171110115435.4261-3-privat@egil-hjelmeland.no> <2e0d170e-08f6-4009-e422-6faea463a0c2@egil-hjelmeland.no> <20171113130227.GC22473@lunn.ch> From: Egil Hjelmeland Message-ID: <5c43fc12-da9b-c5ae-d65c-c12be9337b84@egil-hjelmeland.no> Date: Mon, 13 Nov 2017 14:04:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171113130227.GC22473@lunn.ch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13. nov. 2017 14:02, Andrew Lunn wrote: >> 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. > Of course! > Andrew > Egil From 1583948403104345238@xxx Mon Nov 13 11:01:50 +0000 2017 X-GM-THRID: 1583680264397303225 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread