Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5946965ybi; Wed, 12 Jun 2019 11:10:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8l6su+FYpeyoLRhxCnEV9KWa8Tu+4i6olijKKuaXAcm4baduLv238Y0nbGuU0eghnHJ+t X-Received: by 2002:a17:902:f089:: with SMTP id go9mr13708051plb.81.1560363033798; Wed, 12 Jun 2019 11:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560363033; cv=none; d=google.com; s=arc-20160816; b=yiZXUpHXLqrM7sajxadu2LrrWdZE2Ih4rQAl6PXvnqA70i6xZy9p47ALwm5chBY/Vy JVnd0akYTtYYdPMQhIZ0k8ut9t+zNiCJT4v7wedZSYTDSgm2Vg5vOM1SbJA1QVWmtic0 ryCMrIMXlocHdHHblDIHpsKPVtwoWjUL38jtzKKD1S6Neesax2axJBSjienLbp/q7OQw yNuonaKphiYND3WbTpnvk/h5hJQutBQvVG0ql7F2U5W9+V4zQqGkBt9UBKz/MphZdmyr Hf9A6BKI6rujTl2NL/LyuRrG+vNdJTPIQ+rCVinVdZ+PckmeijIYnQ5xgltOm5H5Lfv8 VvsQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=700itWyKjvYiFLhP6jEPTeNmhf7t12dW5GgxWWewn2Y=; b=TjZFbB71zaWdGN5h1446D1LMzVf1xkOrgWDKnEeQK6RvUZmIFQvZ3IeFO4fx02tZpr 81Z/e01R/+QE88Zx5I1eLseAxnnzePr9/Cy7E5FJFaPSaszwLF9lszDWPIqhPgFOUBn5 aojWGlKfV2ycPa6RYXvccUTHkvfkI1lrD+lU4x4EQWtqCAtuC6zi7t7Birxw45T7uQih pewwX49zIvuepyxqJQDR2Ef7Rebj1+ntGpmxtvRklS8sjIsLmRe1S539WdEHMjX40ZWP L+EZtQpf/sPut0g4oIM7oS98hNtDDNwg4uHTWq2biKGbNwdBJOAYsnzavIUqsw/bT4s/ dpXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=DIDleIoB; 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 y15si382802pfe.133.2019.06.12.11.10.18; Wed, 12 Jun 2019 11:10:33 -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; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=DIDleIoB; 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 S1728040AbfFLSG1 (ORCPT + 99 others); Wed, 12 Jun 2019 14:06:27 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:36679 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbfFLSG0 (ORCPT ); Wed, 12 Jun 2019 14:06:26 -0400 Received: by mail-qk1-f193.google.com with SMTP id g18so10996867qkl.3 for ; Wed, 12 Jun 2019 11:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=700itWyKjvYiFLhP6jEPTeNmhf7t12dW5GgxWWewn2Y=; b=DIDleIoBBRbSbyaPaKHTfUCkoX3V0qed/gmhgh/MpB+I7n+x7Wf4eypIwr94A3j01p CFtBmztxBehhkx2xB/qty0kA44RYXzkb3W8eo3axjRSX3ri6VBAkuNuMdU035uUwHYVw 4VjEg40aFujRHdVN69xwSZo7QN4C/0uRdbu13unzNEt5X5pXdov+4KPeP6hWWbHpIC05 duGHjQ+6tOx0I8N+rfPDKQe5Y4EhqkbLQkdicV4O9/K3dZGIjTIGfueCbThEiCX+CLGr 3s1nf92yaFi+AsfIiXpq8R+4E6PReNn2enKx+i/CTEIH6tqqeN4F4yHUQNaTYKwkN10J 4LEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=700itWyKjvYiFLhP6jEPTeNmhf7t12dW5GgxWWewn2Y=; b=K70NRb2q8XRJw/MxemqPpvMlqhFbGmVyKUEvuvwv3ouZGTXgEFY0xPvqGMPZLhaRLB dUpzxvQy6RChdbTtohR5vmeQ3YLk7YUs1UuU+ky45VU7TylG/D+TS0vcIWwW8Z4j/jIV 6QdRLG+ABdhzEB14EMRrseVPQAI2kxlwUmt+Ib3d3laqBy9FxPmuSWal6mG6rBNhP27f 1tvX6SUwWVJMBVBsJSbC9JppGg9pQ6eJxrr/SSleb3K3z1yEr79SPHkiS+M82y2gFiz2 rX4VsIRtYyvYjD7+v8HglsdmC1BEdDRRAgcHjPUjJufLOyCL+MtaHq2KJcx91+1CKACX M3GA== X-Gm-Message-State: APjAAAUc6UeI8tdagNeYWRe5dt/M4//ygxCt8+rx8mCCJ0+UqNeZ0nH9 bWr3wsqY1UXVxIM9OG8mLeiSRA== X-Received: by 2002:ae9:e30d:: with SMTP id v13mr47611016qkf.148.1560362785429; Wed, 12 Jun 2019 11:06:25 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id m44sm285864qtm.54.2019.06.12.11.06.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 11:06:25 -0700 (PDT) Date: Wed, 12 Jun 2019 11:06:20 -0700 From: Jakub Kicinski To: Maxime Chevallier Cc: davem@davemloft.net, Pablo Neira Ayuso , Florian Fainelli , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Toshiaki Makita Subject: Re: [PATCH net v2] net: ethtool: Allow matching on vlan DEI bit Message-ID: <20190612110620.5f1653bc@cakuba.netronome.com> In-Reply-To: <20190612151838.7455-1-maxime.chevallier@bootlin.com> References: <20190612151838.7455-1-maxime.chevallier@bootlin.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Jun 2019 17:18:38 +0200, Maxime Chevallier wrote: > Using ethtool, users can specify a classification action matching on the > full vlan tag, which includes the DEI bit (also previously called CFI). >=20 > However, when converting the ethool_flow_spec to a flow_rule, we use > dissector keys to represent the matching patterns. >=20 > Since the vlan dissector key doesn't include the DEI bit, this > information was silently discarded when translating the ethtool > flow spec in to a flow_rule. >=20 > This commit adds the DEI bit into the vlan dissector key, and allows > propagating the information to the driver when parsing the ethtool flow > spec. >=20 > Fixes: eca4205f9ec3 ("ethtool: add ethtool_rx_flow_spec to flow_rule stru= cture translator") > Reported-by: Micha=C5=82 Miros=C5=82aw > Signed-off-by: Maxime Chevallier LGTM, thanks!