From patchwork Wed Sep 28 12:43:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 676210 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3skcrj3dFYz9s2Q for ; Wed, 28 Sep 2016 22:46:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b=EabR3Ii/; dkim-atps=neutral Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 9750D10676; Wed, 28 Sep 2016 05:43:30 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id 832A310671 for ; Wed, 28 Sep 2016 05:43:27 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 1B13E162411 for ; Wed, 28 Sep 2016 06:43:27 -0600 (MDT) X-ASG-Debug-ID: 1475066606-0b323739b8bbfa0001-byXFYA Received: from mx3-pf3.cudamail.com ([192.168.14.3]) by bar6.cudamail.com with ESMTP id SWf15uSWcmVPlHSe (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 28 Sep 2016 06:43:26 -0600 (MDT) X-Barracuda-Envelope-From: simon.horman@netronome.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.3 Received: from unknown (HELO mail-wm0-f47.google.com) (74.125.82.47) by mx3-pf3.cudamail.com with ESMTPS (AES128-SHA encrypted); 28 Sep 2016 12:43:25 -0000 Received-SPF: neutral (mx3-pf3.cudamail.com: 74.125.82.47 is neither permitted nor denied by SPF record at mktomail.com) X-Barracuda-Apparent-Source-IP: 74.125.82.47 X-Barracuda-RBL-IP: 74.125.82.47 Received: by mail-wm0-f47.google.com with SMTP id b130so69650899wmc.0 for ; Wed, 28 Sep 2016 05:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6/fLWc53wMuC9DiwM252hwvg+hDNgWIzA3CYm4R6vYE=; b=EabR3Ii/XzVD5abY+rXTFUb3zXHpH84fkZSqN1mH7jl61W3XgsX3L+7TOAWV/+mmnn cr0HosPqCZ9nSKXolAsq+fqP2Mauohh9eujhQplGIb0HI9gUgRdDGduIH5rEuJtTZZBf sOyvEqIYHQUCRCf0bI06UE1e4aM1Ht9a9k/ZHNS7L9/ZWHyCLG2iauPafobp7Ma5lCLy M4svOGjkLnwDvpfOe3VBkJLPWdnTL9U9Ctr3yP7/jG6vppwSWCapjG970mIznQHWbSVa +HrI1d1FNSNWuXtAUzWT42yC4nsU/ZzyEAyeJgXmWCkn+DRvWF9f3QR8W96djZ3JSfqk Ir4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6/fLWc53wMuC9DiwM252hwvg+hDNgWIzA3CYm4R6vYE=; b=fx8RlKSfXVkgEQiyceRZycoyYHDvGBrkqLxTN5CAjkhD50+gR+1EqPZXOs5S7kx6AZ rr29jmo5qd6qIQfu4pTv4wqUw8nCErMOHHy9h61iTrjajWyxCiZ0yYD+BdFeRYh9ij2F g5zm7LfWVF7vyuuCJjrGYQzIDRKkTJoHGIUn+Wo4334n18Cymw7zOk5vgPHP+Wa+I/6T u+3DE2MJBP08yOK15GwMK3YFdxCxGzzzo+/rn2qwn+ZUEzorhSXSw6eGkipMyNqEDjK7 IUElXWZWC2UjYXrsjC49+BS/8ly3vW7mMjrFdFULnEe37linZMAwjRdppvMBjlADmwQX 58CQ== X-Gm-Message-State: AE9vXwNc+Q7qzVwlB13HD7w1zV8tT4r2Kpg6u3wGxzVawLujXbqzXZyrdha0KA182kJvqbPH X-Received: by 10.194.123.228 with SMTP id md4mr27428183wjb.78.1475066603968; Wed, 28 Sep 2016 05:43:23 -0700 (PDT) Received: from penelope.horms.nl (52D9BC73.cm-11-1c.dynamic.ziggo.nl. [82.217.188.115]) by smtp.gmail.com with ESMTPSA id g17sm8661670wme.3.2016.09.28.05.43.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Sep 2016 05:43:22 -0700 (PDT) X-CudaMail-Envelope-Sender: simon.horman@netronome.com From: Simon Horman To: netdev@vger.kernel.org, dev@openvswitch.org X-CudaMail-MID: CM-V3-927008235 X-CudaMail-DTE: 092816 X-CudaMail-Originating-IP: 74.125.82.47 Date: Wed, 28 Sep 2016 14:43:02 +0200 X-ASG-Orig-Subj: [##CM-V3-927008235##][PATCH/RFC 12/12] hack: rocker: no ip frag match Message-Id: <1475066582-1971-13-git-send-email-simon.horman@netronome.com> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1475066582-1971-1-git-send-email-simon.horman@netronome.com> References: <1475066582-1971-1-git-send-email-simon.horman@netronome.com> X-GBUdb-Analysis: 0, 74.125.82.47, Ugly c=0.468188 p=-0.319149 Source Normal X-MessageSniffer-Rules: 0-0-0-5227-c X-Barracuda-Connect: UNKNOWN[192.168.14.3] X-Barracuda-Start-Time: 1475066606 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.60 X-Barracuda-Spam-Status: No, SCORE=0.60 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=BSF_SC0_MISMATCH_TO, BSF_SC5_MJ1963, DKIM_SIGNED, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.33289 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS 0.50 BSF_SC5_MJ1963 Custom Rule MJ1963 Cc: Simon Horman Subject: [ovs-dev] [PATCH/RFC 12/12] hack: rocker: no ip frag match X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" *** hack; for informational purposes only; not for upstream merge *** Open vSwitch expects to match on the fragmentation state, however, the of-dpa world of rocker does not implement such a field in its flow key. As a work-around ignore it to allow testing (in the absence of fragments). Signed-off-by: Simon Horman --- drivers/net/ethernet/rocker/rocker_ofdpa.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/rocker/rocker_ofdpa.c b/drivers/net/ethernet/rocker/rocker_ofdpa.c index 3b441359a3a7..2f20f1ded5bf 100644 --- a/drivers/net/ethernet/rocker/rocker_ofdpa.c +++ b/drivers/net/ethernet/rocker/rocker_ofdpa.c @@ -2931,9 +2931,6 @@ static int ofdpa_port_sw_flow_match(struct ofdpa_port *ofdpa_port, return -ENOTSUPP; if (flow->attrs | BIT_ULL(OVS_KEY_ATTR_IPV4)) { - if (mask->ip.frag) - /* There is no IP frag match in OF-DPA */ - return -ENOTSUPP; if (mask->ipv4.addr.src != cpu_to_be32(0) || mask->ipv4.addr.dst != cpu_to_be32(0)) /* Rocker doesn't implement these matches */