From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by dpdk.org (Postfix) with ESMTP id D082C58DC for ; Mon, 28 Jul 2014 10:24:52 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 28 Jul 2014 01:26:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,747,1400050800"; d="scan'208";a="462182953" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by azsmga001.ch.intel.com with ESMTP; 28 Jul 2014 01:26:07 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id s6S8Q2HZ022876; Mon, 28 Jul 2014 16:26:02 +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 s6S8PwRZ031179; Mon, 28 Jul 2014 16:26:00 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s6S8PwK9031175; Mon, 28 Jul 2014 16:25:58 +0800 From: Helin Zhang To: dev@dpdk.org Date: Mon, 28 Jul 2014 16:25:49 +0800 Message-Id: <1406535955-31070-1-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH v2 0/6] Support configuring hash functions 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: Mon, 28 Jul 2014 08:24:53 -0000 These pathches mainly support configuring hash functions. In detail, - It can select Toeplitz or simple XOR hash functions. - It can configure symmetric hash functions. * Get/set symmetric hash enable per port. * Get/set symmetric hash enable per 'PCTYPE'. * Get/set filter swap configurations. - 'ethdev' level interfaces are added. * 'is_command_supported', to check if a feature (command) is supported on a port. * 'rx_classification_filter_ctl', a common API to execute specific command of each feature. - Seven commands are implemented in testpmd to support testing above. Note that 'PCTYPE' means 'Packet Classification Type'. Helin Zhang (6): ethdev: rename macros of packet classification type ethdev: add new ops of 'is_command_supported' and 'rx_classification_filter_ctl' i40e: support of 'rx_classification_filter_ctl' i40e: support of 'is_command_supported' i40e: Initialize hash function during port initialization. app/testpmd: add commands for configuring hash functions app/test-pmd/cmdline.c | 579 ++++++++++++++++++++++++++++++++++++ lib/librte_ether/Makefile | 1 + lib/librte_ether/rte_eth_features.h | 73 +++++ lib/librte_ether/rte_ethdev.c | 31 ++ lib/librte_ether/rte_ethdev.h | 131 +++++--- lib/librte_pmd_i40e/Makefile | 6 + lib/librte_pmd_i40e/i40e_ethdev.c | 484 ++++++++++++++++++++++++++++++ lib/librte_pmd_i40e/i40e_ethdev.h | 2 + lib/librte_pmd_i40e/rte_i40e.h | 108 +++++++ 9 files changed, 1377 insertions(+), 38 deletions(-) create mode 100644 lib/librte_ether/rte_eth_features.h create mode 100644 lib/librte_pmd_i40e/rte_i40e.h -- 1.8.1.4