ethdev: increase port id range
authorZhiyong Yang <zhiyong.yang@intel.com>
Fri, 29 Sep 2017 07:17:24 +0000 (15:17 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 6 Oct 2017 16:23:25 +0000 (18:23 +0200)
commitf8244c6399d9fae6afab6770ae367aef38742ea5
tree9861217c70b10fd192462d338900428365aba00a
parent2db978d04ba91e18fc8647f125f4d7b15965c57c
ethdev: increase port id range

Extend port_id definition from uint8_t to uint16_t in lib and drivers
data structures, specifically rte_eth_dev_data. Modify the APIs,
drivers and app using port_id at the same time.

Fix some checkpatch issues from the original code and remove some
unnecessary cast operations.

release_17_11 and deprecation docs have been updated in this patch.

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
142 files changed:
app/pdump/main.c
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/ieee1588fwd.c
app/test-pmd/parameters.c
app/test-pmd/rxonly.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
doc/guides/rel_notes/deprecation.rst
doc/guides/rel_notes/release_17_11.rst
drivers/net/af_packet/rte_eth_af_packet.c
drivers/net/ark/ark_ethdev.c
drivers/net/avp/avp_ethdev.c
drivers/net/bnx2x/bnx2x_rxtx.h
drivers/net/bnxt/Makefile
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_rxq.h
drivers/net/bnxt/bnxt_txq.h
drivers/net/bnxt/rte_pmd_bnxt.c
drivers/net/bnxt/rte_pmd_bnxt.h
drivers/net/bonding/Makefile
drivers/net/bonding/rte_eth_bond.h
drivers/net/bonding/rte_eth_bond_8023ad.c
drivers/net/bonding/rte_eth_bond_8023ad.h
drivers/net/bonding/rte_eth_bond_8023ad_private.h
drivers/net/bonding/rte_eth_bond_alb.c
drivers/net/bonding/rte_eth_bond_alb.h
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/bonding/rte_eth_bond_args.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/bonding/rte_eth_bond_private.h
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/em_rxtx.c
drivers/net/e1000/igb_rxtx.c
drivers/net/failsafe/failsafe_ether.c
drivers/net/failsafe/failsafe_private.h
drivers/net/fm10k/fm10k.h
drivers/net/i40e/Makefile
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_rxtx.h
drivers/net/i40e/rte_pmd_i40e.c
drivers/net/i40e/rte_pmd_i40e.h
drivers/net/ixgbe/Makefile
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_rxtx.h
drivers/net/ixgbe/rte_pmd_ixgbe.c
drivers/net/ixgbe/rte_pmd_ixgbe.h
drivers/net/mlx5/mlx5_rxtx.h
drivers/net/nfp/nfp_net.c
drivers/net/nfp/nfp_net_pmd.h
drivers/net/null/rte_eth_null.c
drivers/net/pcap/rte_eth_pcap.c
drivers/net/qede/qede_if.h
drivers/net/ring/rte_eth_ring.c
drivers/net/szedata2/rte_eth_szedata2.c
drivers/net/thunderx/nicvf_struct.h
drivers/net/vhost/Makefile
drivers/net/vhost/rte_eth_vhost.c
drivers/net/vhost/rte_eth_vhost.h
drivers/net/virtio/virtio_pci.h
drivers/net/virtio/virtio_rxtx.h
drivers/net/vmxnet3/vmxnet3_ring.h
examples/bond/main.c
examples/distributor/main.c
examples/exception_path/main.c
examples/ip_fragmentation/main.c
examples/ip_pipeline/init.c
examples/ip_reassembly/main.c
examples/ipv4_multicast/main.c
examples/kni/main.c
examples/l2fwd-cat/l2fwd-cat.c
examples/l2fwd-jobstats/main.c
examples/l2fwd-keepalive/main.c
examples/l2fwd/main.c
examples/l3fwd-acl/main.c
examples/l3fwd-power/main.c
examples/l3fwd-vf/main.c
examples/l3fwd/l3fwd.h
examples/l3fwd/l3fwd_common.h
examples/l3fwd/l3fwd_em.c
examples/l3fwd/l3fwd_em.h
examples/l3fwd/l3fwd_em_hlm.h
examples/l3fwd/l3fwd_lpm.c
examples/l3fwd/l3fwd_lpm.h
examples/l3fwd/l3fwd_lpm_neon.h
examples/l3fwd/l3fwd_lpm_sse.h
examples/l3fwd/main.c
examples/link_status_interrupt/main.c
examples/load_balancer/config.c
examples/load_balancer/init.c
examples/load_balancer/main.h
examples/load_balancer/runtime.c
examples/multi_process/client_server_mp/mp_client/client.c
examples/multi_process/client_server_mp/mp_server/args.c
examples/multi_process/client_server_mp/mp_server/args.h
examples/multi_process/client_server_mp/mp_server/init.c
examples/multi_process/client_server_mp/mp_server/main.c
examples/multi_process/client_server_mp/shared/common.h
examples/multi_process/l2fwd_fork/main.c
examples/netmap_compat/lib/compat_netmap.c
examples/netmap_compat/lib/compat_netmap.h
examples/packet_ordering/main.c
examples/performance-thread/l3fwd-thread/main.c
examples/ptpclient/ptpclient.c
examples/qos_sched/args.c
examples/qos_sched/init.c
examples/qos_sched/main.c
examples/qos_sched/main.h
examples/qos_sched/stats.c
examples/quota_watermark/qw/init.c
examples/quota_watermark/qw/main.c
examples/rxtx_callbacks/main.c
examples/server_node_efd/server/main.c
examples/server_node_efd/shared/common.h
examples/skeleton/basicfwd.c
examples/vhost/main.c
lib/librte_bitratestats/Makefile
lib/librte_bitratestats/rte_bitrate.c
lib/librte_bitratestats/rte_bitrate.h
lib/librte_ether/Makefile
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_flow.c
lib/librte_ether/rte_flow_driver.h
lib/librte_ether/rte_tm.c
lib/librte_ether/rte_tm.h
lib/librte_ether/rte_tm_driver.h
lib/librte_kni/rte_kni.h
lib/librte_latencystats/rte_latencystats.c
lib/librte_pdump/Makefile
lib/librte_pdump/rte_pdump.c
lib/librte_pdump/rte_pdump.h
lib/librte_port/rte_port_ethdev.c
lib/librte_port/rte_port_ethdev.h
test/test/test_kni.c
test/test/test_link_bonding.c
test/test/test_link_bonding_mode4.c
test/test/test_pmd_perf.c
test/test/test_pmd_ring_perf.c
test/test/virtual_pmd.c
test/test/virtual_pmd.h