[{"id":1767754,"web_url":"http://patchwork.ozlabs.org/comment/1767754/","msgid":"<20170913101212.GA1981@nanopsycho>","list_archive_url":null,"date":"2017-09-13T10:12:12","subject":"Re: [RFC PATCH v3 0/7] tc-flower based cloud filters in i40e","submitter":{"id":15321,"url":"http://patchwork.ozlabs.org/api/people/15321/","name":"Jiri Pirko","email":"jiri@resnulli.us"},"content":"Wed, Sep 13, 2017 at 11:59:13AM CEST, amritha.nambiar@intel.com wrote:\n>This patch series enables configuring cloud filters in i40e\n>using the tc-flower classifier. The only tc-filter action\n>supported is to redirect packets to a traffic class on the\n>same device. The mirror/redirect action is extended to\n>accept a traffic class to achieve this.\n>\n>The cloud filters are added for a VSI and are cleaned up when\n>the VSI is deleted. The filters that match on L4 ports needs\n>enhanced admin queue functions with big buffer support for\n>extended fields in cloud filter commands.\n>\n>Example:\n># tc qdisc add dev eth0 ingress\n>\n># ethtool -K eth0 hw-tc-offload on\n>\n># tc filter add dev eth0 protocol ip parent ffff: prio 1 flower\\\n>  dst_ip 192.168.1.1/32 ip_proto udp dst_port 22\\\n>  skip_sw action mirred ingress redirect dev eth0 tclass 1\n>\n># tc filter show dev eth0 parent ffff:\n>filter protocol ip pref 1 flower chain 0\n>filter protocol ip pref 1 flower chain 0 handle 0x1\n>  eth_type ipv4\n>  ip_proto udp\n>  dst_ip 192.168.1.1\n>  dst_port 22\n>  skip_sw\n>  in_hw\n>        action order 1: mirred (Ingress Redirect to device eth0) stolen tclass 1\n>        index 7 ref 1 bind 1\n>\n>v3: Added an extra patch to clean up white-space noise. Cleaned up\n>some lengthy function names. Used __be32 array for ipv6 address.\n>Used macro for IP version. Minor formatting changes.\n>\n>---\n>\n>Amritha Nambiar (7):\n>      tc_mirred: Clean up white-space noise\n>      sched: act_mirred: Traffic class option for mirror/redirect action\n>      i40e: Map TCs with the VSI seids\n>      i40e: Cloud filter mode for set_switch_config command\n>      i40e: Admin queue definitions for cloud filters\n>      i40e: Clean up of cloud filters\n>      i40e: Enable cloud filters via tc-flower\n\nWould be good to use get_maintainers script and cc people if you want\ncomments.","headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=resnulli-us.20150623.gappssmtp.com\n\theader.i=@resnulli-us.20150623.gappssmtp.com\n\theader.b=\"u6UZW0UV\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xscsb42Rgz9sPm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 13 Sep 2017 20:12:19 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752234AbdIMKMR (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 13 Sep 2017 06:12:17 -0400","from mail-wr0-f176.google.com ([209.85.128.176]:37082 \"EHLO\n\tmail-wr0-f176.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751714AbdIMKMQ (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 13 Sep 2017 06:12:16 -0400","by mail-wr0-f176.google.com with SMTP id k20so27690663wre.4\n\tfor <netdev@vger.kernel.org>; Wed, 13 Sep 2017 03:12:15 -0700 (PDT)","from localhost (ip-89-177-125-82.net.upcbroadband.cz.\n\t[89.177.125.82]) by smtp.gmail.com with ESMTPSA id\n\t137sm1206222wmp.7.2017.09.13.03.12.13\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 13 Sep 2017 03:12:13 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=resnulli-us.20150623.gappssmtp.com; s=20150623;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=y1Iq/Bo0n9gi0VfFUYV0P8PtChWLVwGz7TA3fyv7QjU=;\n\tb=u6UZW0UVsImg3tht+zayvkUrcktTblOYaLByosI1xCXfJaCCVl/5sHsCABOu5H1/D7\n\tLxL4GqnjF4nUA4EmNLTfAYhw5qKyUQiiuiWG1GzTWCAsoXiP1osTSycasgHQihgBWXsv\n\tuODLG39edFuq1KS6kBV1Nbci5+0FTn0I76+/uNPC/DpXtVI9Il3fHyIxee/bGNht5hOa\n\t3auHh9Du7aiPs147buoYOIKuZmZZtWI8DZHx0sJzNG9d5+YEhO2i0lGwlEkrXOHBmRfQ\n\tvgN70QSoi6pCxacCmWdcXHctZ61KnKyKiDLcz+me5GgMS7/Y7Ql9aV++CN1bGV+FhE57\n\tsF6g==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=y1Iq/Bo0n9gi0VfFUYV0P8PtChWLVwGz7TA3fyv7QjU=;\n\tb=CaaScapujU1wXpY39StassYIi/ylPiMZGIqyrrnzFLZX0Z7sRPr3YHjjSlP8rFp/rZ\n\ttTFGGISmKIBX+B9ExiXdsajKuTwW15TgaiSsRJyz3OUoJk9YS3ybP5QKwFB13qZpHrAJ\n\tsnhTRmP52etIq6vU9H1EegJm3KZUE2GhsO4+FE4Cce/bRi4bl2TmOkC9gGh9CXUpO3SL\n\tsS0TM7LbcX+Gkmgu1XZE49jlPAaF1Mm0D3tX8NeH8WRKW15SPEP3z2gFBrpPAet6be22\n\t3yw6DRNJixZkrZiZhcqpuj7y3y+yE5mHDxaEL5xdHme8rd0pucnm4KOwbLI0rYmNre0+\n\tQgBQ==","X-Gm-Message-State":"AHPjjUhALlnl98Pvxh03C55R+bcLhwEYnwPEgK9bzBnAX6ox6Gc8PXbp\n\tg57x4vT9ex+FqPso","X-Google-Smtp-Source":"ADKCNb4kvWj9tuPKNXBzD63cBNC9vdhSpyKMVSpz0mpbfTKA2IK80hBeVMRwW/c1YKFGiejVCMrleg==","X-Received":"by 10.223.133.244 with SMTP id 49mr14191647wru.153.1505297534740;\n\tWed, 13 Sep 2017 03:12:14 -0700 (PDT)","Date":"Wed, 13 Sep 2017 12:12:12 +0200","From":"Jiri Pirko <jiri@resnulli.us>","To":"Amritha Nambiar <amritha.nambiar@intel.com>","Cc":"intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com,\n\talexander.h.duyck@intel.com, netdev@vger.kernel.org","Subject":"Re: [RFC PATCH v3 0/7] tc-flower based cloud filters in i40e","Message-ID":"<20170913101212.GA1981@nanopsycho>","References":"<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>","User-Agent":"Mutt/1.8.3 (2017-05-23)","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"}}]