#
19b16e2f |
| 11-Mar-2016 |
Helin Zhang <helin.zhang@intel.com> |
ethdev: add vlan type when setting ether type
In order to set ether type of VLAN for single VLAN, inner and outer VLAN, the VLAN type as an input parameter is added to 'rte_eth_dev_set_vlan_ether_ty
ethdev: add vlan type when setting ether type
In order to set ether type of VLAN for single VLAN, inner and outer VLAN, the VLAN type as an input parameter is added to 'rte_eth_dev_set_vlan_ether_type()'. In addition, corresponding changes in e1000, ixgbe and i40e are also added.
It is an ABI break but ethdev library is already bumped for 16.04.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
6a34f916 |
| 05-Feb-2016 |
Wang Xiao W <xiao.w.wang@intel.com> |
app/testpmd: fix error message when setting Tx VLAN
When using testpmd, sometimes we forget the right order of port_id and vid in "tx_vlan set (port_id) vlan_id[, vlan_id_outer]\n" command, and inpu
app/testpmd: fix error message when setting Tx VLAN
When using testpmd, sometimes we forget the right order of port_id and vid in "tx_vlan set (port_id) vlan_id[, vlan_id_outer]\n" command, and input "tx_vlan set 51 0", we'll get a strange prompt saying "Error, as QinQ has been enabled.".
In cmd_tx_vlan_set_parsed function, the first thing we do is checking the port's vlan_offload capability, rather than checking validity of the port_id, therefore if it's an invalid port_id we'll get the above wrong message. We should always make sure that we get a valid port_id before we do other things.
It's the similar issue for cmd_tx_vlan_set_qinq_parsed function.
Fixes: 92ebda07ee58 ("app/testpmd: add qinq stripping and insertion")
Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
693f715d |
| 27-Jan-2016 |
Huawei Xie <huawei.xie@intel.com> |
remove extra parentheses in return statement
fix the error reported by checkpatch: "ERROR: return is not a function, parentheses are not required"
remove parentheses in return like: "return (lo
remove extra parentheses in return statement
fix the error reported by checkpatch: "ERROR: return is not a function, parentheses are not required"
remove parentheses in return like: "return (logical expressions)"
remove parentheses in return a function like: "return (rte_mempool_lookup(...))"
Fixes: 6307b909b8e0 ("lib: remove extra parenthesis after return")
Signed-off-by: Huawei Xie <huawei.xie@intel.com>
show more ...
|
#
d536ac17 |
| 15-Dec-2015 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: fix dead code
Coverity issue (CID 119254): Control flow issues (DEADCODE).
Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic class")
Signed-off-by: Jingjing Wu
app/testpmd: fix dead code
Coverity issue (CID 119254): Control flow issues (DEADCODE).
Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic class")
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: John McNamara <john.mcnamara@intel.com>
show more ...
|
#
f72a0fa6 |
| 06-Nov-2015 |
Stephen Hemminger <stephen@networkplumber.org> |
app/testpmd: remove references to deprecated statistics
Some of the statistics are deprecated, so don't test them.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
#
79bec05b |
| 10-Nov-2015 |
Konstantin Ananyev <konstantin.ananyev@intel.com> |
app/testpmd: add ability to split outgoing packets
For CSUM forwarding mode add ability to copy & split outgoing packet into the new mbuf that consists of multiple segments. For TXONLY and CSUM forw
app/testpmd: add ability to split outgoing packets
For CSUM forwarding mode add ability to copy & split outgoing packet into the new mbuf that consists of multiple segments. For TXONLY and CSUM forwarding modes add ability to make number of segments in the outgoing packet to vary on a per packet basis. Number of segments and size of each segment is controlled by 'set txpkts' command. Split policy is controlled by 'set txsplit' command. Possible values are: on | off | rand. Tha allows to increase test coverage for TX PMD codepaths.
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
695ae278 |
| 29-Oct-2015 |
David Marchand <david.marchand@6wind.com> |
app/testpmd: fix icmp echo Tx queues
icmp echo forward engine relies on the core rank rather than the number of queues available. This fix is still wrong, because if we set a nb-rxq > nb-txq, then w
app/testpmd: fix icmp echo Tx queues
icmp echo forward engine relies on the core rank rather than the number of queues available. This fix is still wrong, because if we set a nb-rxq > nb-txq, then we will use an invalid txq, but with this, we are aligned on other fwd engines.
Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
ab3257e1 |
| 27-Oct-2015 |
Konstantin Ananyev <konstantin.ananyev@intel.com> |
app/testpmd: add command to display queue info
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Acked-by: Remy Horton <remy.horton@intel.com>
|
#
cd80f411 |
| 31-Oct-2015 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: add command to display DCB info
This patch adds a command to display DCB info in ports.
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com>
app/testpmd: add command to display DCB info
This patch adds a command to display DCB info in ports.
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
show more ...
|
#
1a572499 |
| 31-Oct-2015 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: setup DCB forwarding based on traffic class
This patch changes the testpmd DCB forwarding stream to make it based on traffic class. It also fixes some coding style issues.
Signed-off-b
app/testpmd: setup DCB forwarding based on traffic class
This patch changes the testpmd DCB forwarding stream to make it based on traffic class. It also fixes some coding style issues.
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
show more ...
|
#
f2f954a8 |
| 30-Oct-2015 |
Adrien Mazarguil <adrien.mazarguil@6wind.com> |
app/testpmd: fix missing init in RSS hash show command
The "show port X rss-hash" command sometimes displays garbage instead of the expected RSS hash key because the maximum key length is undefined.
app/testpmd: fix missing init in RSS hash show command
The "show port X rss-hash" command sometimes displays garbage instead of the expected RSS hash key because the maximum key length is undefined. When the requested key is too large to fit in the buffer, rte_eth_dev_rss_hash_conf_get() does not update it.
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
8205e241 |
| 30-Oct-2015 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
app/testpmd: add missing type to RSS hash commands
DPDK uses a structure to get or set a new hash key (see eth_rte_rss_hash_conf). rss_hf field from this structure is used in rss_hash_get_conf to r
app/testpmd: add missing type to RSS hash commands
DPDK uses a structure to get or set a new hash key (see eth_rte_rss_hash_conf). rss_hf field from this structure is used in rss_hash_get_conf to retrieve the hash key and in rss_hash_update uses it to verify the key exists before trying to update it.
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
bf2e60bd |
| 26-Oct-2015 |
Wenzhuo Lu <wenzhuo.lu@intel.com> |
app/testpmd: show new flow director modes
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the sup
app/testpmd: show new flow director modes
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the supported flow type is meaningless for mac vlan and tunnel modes. So, we output different thing for different mode.
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
78ef434a |
| 28-Jul-2015 |
Michael Qiu <michael.qiu@intel.com> |
app/testpmd: fix crash when port id out of bound
In testpmd, when using "rx_vlan add 1 77", it will be a segment fault Because the port ID should be less than 32.
Fixes: edab33b1c01d ("app/testpmd:
app/testpmd: fix crash when port id out of bound
In testpmd, when using "rx_vlan add 1 77", it will be a segment fault Because the port ID should be less than 32.
Fixes: edab33b1c01d ("app/testpmd: support port hotplug")
Signed-off-by: Michael Qiu <michael.qiu@intel.com>
show more ...
|
#
0e3f2317 |
| 12-Jun-2015 |
Helin Zhang <helin.zhang@intel.com> |
app/testpmd: show the hash key size
As querying hash key size in byte was supported, it can be shown in testpmd after getting the device information if not zero.
Signed-off-by: Helin Zhang <helin.z
app/testpmd: show the hash key size
As querying hash key size in byte was supported, it can be shown in testpmd after getting the device information if not zero.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
92ebda07 |
| 11-Jun-2015 |
Helin Zhang <helin.zhang@intel.com> |
app/testpmd: add qinq stripping and insertion
If double vlan is detected, its stripped flag and vlan tags can be printed on rxonly mode. Test command of 'tx_vlan set' is expanded to set both single
app/testpmd: add qinq stripping and insertion
If double vlan is detected, its stripped flag and vlan tags can be printed on rxonly mode. Test command of 'tx_vlan set' is expanded to set both single and double vlan tags on TX side for each packets to be sent out.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com>
show more ...
|
#
8fff6675 |
| 28-May-2015 |
Ivan Boule <ivan.boule@6wind.com> |
app/testpmd: new command to add/remove multicast MAC addresses
Add the new interactive command: mcast_addr add|remove X <mcast_addr> to add/remove the multicast MAC address <mcast_addr> to/from
app/testpmd: new command to add/remove multicast MAC addresses
Add the new interactive command: mcast_addr add|remove X <mcast_addr> to add/remove the multicast MAC address <mcast_addr> to/from the set of multicast addresses filtered by port <X>. Command used to test the function "rte_eth_dev_set_mc_addr_list" that has been added to the API of PMDs.
Signed-off-by: Ivan Boule <ivan.boule@6wind.com>
show more ...
|
#
ff708fac |
| 04-Mar-2015 |
David Marchand <david.marchand@6wind.com> |
tailq: remove unneeded inclusions
Only keep inclusion where really needed.
Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
|
#
64b01ee0 |
| 20-Feb-2015 |
Michal Jastrzebski <michalx.k.jastrzebski@intel.com> |
app/testpmd: check vlan filter configuration
This patch modifies testpmd behavior when setting: rx_vlan add all vf_port (enabling all vlanids to be passed thru rx filter on VF). Rx_vlan_all_filter_s
app/testpmd: check vlan filter configuration
This patch modifies testpmd behavior when setting: rx_vlan add all vf_port (enabling all vlanids to be passed thru rx filter on VF). Rx_vlan_all_filter_set() function, checks if the next vlanid can be enabled by the driver. Number of vlanids is limited by the NIC and thus the NIC do not allow to enable more vlanids than it can allocate in VFTA table.
Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
4468635f |
| 09-Mar-2015 |
Michael Qiu <michael.qiu@intel.com> |
app/testpmd: forbid actions on invalid port
Currently, if try to start/stop/close one invalid port, no error shows in testpmd. This is a bug, need check the port number.
Signed-off-by: Michael Qiu
app/testpmd: forbid actions on invalid port
Currently, if try to start/stop/close one invalid port, no error shows in testpmd. This is a bug, need check the port number.
Signed-off-by: Michael Qiu <michael.qiu@intel.com> Acked-by: Tetsuya Mukawa <mukawa@igel.co.jp>
show more ...
|
#
edab33b1 |
| 25-Feb-2015 |
Tetsuya Mukawa <mukawa@igel.co.jp> |
app/testpmd: support port hotplug
The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: attaching a port - detach: detaching a port - ident: pci address
app/testpmd: support port hotplug
The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: attaching a port - detach: detaching a port - ident: pci address of physical device. Or device name and parameters of virtual device. (ex. 0000:02:00.0, eth_pcap0,iface=eth0) - port_id: port identifier
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
#
00472f23 |
| 04-Feb-2015 |
Helin Zhang <helin.zhang@intel.com> |
app/testpmd: fix some indent
Added code style fixes.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com>
|
#
b12964f6 |
| 04-Feb-2015 |
Helin Zhang <helin.zhang@intel.com> |
ethdev: unification of RSS offload types
RSS offload types were defined separately for 1/10G and 40G NICs, and have no relationship with flow types. The modifications are to unify all RSS offload ty
ethdev: unification of RSS offload types
RSS offload types were defined separately for 1/10G and 40G NICs, and have no relationship with flow types. The modifications are to unify all RSS offload types for all PMDs. Unified RSS offload types have new and common names which can be used for any PMD or applications, and decouple from specific hardwares.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com> [Thomas: merge with fm10k] Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
7fa96d69 |
| 04-Feb-2015 |
Helin Zhang <helin.zhang@intel.com> |
ethdev: unification of flow types
Flow types was defined actually for i40e hardware specifically, and wasn't able to be used for defining RSS offload types of all PMDs. It removed the enum flow type
ethdev: unification of flow types
Flow types was defined actually for i40e hardware specifically, and wasn't able to be used for defining RSS offload types of all PMDs. It removed the enum flow types, and uses macros instead with new names. The new macros can be used for defining RSS offload types later. Also modifications are made in i40e and testpmd accordingly.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com> [Thomas: merge with new flow director API] Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
990d3703 |
| 10-Feb-2015 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: new commands for ntuple filter
Following commands of 5tuple and 2tuple filter are removed: - add_2tuple_filter (port_id) protocol (pro_value) (pro_mask) dst_port (port_value) (port_
app/testpmd: new commands for ntuple filter
Following commands of 5tuple and 2tuple filter are removed: - add_2tuple_filter (port_id) protocol (pro_value) (pro_mask) dst_port (port_value) (port_mask) flags (flg_value) priority (prio_value) queue (queue_id) index (idx) - remove_2tuple_filter (port_id) index (idx) - get_2tuple_filter (port_id) index (idx) - add_5tuple_filter (port_id) dst_ip (dst_address) src_ip (src_address) dst_port (dst_port_value) src_port (src_port_value) protocol (protocol_value) mask (mask_value) flags (flags_value) priority (prio_value)" queue (queue_id) index (idx) - remove_5tuple_filter (port_id) index (idx) - get_5tuple_filter (port_id) index (idx)
New commands are added for 5tuple and 2tuple filter by using filter_ctrl API and new ntuple filter structure: - 2tuple_filter (port_id) (add|del) dst_port (dst_port_value) protocol (protocol_value) mask (mask_value) tcp_flags (tcp_flags_value) priority (prio_value) queue (queue_id) - 5tuple_filter (port_id) (add|del) dst_ip (dst_address) src_ip (src_address) dst_port (dst_port_value) src_port (src_port_value) protocol (protocol_value) mask (mask_value) tcp_flags (tcp_flags_value) priority (prio_value) queue (queue_id)
Test report: http://dpdk.org/ml/archives/dev/2015-February/013049.html
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Tested-by: Huilong Xu <huilongx.xu@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|