From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 2E8925A35 for ; Sat, 26 Mar 2016 02:27:59 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id p65so7259370wmp.1 for ; Fri, 25 Mar 2016 18:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RIjIV3PKSjgXmno+I6mI0dVORX7GqpzgHn/p1ZYbSQ4=; b=xLDuxBjumAZCpQ4V1cvtTyJhfyu0XNYimm10KB+SQZ4g7Izs7ktFzkFa1rG8y58Dzy te8STRmb4bOYwHtazHW2Bki2fsJqdfOpBv+YDpLsiNjuiDWCCw9zivuv2U/mWa5N4cj3 OG/UD6YcD26wIiv4TvUaXRpqpHs3QS8Eu/dv9227Oazcbn6phZlLyYPH3SDzb8BKkPDW VgBhz3+TACsyj5qaiLkZd7ZlEyrtOzhDMJtzI+oN6bbEsJf0m13Gzdh0yNE+Ujm2BCwu ivkPfy2DsrG3DhRVvRry7zIFMQws0YPig8LvCCsKgwNrY0L5VdTqYnwoBakHwG/IILOA xSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RIjIV3PKSjgXmno+I6mI0dVORX7GqpzgHn/p1ZYbSQ4=; b=JilfsYlNCPG55QOI8Oxt2nnXpcFgft7f2JIhm14Zhet2vk15aljugbiqoHIfe4SP5A 7NDRs++Rm5vqbPz2HQr2u0S4vKxEYNrFS7rFQXMGyS5SitvQ/WKDoli/xcguyjQ1rKXs AOO09RHzK1xrYnpaL1JDvnf9l5en5GG3NPWpNiLzhl6LKr387qkyiZ+UihIV9u/mfPOY kAUenQxZ4ZI0e7AHjEcnaPl8mKaM7pi5RnK4gO4mbuekqhWZLzytj/H/7QBkp6UxAa39 ClOkt2JMHg/RZ6850ht8j5LzXt5VUpi1+QY6+RVH/qz8kYOvYkWjkemQytmBYEXiK5Lv DFfw== X-Gm-Message-State: AD7BkJKTKGUddkjzM8o3QTBJAqXjOBdLfU0ql5+xWD+CYNuDFhWc/WrYe6PgTebaO2yj8w== X-Received: by 10.28.17.141 with SMTP id 135mr1173145wmr.48.1458955679009; Fri, 25 Mar 2016 18:27:59 -0700 (PDT) Received: from localhost.localdomain (28.red-88-23-79.staticip.rima-tde.net. [88.23.79.28]) by smtp.gmail.com with ESMTPSA id hh8sm14070113wjc.42.2016.03.25.18.27.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Mar 2016 18:27:58 -0700 (PDT) From: Marc Sune To: Thomas Monjalon , "Xu, Qian Q" , "Xing, Beilei" , "dev@dpdk.org" , "Ananyev, Konstantin" , "Lu, Wenzhuo" , "Richardson, Bruce" , "Glynn, Michael J" Cc: Marc Sune Date: Sat, 26 Mar 2016 02:27:12 +0100 Message-Id: <1458955640-22951-1-git-send-email-marcdevel@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458934950-23333-1-git-send-email-thomas.monjalon@6wind.com> References: <1458934950-23333-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH v13 0/8] ethdev: 100G and link speed API refactoring 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: Sat, 26 Mar 2016 01:27:59 -0000 There are still too few tests and reviews, especially for autonegotiation with Intel devices (patch #6). I would not be surprised to see some bugs in this rework. The capabilities must be adapted per device. It can be improved in a separate patch. It will be integrated in 16.04-rc3. Please test and review shortly, thanks! -------- This series of patches adds the following capabilities: * speed_capa bitmap in rte_eth_dev_info, which is filled by the PMDs according to the physical device capabilities. * refactors link API in ethdev to allow the definition of the advertised link speeds, fix speed (no auto-negociation) or advertise all supported speeds (default). -------- v13: - Fix startup regression; revert flip of ETH_LINK_SPEED_FIXED and ETH_LINK_SPEED_AUTONEG values. ETH_LINK_SPEED_AUTONEG is now 0. - Fix incorrect duplex link reporting for e1000. - Do not allow more than one speed in the bitmap when ETH_LINK_SPEED_FIXED is used for e1000. v12: - rebase on 16.04-rc2 - fix mlx capabilities - update ENA driver v11: - rebase on 16.04-rc1 - replace on more link status value in e1000 driver - merge szedata2 patches - remove szedata2 temporary comments in code and doc v10: - rebase - rework release notes - rearrange patch splitting - fix doxygen comments - fix typos - removed log format of link.link_speed as %d (keep %u) - complete ETH_LINK_[DOWN/UP] replacement from 0/1 - change ETH_LINK_SPEED_AUTONEG to 1 - replace ETH_LINK_SPEED_NEG by ETH_LINK_SPEED_AUTONEG (1) - replace ETH_LINK_SPEED_NO_AUTONEG by ETH_LINK_SPEED_FIXED (0) - rework rte_eth_speed_to_bm_flag to rte_eth_speed_bitflag - complete 100G support in testpmd v9: rebased to current HEAD. Reverted numeric speed to 32 bit in struct rte_eth_link (no atomic link get > 64bit). Fixed mlx5 driver compilation and link speeds. Moved documentation to release_16_04.rst and fixed several issues. Upgrade NIC notes with speed capabilities. v8: Rebased to current HEAD. Modified em driver impl. to not touch base files. Merged patch 5 into 3 (map file). Changed numeric speed to a 64 bit value. Filled-in speed capabilities for drivers bnx2x, cxgbe, mlx5 and nfp in addition to the ones of previous patch sets. v7: Rebased to current HEAD. Moved documentation to v2.3. Still needs testing from PMD maintainers. v6: Move link_duplex to be part of bitfield. Fixed i40 autoneg flag link update code. Added rte_eth_speed_to_bm_flag() to .map file. Fixed other spelling issues. Rebased to current HEAD. v5: revert to v2 speed capabilities patch. Fixed MLX4 speed capabilities (thanks N. Laranjeiro). Refactored link speed API to allow setting advertised speeds (3/4). Added NO_AUTONEG option to explicitely disable auto-negociation. Updated 2.2 rel. notes (4/4). Rebased to current HEAD. v4: fixed errata in the documentation of field speeds of rte_eth_conf, and commit 1/2 message. rebased to v2.1.0. v3 was incorrectly based on ~2.1.0-rc1. v3: rebase to v2.1. unified ETH_LINK_SPEED and ETH_SPEED_CAP into ETH_SPEED. Converted field speed in struct rte_eth_conf to speed, to allow a bitmap for defining the announced speeds, as suggested M. Brorup. Fixed spelling issues. v2: rebase, converted speed_capa into 32 bits bitmap, fixed alignment (checkpatch). Marc Sune (6): ethdev: use constants for link duplex app/testpmd: move speed and duplex parsing in a function ethdev: rename link speed constants ethdev: add speed capabilities ethdev: redesign link speed config ethdev: convert speed number to bitmap flag Thomas Monjalon (2): ethdev: use constants for link state ethdev: add 100G link speed app/test-pipeline/init.c | 2 +- app/test-pmd/cmdline.c | 125 ++++++++++----------- app/test-pmd/testpmd.c | 2 +- app/test/test_pmd_perf.c | 2 +- app/test/virtual_pmd.c | 8 +- doc/guides/nics/overview.rst | 1 + doc/guides/nics/szedata2.rst | 6 - doc/guides/rel_notes/deprecation.rst | 3 - doc/guides/rel_notes/release_16_04.rst | 22 ++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +- drivers/net/af_packet/rte_eth_af_packet.c | 9 +- drivers/net/bnx2x/bnx2x_ethdev.c | 7 +- drivers/net/bnx2x/elink.c | 2 +- drivers/net/bonding/rte_eth_bond_8023ad.c | 14 +-- drivers/net/bonding/rte_eth_bond_api.c | 4 +- drivers/net/bonding/rte_eth_bond_pmd.c | 12 +- drivers/net/cxgbe/base/t4_hw.c | 8 +- drivers/net/cxgbe/cxgbe_ethdev.c | 1 + drivers/net/e1000/em_ethdev.c | 117 +++++++++---------- drivers/net/e1000/igb_ethdev.c | 105 +++++++++-------- drivers/net/ena/ena_ethdev.c | 12 +- drivers/net/fm10k/fm10k_ethdev.c | 6 +- drivers/net/i40e/i40e_ethdev.c | 76 +++++++------ drivers/net/i40e/i40e_ethdev_vf.c | 11 +- drivers/net/ixgbe/ixgbe_ethdev.c | 81 +++++++------ drivers/net/mlx4/mlx4.c | 8 ++ drivers/net/mlx5/mlx5_ethdev.c | 11 ++ drivers/net/mpipe/mpipe_tilegx.c | 18 +-- drivers/net/nfp/nfp_net.c | 6 +- drivers/net/null/rte_eth_null.c | 9 +- drivers/net/pcap/rte_eth_pcap.c | 9 +- drivers/net/ring/rte_eth_ring.c | 13 ++- drivers/net/szedata2/rte_eth_szedata2.c | 19 ++-- drivers/net/vhost/rte_eth_vhost.c | 6 +- drivers/net/virtio/virtio_ethdev.c | 8 +- drivers/net/virtio/virtio_ethdev.h | 2 - drivers/net/vmxnet3/vmxnet3_ethdev.c | 5 +- drivers/net/xenvirt/rte_eth_xenvirt.c | 9 +- examples/exception_path/main.c | 2 +- examples/ip_fragmentation/main.c | 2 +- examples/ip_pipeline/config_parse.c | 3 +- examples/ip_pipeline/init.c | 2 +- examples/ip_reassembly/main.c | 2 +- examples/ipsec-secgw/ipsec-secgw.c | 2 +- examples/ipv4_multicast/main.c | 2 +- examples/kni/main.c | 2 +- examples/l2fwd-crypto/main.c | 2 +- examples/l2fwd-ivshmem/host/host.c | 2 +- examples/l2fwd-jobstats/main.c | 2 +- examples/l2fwd-keepalive/main.c | 2 +- examples/l2fwd/main.c | 2 +- examples/l3fwd-acl/main.c | 2 +- examples/l3fwd-power/main.c | 2 +- examples/l3fwd/main.c | 2 +- examples/link_status_interrupt/main.c | 2 +- examples/load_balancer/init.c | 2 +- .../client_server_mp/mp_server/init.c | 2 +- examples/multi_process/l2fwd_fork/main.c | 2 +- examples/multi_process/symmetric_mp/main.c | 2 +- examples/performance-thread/l3fwd-thread/main.c | 2 +- lib/librte_ether/rte_ethdev.c | 33 ++++++ lib/librte_ether/rte_ethdev.h | 91 +++++++++++---- lib/librte_ether/rte_ether_version.map | 1 + 63 files changed, 543 insertions(+), 388 deletions(-) -- 2.1.4