From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 3C8907DFF for ; Fri, 26 Sep 2014 16:13:14 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 26 Sep 2014 07:10:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="392033904" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 26 Sep 2014 07:13:17 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s8QEJJOP017941 for ; Fri, 26 Sep 2014 15:19:19 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s8QEJJxT006713 for ; Fri, 26 Sep 2014 15:19:19 +0100 Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id s8QEJJQT006709 for dev@dpdk.org; Fri, 26 Sep 2014 15:19:19 +0100 From: Pablo de Lara To: dev@dpdk.org Date: Fri, 26 Sep 2014 15:19:17 +0100 Message-Id: <1411741159-6671-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH 0/2] Added functions to get RX/TX default configuration 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: Fri, 26 Sep 2014 14:13:16 -0000 These patches add two new API functions to get an optimal values for the RX/TX configuration structures (rte_eth_rxconf and rte_eth_txconf), so users can get these configurations and modify or use them directly, to set up RX/TX queues. Besides, most of the apps that were modifying little or none of the default values of the structures, have been modified to use these functions to simplify the code and avoid duplication. Pablo de Lara (2): pmd: Added rte_eth_rxconf_defaults and rte_eth_txconf defaults functions app: Used rte_eth_rxconf_defaults and rte_eth_txconf_defaults in apps examples/dpdk_qat/main.c | 44 ++----------- examples/exception_path/main.c | 30 +-------- examples/ip_fragmentation/main.c | 42 ++----------- examples/ip_reassembly/main.c | 44 ++----------- examples/ipv4_multicast/main.c | 44 ++----------- examples/kni/main.c | 34 +--------- examples/l2fwd-ivshmem/host/host.c | 43 +----------- examples/l2fwd/main.c | 48 +------------- examples/l3fwd-acl/main.c | 46 ++------------ examples/l3fwd-power/main.c | 46 ++----------- examples/l3fwd-vf/main.c | 31 ++------- examples/l3fwd/main.c | 54 +++------------- examples/link_status_interrupt/main.c | 43 +----------- examples/load_balancer/init.c | 24 +------ .../client_server_mp/mp_server/init.c | 41 +----------- examples/multi_process/l2fwd_fork/main.c | 44 +------------ examples/multi_process/symmetric_mp/main.c | 36 +--------- examples/netmap_compat/bridge/bridge.c | 25 ------- examples/netmap_compat/lib/compat_netmap.c | 6 +- examples/netmap_compat/lib/compat_netmap.h | 2 - examples/qos_meter/main.c | 36 ++++------- examples/quota_watermark/qw/init.c | 26 ++------ examples/vhost_xen/main.c | 31 ++------- examples/vmdq/main.c | 60 ++--------------- examples/vmdq_dcb/main.c | 36 +--------- lib/librte_ether/rte_ethdev.c | 68 ++++++++++++++++++++ lib/librte_ether/rte_ethdev.h | 29 ++++++++ lib/librte_pmd_e1000/igb_ethdev.c | 56 ++++++++++++++++- lib/librte_pmd_i40e/i40e_ethdev.c | 56 ++++++++++++++++ lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 59 +++++++++++++++++ 30 files changed, 385 insertions(+), 799 deletions(-) -- 1.7.7.6