From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 597537CAA for ; Mon, 4 Sep 2017 07:57:50 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2017 22:57:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,473,1498546800"; d="scan'208";a="147809908" Received: from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.182]) by fmsmga006.fm.intel.com with ESMTP; 03 Sep 2017 22:57:37 -0700 From: Zhiyong Yang To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, keith.wiles@intel.com, stephen@networkplumber.org Date: Mon, 4 Sep 2017 13:57:30 +0800 Message-Id: <20170904055734.21354-1-zhiyong.yang@intel.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170809084203.17562-1-zhiyong.yang@intel.com> References: <20170809084203.17562-1-zhiyong.yang@intel.com> Subject: [dpdk-dev] [PATCH v2 0/4] increase port_id range X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2017 05:57:51 -0000 port_id is currently defined as uint8_t, which is limited to the range 0 to 255. A larger range is required for vdev scalability. It is necessary for a redefinition of port_id to extend it from 1 bytes to 2 bytes. All ethdev APIs and usages related to port_id will be changed at the same time. Discussion about port_id is the following thread. http://www.dpdk.org/dev/patchwork/patch/23208/ Changes in V2: 1. cover more PMDs to increase port_id range. 2. cover more examples to increase port_id range. 3. add release note to 2/4 patch. 4. extend RTE_MAX_ETHPORTS by default from 32 to 1024. 5. introduce one mbuf allocation policy in testpmd. Zhiyong Yang (4): ethdev: increase port_id range examples: increase port_id range common_base: extend RTE_MAX_ETHPORTS from 32 to 1024 testpmd: add flexibility to mbuf allocation app/pdump/main.c | 2 +- app/test-eventdev/test_perf_common.h | 6 +- app/test-pmd/cmdline.c | 4 +- app/test-pmd/config.c | 4 +- app/test-pmd/testpmd.c | 89 +++++--- app/test-pmd/testpmd.h | 5 +- config/common_base | 2 +- doc/guides/rel_notes/release_17_11.rst | 4 + drivers/event/octeontx/ssovf_evdev.c | 6 +- drivers/event/octeontx/ssovf_evdev.h | 4 +- drivers/event/skeleton/skeleton_eventdev.c | 4 +- drivers/event/skeleton/skeleton_eventdev.h | 2 +- drivers/event/sw/sw_evdev.c | 4 +- drivers/event/sw/sw_evdev.h | 6 +- drivers/event/sw/sw_evdev_xstats.c | 8 +- drivers/net/af_packet/rte_eth_af_packet.c | 2 +- drivers/net/ark/ark_ethdev.c | 2 +- drivers/net/ark/ark_udm.h | 2 +- drivers/net/avp/avp_ethdev.c | 2 +- drivers/net/bnx2x/bnx2x.c | 11 +- drivers/net/bnx2x/bnx2x_rxtx.h | 4 +- drivers/net/bnx2x/elink.c | 12 +- drivers/net/bnx2x/elink.h | 17 +- drivers/net/bnxt/bnxt.h | 2 +- drivers/net/bnxt/bnxt_ethdev.c | 8 +- drivers/net/bnxt/bnxt_rxq.h | 2 +- drivers/net/bnxt/bnxt_txq.h | 2 +- drivers/net/bnxt/rte_pmd_bnxt.c | 32 +-- drivers/net/bnxt/rte_pmd_bnxt.h | 36 ++-- drivers/net/bonding/rte_eth_bond.h | 42 ++-- drivers/net/bonding/rte_eth_bond_8023ad.c | 6 +- drivers/net/bonding/rte_eth_bond_8023ad_private.h | 6 +- drivers/net/bonding/rte_eth_bond_api.c | 56 ++--- drivers/net/bonding/rte_eth_bond_pmd.c | 30 +-- drivers/net/bonding/rte_eth_bond_private.h | 43 ++-- drivers/net/e1000/em_rxtx.c | 4 +- drivers/net/e1000/igb_rxtx.c | 4 +- drivers/net/failsafe/failsafe_ether.c | 4 +- drivers/net/failsafe/failsafe_private.h | 4 +- drivers/net/fm10k/fm10k.h | 6 +- drivers/net/i40e/i40e_ethdev.c | 5 +- drivers/net/i40e/i40e_rxtx.h | 4 +- drivers/net/i40e/rte_pmd_i40e.c | 50 ++--- drivers/net/i40e/rte_pmd_i40e.h | 48 ++--- drivers/net/ixgbe/ixgbe_ethdev.c | 5 +- drivers/net/ixgbe/ixgbe_rxtx.h | 4 +- drivers/net/ixgbe/rte_pmd_ixgbe.c | 60 +++--- drivers/net/ixgbe/rte_pmd_ixgbe.h | 70 +++--- drivers/net/nfp/nfp_net.c | 26 +-- drivers/net/nfp/nfp_net_pmd.h | 2 +- drivers/net/null/rte_eth_null.c | 2 +- drivers/net/pcap/rte_eth_pcap.c | 2 +- drivers/net/qede/qede_if.h | 2 +- drivers/net/ring/rte_eth_ring.c | 2 +- drivers/net/vhost/rte_eth_vhost.c | 8 +- drivers/net/vhost/rte_eth_vhost.h | 6 +- drivers/net/virtio/virtio_pci.h | 2 +- drivers/net/virtio/virtio_rxtx.h | 6 +- drivers/net/xenvirt/virtqueue.h | 2 +- examples/bond/main.c | 10 +- examples/distributor/main.c | 28 +-- examples/eventdev_pipeline_sw_pmd/main.c | 2 +- examples/exception_path/main.c | 39 ++-- examples/ip_fragmentation/main.c | 33 +-- examples/ip_pipeline/init.c | 4 +- examples/ip_reassembly/main.c | 34 +-- examples/ipv4_multicast/main.c | 34 +-- examples/kni/main.c | 31 +-- examples/l2fwd-cat/l2fwd-cat.c | 12 +- examples/l2fwd-crypto/main.c | 30 +-- examples/l2fwd-jobstats/main.c | 34 +-- examples/l2fwd-keepalive/main.c | 49 ++--- examples/l2fwd/main.c | 49 ++--- examples/l3fwd-acl/main.c | 11 +- examples/l3fwd-power/main.c | 62 +++--- examples/l3fwd-vf/main.c | 53 ++--- examples/l3fwd/l3fwd.h | 10 +- examples/l3fwd/l3fwd_common.h | 2 +- examples/l3fwd/l3fwd_em.c | 2 +- examples/l3fwd/l3fwd_em.h | 6 +- examples/l3fwd/l3fwd_em_hlm.h | 14 +- examples/l3fwd/l3fwd_lpm.c | 17 +- examples/l3fwd/l3fwd_lpm.h | 6 +- examples/l3fwd/l3fwd_lpm_neon.h | 4 +- examples/l3fwd/l3fwd_lpm_sse.h | 4 +- examples/l3fwd/main.c | 30 +-- examples/link_status_interrupt/main.c | 11 +- examples/load_balancer/config.c | 21 +- examples/load_balancer/init.c | 40 ++-- examples/load_balancer/main.h | 11 +- examples/load_balancer/runtime.c | 12 +- .../client_server_mp/mp_client/client.c | 21 +- .../client_server_mp/mp_server/args.c | 4 +- .../client_server_mp/mp_server/args.h | 2 +- .../client_server_mp/mp_server/init.c | 11 +- .../client_server_mp/mp_server/main.c | 2 +- .../multi_process/client_server_mp/shared/common.h | 4 +- examples/multi_process/l2fwd_fork/main.c | 14 +- examples/netmap_compat/lib/compat_netmap.c | 52 +++-- examples/netmap_compat/lib/compat_netmap.h | 2 +- examples/packet_ordering/main.c | 19 +- examples/performance-thread/l3fwd-thread/main.c | 160 +++++++------- examples/ptpclient/ptpclient.c | 4 +- examples/qos_sched/args.c | 12 +- examples/qos_sched/init.c | 31 +-- examples/qos_sched/main.c | 18 +- examples/qos_sched/main.h | 24 ++- examples/qos_sched/stats.c | 16 +- examples/quota_watermark/qw/init.c | 4 +- examples/quota_watermark/qw/main.c | 10 +- examples/rxtx_callbacks/main.c | 8 +- examples/server_node_efd/server/main.c | 2 +- examples/server_node_efd/shared/common.h | 4 +- examples/skeleton/basicfwd.c | 12 +- examples/vhost/main.c | 10 +- lib/librte_bitratestats/rte_bitrate.c | 2 +- lib/librte_bitratestats/rte_bitrate.h | 2 +- lib/librte_ether/rte_ethdev.c | 239 +++++++++++---------- lib/librte_ether/rte_ethdev.h | 238 ++++++++++---------- lib/librte_ether/rte_tm.c | 62 +++--- lib/librte_ether/rte_tm.h | 60 +++--- lib/librte_ether/rte_tm_driver.h | 2 +- lib/librte_eventdev/rte_eventdev.c | 36 ++-- lib/librte_eventdev/rte_eventdev.h | 34 +-- lib/librte_eventdev/rte_eventdev_pmd.h | 8 +- lib/librte_kni/rte_kni.h | 6 +- lib/librte_latencystats/rte_latencystats.c | 12 +- lib/librte_pdump/rte_pdump.c | 16 +- lib/librte_pdump/rte_pdump.h | 4 +- lib/librte_port/rte_port_ethdev.c | 6 +- lib/librte_port/rte_port_ethdev.h | 6 +- 131 files changed, 1389 insertions(+), 1290 deletions(-) -- 2.13.3