#
592f05b2 |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add RSS flow action
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
c388a2f6 |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: use a macro for the RSS key size
ConnectX 4-5 support only 40 bytes of RSS key, using a compiled size hash key is not necessary.
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.co
net/mlx5: use a macro for the RSS key size
ConnectX 4-5 support only 40 bytes of RSS key, using a compiled size hash key is not necessary.
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
#
cd24d526 |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add mark/flag flow action
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
89464c8e |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add flow TCP item
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
535f686e |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add flow UDP item
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
62b2c4d9 |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add flow IPv6 item
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
4899185f |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add flow IPv4 item
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
109723ed |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add flow VLAN item
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
5747b170 |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add flow stop/start
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
9944ab8a |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: add flow queue action
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
af689f1f |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: support flow Ethernet item along with drop action
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
|
#
2815702b |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: replace verbs priorities by flow
Previous work introduce verbs priorities, whereas the PMD is making translation between Flow priority into Verbs. Rename this to make more sense on what t
net/mlx5: replace verbs priorities by flow
Previous work introduce verbs priorities, whereas the PMD is making translation between Flow priority into Verbs. Rename this to make more sense on what the PMD has to translate.
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
#
78be8852 |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: handle drop queues as regular queues
Drop queues are essentially used in flows due to Verbs API, the information if the fate of the flow is a drop or not is already present in the flow. D
net/mlx5: handle drop queues as regular queues
Drop queues are essentially used in flows due to Verbs API, the information if the fate of the flow is a drop or not is already present in the flow. Due to this, drop queues can be fully mapped on regular queues.
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
#
b42c000e |
| 12-Jul-2018 |
Nelio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: remove flow support
This start a series to re-work the flow engine in mlx5 to easily support flow conversion to Verbs or TC. This is necessary to handle both regular flows and representor
net/mlx5: remove flow support
This start a series to re-work the flow engine in mlx5 to easily support flow conversion to Verbs or TC. This is necessary to handle both regular flows and representors flows.
As the full file needs to be clean-up to re-write all items/actions processing, this patch starts to disable the regular code and only let the PMD to start in isolated mode.
After this patch flow API will not be usable.
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
#
5cffc8b2 |
| 19-Jun-2018 |
Yongseok Koh <yskoh@mellanox.com> |
net/mlx5: fix error number handling
rte_errno should be saved only if error has occurred because rte_errno could have garbage value.
Fixes: a6d83b6a9209 ("net/mlx5: standardize on negative errno va
net/mlx5: fix error number handling
rte_errno should be saved only if error has occurred because rte_errno could have garbage value.
Fixes: a6d83b6a9209 ("net/mlx5: standardize on negative errno values") Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
607fc8e4 |
| 15-May-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
net/mlx5: fix default RSS level
Using inner RSS by default for GRE leads to memory corruption as the extra flow items added for the inner RSS are not counted in the flow attributes buffer size.
Fix
net/mlx5: fix default RSS level
Using inner RSS by default for GRE leads to memory corruption as the extra flow items added for the inner RSS are not counted in the flow attributes buffer size.
Fixing by enforcing the default RSS level to be outer. This much simplify the flow engine and more robust. Future optimization for out of the box RSS can be done on subsequent commits.
Fixes: d4a405186b73 ("net/mlx5: support tunnel RSS level")
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
34511c25 |
| 13-May-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
net/mlx5: fix build without tunnel RSS support
IBV_RX_HASH_INNER should be referenced only when having tunnel support in the Verbs headers.
Fixes: 80f2d0ed7ff9 ("net/mlx5: add hardware flow debug d
net/mlx5: fix build without tunnel RSS support
IBV_RX_HASH_INNER should be referenced only when having tunnel support in the Verbs headers.
Fixes: 80f2d0ed7ff9 ("net/mlx5: add hardware flow debug dump")
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
show more ...
|
#
1f106da2 |
| 15-May-2018 |
Matan Azrad <matan@mellanox.com> |
net/mlx5: support MPLS-in-GRE and MPLS-in-UDP
Add support for MPLS over GRE and MPLS over UDP tunnel types as described in the next RFCs: 1. https://tools.ietf.org/html/rfc4023 2. https://tools.ietf
net/mlx5: support MPLS-in-GRE and MPLS-in-UDP
Add support for MPLS over GRE and MPLS over UDP tunnel types as described in the next RFCs: 1. https://tools.ietf.org/html/rfc4023 2. https://tools.ietf.org/html/rfc7510 3. https://tools.ietf.org/html/rfc4385
Signed-off-by: Matan Azrad <matan@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
8fe576ad |
| 15-May-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
net/mlx5: fix flow director drop rule deletion crash
Drop flow rules are created on the ETH queue even though the parser layer matches the flow rule layer (L3/L4)
Fixes: 6f2f4948b236 ("net/mlx5: fi
net/mlx5: fix flow director drop rule deletion crash
Drop flow rules are created on the ETH queue even though the parser layer matches the flow rule layer (L3/L4)
Fixes: 6f2f4948b236 ("net/mlx5: fix flow director rule deletion crash") Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
show more ...
|
#
df428cee |
| 09-May-2018 |
Yongseok Koh <yskoh@mellanox.com> |
net/mlx5: change device reference for secondary process
rte_eth_devices[] is not shared between primary and secondary process, but a static array to each process. The reverse pointer of device (priv
net/mlx5: change device reference for secondary process
rte_eth_devices[] is not shared between primary and secondary process, but a static array to each process. The reverse pointer of device (priv->dev) is invalid. Instead, priv has the pointer to shared data of the device, struct rte_eth_dev_data *dev_data;
Two macros are added, #define PORT_ID(priv) ((priv)->dev_data->port_id) #define ETH_DEV(priv) (&rte_eth_devices[PORT_ID(priv)])
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
#
b7a7c97a |
| 03-May-2018 |
Nélio Laranjeiro <nelio.laranjeiro@6wind.com> |
net/mlx5: fix flow validation
Item spec and last are wrongly compared to the NIC capability causing a validation failure when the mask is null. This validation function should only verify the user i
net/mlx5: fix flow validation
Item spec and last are wrongly compared to the NIC capability causing a validation failure when the mask is null. This validation function should only verify the user is not configuring unsupported matching fields.
Fixes: 2097d0d1e2cc ("net/mlx5: support basic flow items and actions") Cc: stable@dpdk.org
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
6f2f4948 |
| 26-Apr-2018 |
Adrien Mazarguil <adrien.mazarguil@6wind.com> |
net/mlx5: fix flow director rule deletion crash
Flow director rules matching traffic properties above layer 2 do not target a fixed hash Rx queue (HASH_RXQ_ETH), it actually depends on the highest p
net/mlx5: fix flow director rule deletion crash
Flow director rules matching traffic properties above layer 2 do not target a fixed hash Rx queue (HASH_RXQ_ETH), it actually depends on the highest protocol layer specified by each flow rule.
mlx5_fdir_filter_delete() makes this wrong assumption and causes a crash when attempting to destroy flow rules with L3/L4 specifications.
Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director") Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
fb8fd96d |
| 26-Apr-2018 |
Declan Doherty <declan.doherty@intel.com> |
ethdev: add shared counter to flow API
Add rte_flow_action_count action data structure to enable shared counters across multiple flows on a single port or across multiple flows on multiple ports wit
ethdev: add shared counter to flow API
Add rte_flow_action_count action data structure to enable shared counters across multiple flows on a single port or across multiple flows on multiple ports within the same switch domain. Also this enables multiple count actions to be specified in a single flow action.
This patch also modifies the existing rte_flow_query API to take the rte_flow_action structure as an input parameter instead of the rte_flow_action_type enumeration to allow querying a specific action from a flow rule when multiple actions of the same type are specified.
This patch also contains updates for the bonding, failsafe and mlx5 PMDs and testpmd application which are affected by this API change.
Signed-off-by: Declan Doherty <declan.doherty@intel.com>
show more ...
|
#
bd315bae |
| 23-Apr-2018 |
Xueming Li <xuemingl@mellanox.com> |
net/mlx5: allow flow tunnel ID 0 with outer pattern
Tunnel w/o tunnel id pattern could match any non-tunneled packet, this patch allowed tunnel w/o tunnel id pattern after proper outer spec.
Signed
net/mlx5: allow flow tunnel ID 0 with outer pattern
Tunnel w/o tunnel id pattern could match any non-tunneled packet, this patch allowed tunnel w/o tunnel id pattern after proper outer spec.
Signed-off-by: Xueming Li <xuemingl@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
show more ...
|
#
05dda761 |
| 23-Apr-2018 |
Xueming Li <xuemingl@mellanox.com> |
net/mlx5: introduce VXLAN-GPE tunnel type
Signed-off-by: Xueming Li <xuemingl@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
|