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
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
.
- 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
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
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
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
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
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
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
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
- 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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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-
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
;)
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
;)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
:
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
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
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
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
/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
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
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
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
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
/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
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
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
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
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
: 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.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/
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
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
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
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
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
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.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
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
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
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
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
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
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
.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
..@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
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
.
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
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
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
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
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
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
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
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
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
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
:
- 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
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
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
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
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
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
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
101 - 200 of 827 matches
Mail list logo