Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2279068ybd; Thu, 27 Jun 2019 09:39:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwI5Eu1MA1SMICiVna6uW/g+45ps8kqW4ErhN2VZQDp0GmhcOB8en6H1xETPj80kg73wVjh X-Received: by 2002:a17:902:20b:: with SMTP id 11mr5825849plc.78.1561653590522; Thu, 27 Jun 2019 09:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561653590; cv=none; d=google.com; s=arc-20160816; b=nFDDNLHNFbd19yD2MalmHXNjPmwlttXEy9p0dEsNdxATOx1sJ/KqIeP8QglDQuDdu5 qMTcRXq4YEtu6UeEM5AXyxrOmEZ/sn918uh0+nMtQ8KTc4LCdPMllGiz+NG57PALk9GJ mH32XMuTzdUfsuXwu7I4l/atKq0mGWbIH/8CP8vTW01+V48GfEiSbUs/zGxxGneKSWF1 lWIskBYRJ516TqL5ct+IqA3xzn0kojz/72YVc4mcq/cx3TTTqAF7qtBRILoI+mtHsUfu a0BajZoskiV/PeZ8p/m7EVBMTivNg14nV+JnMzD7H+EY14sv4lCi99ZJdrPcyZn+lOlh /z6A== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=yoxboPxI46vechPL5N+wlmaF7NRXMOplkX59mHqApOM=; b=R5+PMM1NoEDmdEX6bnom6x8I9etv10iH/k0dPDavrtq3rVQ65LSM0o3/VQ6wATZZ5d K0TLE0jffiQRm2ajXNPOvQdz1GUYQ05jXjjxcgoICOBD2nf20Nxijdr8gjDcp9fo4zzm WmaCOy/Je3nGzihfBhjw0tYFAyaaZJfot3LZx4UnEdjCKUh0B/KMvtYbBTdW6KehwjPW zQzEk2b0KB93eaKT3rSv8mzX4A/5WepXi2GGFQLp/BCpnCim9qVNqNWncz+z+4cLEJw1 L1pgoWOs6Q/ap/TWThSx371pDd/ffLv8oZ9NzJlg6RttBl5SjBBVPq+jj5Ry8C8vk5gq ozUg== 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 31si2801271plc.356.2019.06.27.09.39.34; Thu, 27 Jun 2019 09:39:50 -0700 (PDT) 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 S1726513AbfF0QjZ (ORCPT + 99 others); Thu, 27 Jun 2019 12:39:25 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:56170 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfF0QjY (ORCPT ); Thu, 27 Jun 2019 12:39:24 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 26F7714DB597A; Thu, 27 Jun 2019 09:39:24 -0700 (PDT) Date: Thu, 27 Jun 2019 09:39:23 -0700 (PDT) Message-Id: <20190627.093923.1974740159331605623.davem@davemloft.net> To: maxime.chevallier@bootlin.com Cc: pablo@netfilter.org, f.fainelli@gmail.com, jiri@mellanox.com, jakub.kicinski@netronome.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, antoine.tenart@bootlin.com, thomas.petazzoni@bootlin.com Subject: Re: [PATCH net-next v2] net: ethtool: Allow parsing ETHER_FLOW types when using flow_rule From: David Miller In-Reply-To: <20190627085226.7658-1-maxime.chevallier@bootlin.com> References: <20190627085226.7658-1-maxime.chevallier@bootlin.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 27 Jun 2019 09:39:24 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Chevallier Date: Thu, 27 Jun 2019 10:52:26 +0200 > When parsing an ethtool_rx_flow_spec, users can specify an ethernet flow > which could contain matches based on the ethernet header, such as the > MAC address, the VLAN tag or the ethertype. > > ETHER_FLOW uses the src and dst ethernet addresses, along with the > ethertype as keys. Matches based on the vlan tag are also possible, but > they are specified using the special FLOW_EXT flag. > > Signed-off-by: Maxime Chevallier > --- > V2 : Add src and dst mac address parsing, as suggested by Pablo. Applied, thanks.