[{"id":1768059,"web_url":"http://patchwork.ozlabs.org/comment/1768059/","msgid":"<20170913101212.GA1981@nanopsycho>","list_archive_url":null,"date":"2017-09-13T10:12:12","subject":"Re: [Intel-wired-lan] [RFC PATCH v3 0/7] tc-flower based cloud\n\tfilters 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":"<intel-wired-lan-bounces@osuosl.org>","X-Original-To":["incoming@patchwork.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (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 whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xspvM4YYlz9s03\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 03:44:31 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 7682A88D9F;\n\tWed, 13 Sep 2017 17:44:29 +0000 (UTC)","from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id xDcnqqkA8Tu4; Wed, 13 Sep 2017 17:44:27 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id DDB2E88D30;\n\tWed, 13 Sep 2017 17:44:27 +0000 (UTC)","from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 663A21BFF5F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:17:52 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 601928896E\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:17:52 +0000 (UTC)","from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 4kTRn8VjoSCV for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:17:51 +0000 (UTC)","from mail-wr0-f179.google.com (mail-wr0-f179.google.com\n\t[209.85.128.179])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 12B45889CF\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:17:50 +0000 (UTC)","by mail-wr0-f179.google.com with SMTP id m18so27751778wrm.2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 03:17:50 -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)"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"delayed 00:05:35 by SQLgrey-1.7.6","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=h6NeYl+1qBeoMLxUbg9qfBAFALjR/fVzGER9akAAVkKqRjG1q5mwjigo1fCSdMRbGf\n\t4vEf8l43wMF0cintTkR5Mq61jevtE9mOmIvLZHhTpTB1dGisl5YWbb+Mare26/djj2ed\n\tB7tvorzFSyNhcnMBdWOrLFLrmINQ9gqh/3+UiG6EbIDU0eKIN8M724yn40QGubi0cheg\n\tk7gIw+uN3WuhcnPstYCbxJds4Dy7x3HsWIiySxtMk7LksYxl0DvvFhqwLEqq2ucXs/My\n\tOwbJOynlRmOKOd3hg0pobvmnQ8GMMO+SXPUSbuTISyIUeY4wJgRc3xQqV81Wh7MST6aZ\n\tLt4Q==","X-Gm-Message-State":"AHPjjUi88GyyNCrYYH6+MKjoiwmCDFMcRZJi9xM/kSoqG2qj/mBroU/+\n\twyMjLSzHChSxAMZz","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>","Message-ID":"<20170913101212.GA1981@nanopsycho>","References":"<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>","User-Agent":"Mutt/1.8.3 (2017-05-23)","X-Mailman-Approved-At":"Wed, 13 Sep 2017 17:44:26 +0000","Cc":"netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org","Subject":"Re: [Intel-wired-lan] [RFC PATCH v3 0/7] tc-flower based cloud\n\tfilters in i40e","X-BeenThere":"intel-wired-lan@osuosl.org","X-Mailman-Version":"2.1.18-1","Precedence":"list","List-Id":"Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>","List-Unsubscribe":"<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>","List-Archive":"<http://lists.osuosl.org/pipermail/intel-wired-lan/>","List-Post":"<mailto:intel-wired-lan@osuosl.org>","List-Help":"<mailto:intel-wired-lan-request@osuosl.org?subject=help>","List-Subscribe":"<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"intel-wired-lan-bounces@osuosl.org","Sender":"\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"}}]