From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 354F7902 for ; Tue, 29 Sep 2015 07:31:29 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 28 Sep 2015 22:31:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,606,1437462000"; d="scan'208";a="654109359" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 28 Sep 2015 22:31:27 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t8T5VQWR018924 for ; Tue, 29 Sep 2015 13:31:26 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t8T5VMbZ017787 for ; Tue, 29 Sep 2015 13:31:24 +0800 Received: (from wenzhuol@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t8T5VMQT017783 for dev@dpdk.org; Tue, 29 Sep 2015 13:31:22 +0800 From: Wenzhuo Lu To: dev@dpdk.org Date: Tue, 29 Sep 2015 13:31:16 +0800 Message-Id: <1443504682-17752-1-git-send-email-wenzhuo.lu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1443161125-1035-1-git-send-email-wenzhuo.lu@intel.com> References: <1443161125-1035-1-git-send-email-wenzhuo.lu@intel.com> Subject: [dpdk-dev] [PATCH v2 0/6] Support new flow director modes on Intel x550 NIC X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 05:31:29 -0000 This patch set adds 2 new flow director modes on Intel x550 NIC. The 2 new fdir modes are mac vlan mode and tunnel mode. The mac vlan mode can direct the flow based on the MAC address and VLAN TCI. The tunnel mode provides the support for VxLAN and NVGRE. x550 can recognize VxLAN and NVGRE packets, and direct the packets based on the MAC address, VLAN TCI, TNI/VNI. Surely, the MAC address, VLAN TCI, TNI/VNI can be masked, so, the flow can be directed based on the left conditions. For example, if we want to direct the flow based on the MAC address, we can use mac vlan mode with VLAN TCI masked. Now, only x550 supports these 2 modes. We should not use the new mode on other NICs. If so, the ports will not be initialized successfully. V2: Change the word 'cloud' to 'tunnel' change 'tni_vni' to 'tunnel_id' Wenzhuo Lu (6): lib/librte_ether: modify the structures for fdir new modes app/testpmd: initialize the new fields for fdir mask app/testpmd: new fdir modes for testpmd parameter app/testpmd: modify the output of the CLI show port fdir app/testpmd: modify and add fdir filter and mask CLIs for new modes ixgbe: implementation for fdir new modes' config app/test-pmd/cmdline.c | 293 +++++++++++++++++++++++++++++++++++++-- app/test-pmd/config.c | 44 ++++-- app/test-pmd/parameters.c | 7 +- app/test-pmd/testpmd.c | 3 + drivers/net/ixgbe/ixgbe_ethdev.h | 3 + drivers/net/ixgbe/ixgbe_fdir.c | 241 ++++++++++++++++++++++++++------ lib/librte_ether/rte_eth_ctrl.h | 69 ++++++--- 7 files changed, 570 insertions(+), 90 deletions(-) -- 1.9.3