[dpdk-dev] [PATCH v3 1/2] app/testpmd: add VXLAN encap/decap support

2018-06-18 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 129

[dpdk-dev] [PATCH v3 2/2] app/testpmd: add NVGRE encap/decap support

2018-06-18 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 113

[dpdk-dev] [PATCH v3 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-06-18 Thread Nelio Laranjeiro
. - replace VXLAN to NVGRE in comments concerning NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app/testpmd: add NVGRE encap/decap support app/test-pmd/cmdline.c | 242 ++ app/test-pmd/cmdline_flow.c | 268

[dpdk-dev] [PATCH v2 1/2] app/testpmd: add VXLAN encap/decap support

2018-06-18 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 90

[dpdk-dev] [PATCH v2 2/2] app/testpmd: add NVGRE encap/decap support

2018-06-18 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 79

[dpdk-dev] [PATCH v2 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-06-18 Thread Nelio Laranjeiro
release. [1] https://dpdk.org/ml/archives/dev/2018-May/101403.html [2] https://dpdk.org/ml/archives/dev/2018-June/103485.html Changes in v2: - add default IPv6 values for NVGRE encapsulation. - replace VXLAN to NVGRE in comments concerning NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add

[dpdk-dev] [PATCH 1/2] app/testpmd: add VXLAN encap/decap support

2018-06-14 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 90

[dpdk-dev] [PATCH 2/2] app/testpmd: add NVGRE encap/decap support

2018-06-14 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 79

[dpdk-dev] [PATCH 0/2] implement VXLAN/NVGRE Encap/Decap in testpmd

2018-06-14 Thread Nelio Laranjeiro
release. [1] https://dpdk.org/ml/archives/dev/2018-May/101403.html [2] https://dpdk.org/ml/archives/dev/2018-June/103485.html Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app/testpmd: add NVGRE encap/decap support app/test-pmd/cmdline.c | 169

[dpdk-dev] [PATCH v2] net/mlx5: clean-up developer logs

2018-06-05 Thread Nelio Laranjeiro
logs, move the Maintainers ones under DEBUG and also move dump into debug mode only. Signed-off-by: Nelio Laranjeiro --- Changes in v2: remove even more developer logs. --- drivers/net/mlx5/mlx5_mr.c | 119 +++- drivers/net/mlx5/mlx5_mr.h | 5 +- drivers

[dpdk-dev] [PATCH v2] ethdev: add flow API to expand RSS flows

2018-06-05 Thread Nelio Laranjeiro
- eth - eth / ipv4 / udp - eth / ipv6 / udp to match the user request. Some drivers are unable to reach such request without this expansion, this API is there to help those. Only PMD should use such API for their internal cooking, the application will still handle a single flow. Signed-off-

[dpdk-dev] [PATCH] app/testpmd: fix missing count action fields

2018-05-31 Thread Nelio Laranjeiro
om Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline_flow.c | 29 +++-- lib/librte_ethdev/rte_flow.c | 2 +- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index

[dpdk-dev] [DPDK 18.08 v1 12/12] net/mlx5: add RSS flow action

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 681 +-- 1 file changed, 484 insertions(+), 197 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 4ef0a3fee..27354615f 100644 --- a/drivers/net/mlx5

[dpdk-dev] [DPDK 18.08 v1 11/12] net/mlx5: add mark/flag flow action

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 156 +++ 1 file changed, 156 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index ce1b4e94b..4ef0a3fee 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [DPDK 18.08 v1 08/12] net/mlx5: add flow IPv6 item

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 103 +++ 1 file changed, 103 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 003c4aadd..6f3e50452 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [DPDK 18.08 v1 09/12] net/mlx5: add flow UDP item

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 55 1 file changed, 55 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6f3e50452..66ebe6d36 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [DPDK 18.08 v1 10/12] net/mlx5: add flow TCP item

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 55 1 file changed, 55 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 66ebe6d36..ce1b4e94b 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [DPDK 18.08 v1 07/12] net/mlx5: add flow IPv4 item

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 78 1 file changed, 78 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index ed27914aa..003c4aadd 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [DPDK 18.08 v1 06/12] net/mlx5: add flow VLAN item

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 114 +++ 1 file changed, 114 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 8c6309188..ed27914aa 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [DPDK 18.08 v1 01/12] net/mlx5: remove flow support

2018-05-28 Thread Nelio Laranjeiro
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 --- drivers/net/mlx5/mlx5_flow.c | 2958 +- 1 file changed, 80 insertions(+), 2878 deletions(-) diff --git a/drivers/net/mlx5

[dpdk-dev] [DPDK 18.08 v1 05/12] net/mlx5: add flow stop/start

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 3e16f67d6..8c6309188 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [DPDK 18.08 v1 03/12] net/mlx5: support flow Ethernet item among with drop action

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 676 --- 1 file changed, 634 insertions(+), 42 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6497e99c1..85dc5edaf 100644 --- a/drivers/net/mlx5

[dpdk-dev] [DPDK 18.08 v1 02/12] net/mlx5: handle drop queues are regular queues

2018-05-28 Thread Nelio Laranjeiro
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 --- drivers/net/mlx5/mlx5.c | 9

[dpdk-dev] [DPDK 18.08 v1 04/12] net/mlx5: add flow queue action

2018-05-28 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 83 +--- 1 file changed, 77 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 85dc5edaf..3e16f67d6 100644 --- a/drivers/net/mlx5

[dpdk-dev] [DPDK 18.08 v1 00/12] net/mlx5: flow rework

2018-05-28 Thread Nelio Laranjeiro
will be added in further versions. Expected for the next 18.08 release: - same level of features, - TC flow support for port redirection, - TC filter support for ENCAP/DECAP and PUSH/POP. [1] https://dpdk.org/dev/patchwork/patch/40462/ Nelio Laranjeiro (12): net/mlx5: remove flow support net

[dpdk-dev] [DPDK 18.08] ethdev: add flow API to expand RSS flows

2018-05-28 Thread Nelio Laranjeiro
- eth - eth / ipv4 / udp - eth / ipv6 / udp to match the user request. Some drivers are unable to reach such request without this expansion, this API is there to help those. Only PMD should use such API for their internal cooking, the application will still handle a single flow. Signed-off-

[dpdk-dev] [PATCH] net/mlx5: clean-up developer logs

2018-05-28 Thread Nelio Laranjeiro
logs, move the Maintainers ones under DEBUG and also move dump into debug mode only. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_mr.c | 119 +++- drivers/net/mlx5/mlx5_mr.h | 5 +- drivers/net/mlx5/mlx5_rxq.c | 36 +- drivers/net

[dpdk-dev] [PATCH v2] net/mlx5: fix flow validation

2018-05-03 Thread Nelio Laranjeiro
;) Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro --- Changes in v2: - Simplify verification by testing only item->mask and item->last. - add a comment to explain the loop verification. --- drivers/net/mlx5/mlx5_flow.c | 77 1 file changed, 25 i

[dpdk-dev] [PATCH] net/mlx5: fix: flow validation

2018-05-02 Thread Nelio Laranjeiro
;) Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 73 +++- 1 file changed, 22 insertions(+), 51 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 129311d50..5d4995783 100644 --- a/driver

[dpdk-dev] [PATCH v3 2/3] net/mlx5: split MAC address add/remove code

2018-04-23 Thread Nelio Laranjeiro
Move some code in DPDK callbacks to add/remove MAC addresses to internal function. This modification will be necessary to handle implement the devop set_mc_addr_list. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_defs.h | 4 +- drivers/net/mlx5/mlx5_ethdev.c | 2 +- drivers/net

[dpdk-dev] [PATCH v3 0/3] net/mlx5: implement set_mc_addr devop

2018-04-23 Thread Nelio Laranjeiro
Support eth_dev_ops.set_mc_addr_list(). Changes in v3: Check PMD as enough resources to process the Multicast address list. Changes in v2: Simplify the code and are even more verifications. Nelio Laranjeiro (3): net/mlx5: more checks on MAC addresses net/mlx5: split MAC address add/remove

[dpdk-dev] [PATCH v3 3/3] net/mlx5: implement multicast add list devop

2018-04-23 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 2 ++ drivers/net/mlx5/mlx5.h | 2 ++ drivers/net/mlx5/mlx5_defs.h | 5 - drivers/net/mlx5/mlx5_mac.c | 29 + 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v3 1/3] net/mlx5: more checks on MAC addresses

2018-04-23 Thread Nelio Laranjeiro
Verify MAC address before further process. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_mac.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_mac.c b/drivers/net/mlx5/mlx5_mac.c index edc7a32ae..f24b5f759 100644 --- a

[dpdk-dev] [PATCH v2 3/3] net/mlx5: implement multicast add list devop

2018-04-18 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 2 ++ drivers/net/mlx5/mlx5.h | 2 ++ drivers/net/mlx5/mlx5_defs.h | 5 - drivers/net/mlx5/mlx5_mac.c | 33 + 4 files changed, 41 insertions(+), 1 deletion(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v2 2/3] net/mlx5: split MAC address add/remove code

2018-04-18 Thread Nelio Laranjeiro
Move some code in DPDK callbacks to add/remove MAC addresses to internal function. This modification will be necessary to handle implement the devop set_mc_addr_list. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_defs.h | 4 +- drivers/net/mlx5/mlx5_ethdev.c | 2 +- drivers/net

[dpdk-dev] [PATCH v2 1/3] net/mlx5: more checks on MAC addresses

2018-04-18 Thread Nelio Laranjeiro
Verify MAC address before further process. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_mac.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_mac.c b/drivers/net/mlx5/mlx5_mac.c index edc7a32ae..f24b5f759 100644 --- a

[dpdk-dev] [PATCH v2 0/3] net/mlx5: implement set_mc_addr devop

2018-04-18 Thread Nelio Laranjeiro
Support eth_dev_ops.set_mc_addr_list(). Changes in v2: Simplify the code and are even more verifications. Nelio Laranjeiro (3): net/mlx5: more checks on MAC addresses net/mlx5: split MAC address add/remove code net/mlx5: implement multicast add list devop drivers/net/mlx5/mlx5.c

[dpdk-dev] [PATCH 2/2] net/mlx5: implement multicast add list devop

2018-04-18 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 2 ++ drivers/net/mlx5/mlx5.h | 2 ++ drivers/net/mlx5/mlx5_defs.h | 5 +++- drivers/net/mlx5/mlx5_mac.c | 52 4 files changed, 60 insertions(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [PATCH 1/2] net/mlx5: split MAC address add/remove code

2018-04-18 Thread Nelio Laranjeiro
Move some code in DPDK callbacks to add/remove MAC addresses to internal function. This modification will be necessary to handle implement the devop set_mc_addr_list. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_defs.h | 4 +- drivers/net/mlx5/mlx5_ethdev.c | 2 +- drivers/net

[dpdk-dev] [PATCH 0/2] implement set_mc_addr devop

2018-04-18 Thread Nelio Laranjeiro
Support eth_dev_ops.set_mc_addr_list(). Nelio Laranjeiro (2): net/mlx5: split MAC address add/remove code net/mlx5: implement multicast add list devop drivers/net/mlx5/mlx5.c| 2 + drivers/net/mlx5/mlx5.h| 2 + drivers/net/mlx5/mlx5_defs.h | 7 +- drivers/net/mlx5

[dpdk-dev] [PATCH v3 0/2] net/mlx5: fix flow director mask

2018-04-17 Thread Nelio Laranjeiro
Flow director mask as been mistakenly removed from mlx5 PMD. This series brings it back. Changes in v3: Let flow API handle the mask from the user. Changes in v2: Use the L3 structures instead of the l4 in the conversion. Nelio Laranjeiro (2): net/mlx5: split L3/L4 in flow director net

[dpdk-dev] [PATCH v3 1/2] net/mlx5: split L3/L4 in flow director

2018-04-17 Thread Nelio Laranjeiro
This will help to bring back the mask handler which was removed when this feature was rewritten on top of rte_flow. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 122 --- 1 file changed, 42 insertions(+), 80

[dpdk-dev] [PATCH v3 2/2] net/mlx5: fix flow director mask

2018-04-17 Thread Nelio Laranjeiro
During the transition to resurrect flow director on top of rte_flow, mask handling was removed by mistake. Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director") Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_f

[dpdk-dev] [PATCH v2 2/2] net/mlx5: fix flow director mask

2018-04-13 Thread Nelio Laranjeiro
During the transition to resurrect flow director on top of rte_flow, mask handling was removed by mistake. Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director") Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_f

[dpdk-dev] [PATCH v2 0/2] net/mlx5: fix flow director mask

2018-04-13 Thread Nelio Laranjeiro
Flow director mask as been mistakenly removed from mlx5 PMD. This series brings it back. Changes in v2: Use the L3 structures instead of the l4 in the conversion. Nelio Laranjeiro (2): net/mlx5: split L3/L4 in flow director net/mlx5: fix flow director mask drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH v2 1/2] net/mlx5: split L3/L4 in flow director

2018-04-13 Thread Nelio Laranjeiro
This will help to bring back the mask handler which was removed when this feature was rewritten on top of rte_flow. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 122 --- 1 file changed, 42 insertions(+), 80

[dpdk-dev] [PATCH 2/2] net/mlx5: fix flow director mask

2018-04-12 Thread Nelio Laranjeiro
During the transition to resurrect flow director on top of rte_flow, mask handling was removed by mistake. Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director") Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_f

[dpdk-dev] [PATCH 1/2] net/mlx5: split L3/L4 in flow director

2018-04-12 Thread Nelio Laranjeiro
This will help to bring back the mask handler which was removed when this feature was rewritten on top of rte_flow. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 112 --- 1 file changed, 37 insertions(+), 75

[dpdk-dev] [PATCH 0/2] net/mlx5: fix flow director mask

2018-04-12 Thread Nelio Laranjeiro
Flow director mask as been mistakenly removed from mlx5 PMD. This series brings it back. Nelio Laranjeiro (2): net/mlx5: split L3/L4 in flow director net/mlx5: fix flow director mask drivers/net/mlx5/mlx5_flow.c | 155 --- 1 file changed, 69 insertions

[dpdk-dev] [PATCH v4 2/3] net/mlx5: use Netlink to enable promisc / allmulti mode

2018-04-05 Thread Nelio Laranjeiro
VF devices are not able to receive promisc or allmulti traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will handle the request and enable it. This requires the VF to be trusted by the PF. Signed-off-by: Nelio Laranjeiro Acked-by

[dpdk-dev] [PATCH v4 3/3] net/mlx5: add a parameter for Netlink support in VF

2018-04-05 Thread Nelio Laranjeiro
All Netlink request the PMD will do can also be done by a iproute2 command line interface, enabling VF behavior configuration without having to modify the application nor reaching PMD limits (e.g. MAC address number limit). Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- doc

[dpdk-dev] [PATCH v4 0/3] net/mlx5: use Netlink in VF mode

2018-04-05 Thread Nelio Laranjeiro
: Embed Netlink socket communication inside the PMD. Nelio Laranjeiro (3): net/mlx5: use Netlink to add/remove MAC addresses net/mlx5: use Netlink to enable promisc / allmulti mode net/mlx5: add a parameter for Netlink support in VF doc/guides/nics/mlx5.rst | 18 + drivers/net/mlx5

[dpdk-dev] [PATCH v4 1/3] net/mlx5: use Netlink to add/remove MAC addresses

2018-04-05 Thread Nelio Laranjeiro
VF devices are not able to receive traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will add/remove the MAC address to the VF table if the VF is trusted. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- doc/guides

[dpdk-dev] [PATCH v3 2/3] net/mlx5: use Netlink to enable promisc / all multicast mode

2018-03-21 Thread Nelio Laranjeiro
VF devices are not able to receive promisc or allmulti traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will handle the request and enable it. This requires the VF to be trusted by the PF. Signed-off-by: Nelio Laranjeiro Acked-by

[dpdk-dev] [PATCH v3 3/3] net/mlx5: add a parameter for Netlink support in VF

2018-03-21 Thread Nelio Laranjeiro
All Netlink request the PMD will do can also be done by a iproute2 command line interface, letting the operator configure the VF behavior without having to modify the application nor reaching PMD limits (e.g. MAC address number limit). Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil

[dpdk-dev] [PATCH v3 0/3] net/mlx5: use Netlink in VF mode

2018-03-21 Thread Nelio Laranjeiro
/disable promiscuous mode. - Enable/disable allmulti mode. - Add/remove mac addresses. Changes in v3: Add missing room to add the MAC address in the Netlink message. Changes in v2: Embed Netlink socket communication inside the PMD. Nelio Laranjeiro (3): net/mlx5: use Netlink to add/remove MAC

[dpdk-dev] [PATCH v3 1/3] net/mlx5: use Netlink to add/remove MAC addresses

2018-03-21 Thread Nelio Laranjeiro
VF devices are not able to receive traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will add/remove the MAC address to the VF table if the VF is trusted. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net

[dpdk-dev] [PATCH v2] net/mlx5: setup RSS regardless of queue count

2018-03-21 Thread Nelio Laranjeiro
threads, secondary processes, or even virtual machines if the application is a virtual switch. This change to the mlx5 driver aligns with how other drivers in the Intel family work. Signed-off-by: Allain Legacy Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 2 +- drivers/net

[dpdk-dev] [PATCH v2 3/3] net/mlx5: add a parameter for Netlink support in VF

2018-03-19 Thread Nelio Laranjeiro
All Netlink request the PMD will do can also be done by a iproute2 command line interface, letting the operator configure the VF behavior without having to modify the application nor reaching PMD limits (e.g. MAC address number limit). Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil

[dpdk-dev] [PATCH v2 2/3] net/mlx5: use Netlink to enable promisc / all multicast mode

2018-03-19 Thread Nelio Laranjeiro
VF devices are not able to receive promisc or allmulti traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will handle the request and enable it. This requires the VF to be trusted by the PF. Signed-off-by: Nelio Laranjeiro Acked-by

[dpdk-dev] [PATCH v2 0/3] net/mlx5: use Netlink in VF mode

2018-03-19 Thread Nelio Laranjeiro
/disable promiscuous mode. - Enable/disable allmulti mode. - Add/remove mac addresses. Changes in v2: Embed Netlink socket communication inside the PMD. Nelio Laranjeiro (3): net/mlx5: use Netlink to add/remove MAC addresses net/mlx5: use Netlink to enable promisc / all multicast mode net

[dpdk-dev] [PATCH v2 1/3] net/mlx5: use Netlink to add/remove MAC addresses

2018-03-19 Thread Nelio Laranjeiro
VF devices are not able to receive traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will add/remove the MAC address to the VF table if the VF is trusted. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net

[dpdk-dev] [PATCH] net/mlx5: fix ICC compilation

2018-03-19 Thread Nelio Laranjeiro
Remove the second declaration of device_attr [1] inside the loop as well as the query_device_ex() which has already been done outside of the loop. Fixes: 9a761de8ea14 ("net/mlx5: flow counter support") Cc: or...@mellanox.com Reported-by: Ferruh Yigit Signed-off-by: Nelio Laranjeiro

[dpdk-dev] [PATCH 4/4] net/mlx5: refuse empty VLAN flow specification

2018-03-13 Thread Nelio Laranjeiro
action queue index 1 / end are colliding in Verbs definition as in both rule are matching packets with or without VLAN. For this reason, the VLAN specification must not be empty, otherwise the PMD has to refuse it. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 11

[dpdk-dev] [PATCH 3/4] net/mlx5: improve flow error explanation

2018-03-13 Thread Nelio Laranjeiro
Fill the error context in conversion function to provide a better reason on why it cannot be done to the user. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 72 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a

[dpdk-dev] [PATCH 1/4] net/mlx5: change tunnel flow priority

2018-03-13 Thread Nelio Laranjeiro
: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 71 +++- 1 file changed, 43 insertions(+), 28 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index e5e6be6cc..e1ffb38a5 100644 --- a/drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH 2/4] net/mlx5: fix flow single queue

2018-03-13 Thread Nelio Laranjeiro
dpdk.org Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index e1ffb38a5..e7040daad 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/

[dpdk-dev] [PATCH 0/4] net/mlx5: multiple fix and improvements in flows

2018-03-13 Thread Nelio Laranjeiro
This series apply on top of [1] Changes in v2: - rebase on top of series [2] which drops priv locks. [1] https://dpdk.org/dev/patchwork/patch/36058/ [2] https://dpdk.org/dev/patchwork/patch/35650/ Nelio Laranjeiro (4): net/mlx5: change tunnel flow priority net/mlx5: fix flow single queue

[dpdk-dev] [PATCH 3/5] net/mlx5: use Netlink to add/remove MAC addresses

2018-03-13 Thread Nelio Laranjeiro
VF devices are not able to receive traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will add/remove the MAC address to the VF table if the VF is trusted. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/Makefile | 3

[dpdk-dev] [PATCH 1/5] net/mlx5: add VF information in configuration

2018-03-13 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 10 ++ drivers/net/mlx5/mlx5.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 95dd49420..d5cc85d19 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5

[dpdk-dev] [PATCH 5/5] net/mlx5: add a parameter for Netlink support in VF

2018-03-13 Thread Nelio Laranjeiro
All Netlink request the PMD will do can also be done by a iproute2 command line interface, letting the operator configure the VF behavior without having to modify the application nor reaching PMD limits (e.g. MAC address number limit). Signed-off-by: Nelio Laranjeiro --- doc/guides/nics/mlx5

[dpdk-dev] [PATCH 4/5] net/mlx5: use Netlink to enable promisc/allmulti

2018-03-13 Thread Nelio Laranjeiro
VF devices are not able to receive promisc or allmulti traffic unless it fully requests it though Netlink. This will cause the request to be processed by the PF which will handle the request and enable it. This requires the VF to be trusted by the PF. Signed-off-by: Nelio Laranjeiro

[dpdk-dev] [PATCH 2/5] net/mlx5: retrieve device index from Netlink

2018-03-13 Thread Nelio Laranjeiro
This patch new file is not compiled yet, it starts a series necessary to fix some issues with VF devices. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_vf.c | 134 + 1 file changed, 134 insertions(+) create mode 100644 drivers/net/mlx5

[dpdk-dev] [PATCH 0/5] net/mlx5: use Netlink in VF mode

2018-03-13 Thread Nelio Laranjeiro
://dpdk.org/dev/patchwork/patch/35981/ Nelio Laranjeiro (5): net/mlx5: add VF information in configuration net/mlx5: retrieve device index from Netlink net/mlx5: use Netlink to add/remove MAC addresses net/mlx5: use Netlink to enable promisc/allmulti net/mlx5: add a parameter for Netlink

[dpdk-dev] [PATCH 1/2] lib: move Netlink code into a common library

2018-03-13 Thread Nelio Laranjeiro
Moves TAP PMD generic Netlink library into lib directory to let other PMD use Netlink to communicate with kernel. As this library uses a socket to communicate with Netlink it does not bring any dependency on the libnl. Cc: Pascal Mazon Signed-off-by: Nelio Laranjeiro --- MAINTAINERS

[dpdk-dev] [PATCH 2/2] lib: add request Netlink messages

2018-03-13 Thread Nelio Laranjeiro
rte_nl_send() generate a message without request. In some situation, the drivers needs to retrieve information from the Kernel before requesting modifications. Cc: Pascal Mazon Signed-off-by: Nelio Laranjeiro --- lib/librte_netlink/rte_netlink.c | 45

[dpdk-dev] [PATCH 0/2] lib: move Netlink wrapper to lib

2018-03-13 Thread Nelio Laranjeiro
TAP PMD uses a wrapper to communicate with Netlink through a socket. This wrapper can be useful for other PMD which may need to communicate also with the Linux kernel via Netlink. This series moves this wrapper to the lib level to let any PMD implement use it when necessary. Nelio Laranjeiro (2

[dpdk-dev] [PATCH v2 2/2] net/mlx5: use dynamic logging

2018-03-13 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 245 +++-- drivers/net/mlx5/mlx5_ethdev.c | 118 +--- drivers/net/mlx5/mlx5_flow.c| 109 --- drivers/net/mlx5/mlx5_mac.c | 12

[dpdk-dev] [PATCH v2 1/2] net/mlx5: use port id in PMD log

2018-03-13 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 79 +--- drivers/net/mlx5/mlx5_ethdev.c | 86 + drivers/net/mlx5/mlx5_flow.c| 82 +--- drivers/net/mlx5/mlx5_mac.c | 9 +- drivers/net/mlx5

[dpdk-dev] [PATCH v2 0/2] net/mlx5: convert to dynamic logs

2018-03-13 Thread Nelio Laranjeiro
This series applies on top of [1] [1] https://dpdk.org/dev/patchwork/patch/35650/ Changes in v2: - modified the ERROR new print added in commit b0203fdb37ef ("net/mlx: fix rdma-core glue path with EAL plugins") Nelio Laranjeiro (2): net/mlx5: use port id in PMD log net/mlx5: u

[dpdk-dev] [PATCH v2 3/3] net/mlx5: fix link status to use wait to complete

2018-03-12 Thread Nelio Laranjeiro
.mazarg...@6wind.com Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.h| 1 - drivers/net/mlx5/mlx5_defs.h | 4 +- drivers/net/mlx5/mlx5_ethdev.c | 147 - 3 files changed, 58 inserti

[dpdk-dev] [PATCH v2 2/3] net/mlx5: fix link status behavior

2018-03-12 Thread Nelio Laranjeiro
..@mellanox.com Cc: shah...@mellanox.com Cc: sta...@dpdk.org [1] https://dpdk.org/browse/dpdk/tree/lib/librte_ether/rte_ethdev_core.h [2] https://dpdk.org/browse/dpdk/tree/lib/librte_ether/rte_ethdev.h#n1677 Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c

[dpdk-dev] [PATCH v2 1/3] net/mlx5: remove kernel version check

2018-03-12 Thread Nelio Laranjeiro
Kernel version check was introduced in commit 3a49ffe38a95 ("net/mlx5: fix link status query") due to a bug fixed by commit ef09a7fc7620 ("net/mlx5: fix inconsistent link status query") This patch restore the previous behavior as described in Linux API. Signed-off-by: Nelio

[dpdk-dev] [PATCH v2 0/3] net/mlx5: cleanup link status

2018-03-12 Thread Nelio Laranjeiro
. Nelio Laranjeiro (3): net/mlx5: remove kernel version check net/mlx5: fix link status behavior net/mlx5: fix link status to use wait to complete drivers/net/mlx5/mlx5.c | 2 +- drivers/net/mlx5/mlx5.h | 1 - drivers/net/mlx5/mlx5_defs.h| 4 +- drivers/net/mlx5

[dpdk-dev] [PATCH 2/2] net/mlx5: use dynamic logging

2018-03-05 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 238 ++-- drivers/net/mlx5/mlx5_ethdev.c | 118 +--- drivers/net/mlx5/mlx5_flow.c| 109 --- drivers/net/mlx5/mlx5_mac.c | 12 +- drivers

[dpdk-dev] [PATCH 1/2] net/mlx5: use port id in PMD log

2018-03-05 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 79 +--- drivers/net/mlx5/mlx5_ethdev.c | 86 + drivers/net/mlx5/mlx5_flow.c| 82 +--- drivers/net/mlx5/mlx5_mac.c | 9 +- drivers/net/mlx5

[dpdk-dev] [PATCH 0/2] net/mlx5: convert to dynamic logs

2018-03-05 Thread Nelio Laranjeiro
This series applies on top of [1] [1] https://dpdk.org/dev/patchwork/patch/35650/ Nelio Laranjeiro (2): net/mlx5: use port id in PMD log net/mlx5: use dynamic logging drivers/net/mlx5/mlx5.c | 227 +++- drivers/net/mlx5/mlx5_ethdev.c | 112

[dpdk-dev] [PATCH v3 10/10] net/mlx5: standardize on negative errno values

2018-03-05 Thread Nelio Laranjeiro
Set rte_errno systematically as well. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 88 ++- drivers/net/mlx5/mlx5_ethdev.c | 231 - drivers/net/mlx5/mlx5_flow.c| 317

[dpdk-dev] [PATCH v3 09/10] net/mlx5: change non failing function return values

2018-03-05 Thread Nelio Laranjeiro
These functions return int although they are not supposed to fail, resulting in unnecessary checks in their callers. Some are returning error where is should be a boolean. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.h | 4 ++-- drivers/net/mlx5

[dpdk-dev] [PATCH v3 07/10] net/mlx5: remove control path locks

2018-03-05 Thread Nelio Laranjeiro
In priv struct only the memory region needs to be protected against concurrent access between the control plane and the data plane. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 2 -- drivers/net/mlx5/mlx5.h | 43

[dpdk-dev] [PATCH v3 05/10] net/mlx5: add missing function documentation

2018-03-05 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_ethdev.c | 18 ++ drivers/net/mlx5/mlx5_mr.c | 7 +-- drivers/net/mlx5/mlx5_rxq.c | 20 drivers/net/mlx5/mlx5_trigger.c | 30

[dpdk-dev] [PATCH v3 06/10] net/mlx5: remove useless empty lines

2018-03-05 Thread Nelio Laranjeiro
Some empty lines have been added in the middle of the code without any reason. This commit removes them. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c| 22 -- drivers/net/mlx5/mlx5_ethdev.c | 7 --- drivers/net/mlx5

[dpdk-dev] [PATCH v3 04/10] net/mlx5: normalize function prototypes

2018-03-05 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 2 +- drivers/net/mlx5/mlx5_mr.c | 11 ++- drivers/net/mlx5/mlx5_rxq.c | 16 drivers/net/mlx5/mlx5_txq.c | 8 4 files changed, 19 insertions(+), 18 deletions

[dpdk-dev] [PATCH v3 00/10] net/mlx5: clean driver

2018-03-05 Thread Nelio Laranjeiro
: - fix a segfault in Tx queue release. Nelio Laranjeiro (10): net/mlx5: fix sriov flag net/mlx5: name parameters in function prototypes net/mlx5: mark parameters with unused attribute net/mlx5: normalize function prototypes net/mlx5: add missing function documentation net/mlx5: remove

[dpdk-dev] [PATCH v3 01/10] net/mlx5: fix sriov flag

2018-03-05 Thread Nelio Laranjeiro
priv_get_num_vfs() was used to help the PMD in prefetching the mbuf in datapath when the PMD was behaving in VF mode. This knowledge is no more used. Fixes: 528a9fbec6de ("net/mlx5: support ConnectX-5 devices") Cc: ys...@mellanox.com Signed-off-by: Nelio Laranjeiro Acked-by: Adrien

[dpdk-dev] [PATCH v3 02/10] net/mlx5: name parameters in function prototypes

2018-03-05 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.h | 191 --- drivers/net/mlx5/mlx5_rxtx.h | 162 2 files changed, 195 insertions(+), 158 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v3 03/10] net/mlx5: mark parameters with unused attribute

2018-03-05 Thread Nelio Laranjeiro
Replaces all (void)foo; by __rte_unused macro except when variables are under #if statements. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 4 ++-- drivers/net/mlx5/mlx5_ethdev.c | 18 +-- drivers/net/mlx5/mlx5_flow.c| 25

[dpdk-dev] [PATCH v2 10/10] net/mlx5: standardize on negative errno values

2018-02-28 Thread Nelio Laranjeiro
Set rte_errno systematically as well. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 88 ++- drivers/net/mlx5/mlx5_ethdev.c | 231 - drivers/net/mlx5/mlx5_flow.c| 317

[dpdk-dev] [PATCH v2 07/10] net/mlx5: remove control path locks

2018-02-28 Thread Nelio Laranjeiro
In priv struct only the memory region needs to be protected against concurrent access between the control plane and the data plane. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.c | 2 -- drivers/net/mlx5/mlx5.h | 43

[dpdk-dev] [PATCH v2 09/10] net/mlx5: change non failing function return values

2018-02-28 Thread Nelio Laranjeiro
These functions return int although they are not supposed to fail, resulting in unnecessary checks in their callers. Some are returning error where is should be a boolean. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.h | 4 ++-- drivers/net/mlx5

<    1   2   3   4   5   6   7   8   9   >