From: Yevgeny Kliteynik
When supported by the device, SW steering RoCE RC QP that is used to
write/read to/from ICM will be created with force-loopback attribute.
Such QP doesn't require GID index upon creation.
Signed-off-by: Erez Shitrit
Signed-off-by: Yevgeny Kliteynik
Signed-off-by:
cases, we set this QP to
use isolated VL. The VL number is reserved by FW and is not exposed to the
driver.
Support for this QP on isolated VL exists only when both force-loopback and
isolate_vl_tc capabilities are set.
Signed-off-by: Alex Vesker
Signed-off-by: Yevgeny Kliteynik
Signed-off-by:
From: Yevgeny Kliteynik
Query the flex_parser id that's intended for TNL_MPLS
and use an appropriate flex parser for MPLS over UDP/GRE.
Signed-off-by: Muhammad Sammar
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/steering/dr_cmd.c
From: Yevgeny Kliteynik
Enable matching on tunnel geneve TLV option using the flex parser.
Signed-off-by: Muhammad Sammar
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/steering/dr_cmd.c | 4 +++
.../mellanox/mlx5/core/steering/dr_matcher.c
From: Yevgeny Kliteynik
Enable matching on tunnel GTP-U and GTP-U first extension
header using dynamic flex parser.
Signed-off-by: Muhammad Sammar
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/steering/dr_cmd.c | 16 +++
.../mellanox/mlx5
From: Yevgeny Kliteynik
Set the flex parser ID dynamicly for ICMP instead of relying
on hardcoded values.
Signed-off-by: Muhammad Sammar
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/steering/dr_matcher.c | 12 ++---
.../mellanox/mlx5/core
which allows using a correct flex parser
that was programmed to the required protocol.
Signed-off-by: Muhammad Sammar
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/steering/dr_matcher.c | 50 ++
.../mellanox/mlx5/core/steering/dr_rule.c
From: Muhammad Sammar
Remove MPLS specific fields from flex parser 3 layout.
Flex parser can be used for multiple protocols and should
not be hardcoded to a specific type.
Signed-off-by: Muhammad Sammar
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5
From: Yevgeny Kliteynik
Added the required definitions for supporting more protocols by flex parsers
(GTP-U, Geneve TLV options), and for using the right flex parser that was
configured for this protocol.
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
include/linux/mlx5
From: Yevgeny Kliteynik
Rename the argument to better reflect that the meaning is
not number of records, but wheather or not we should
ring the dorbell.
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/steering/dr_send.c| 8
From: Yevgeny Kliteynik
QP doorbell size is 16 bits.
Fixing sw steering's QP doorbel bitmask, which had 20 bits.
Signed-off-by: Yevgeny Kliteynik
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c | 2 +-
1 file changed, 1 insertion(+), 1 del
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/eswitch_offloads_termtbl.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
b/drivers/net/ethernet/mellanox/mlx5/core
the HW spec
and SW assumptions/requirements.
This is not a fix, no particular issue exists today.
Signed-off-by: Tariq Toukan
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/en/params.c | 86 ---
.../ethernet/mellanox/mlx5/core/en/params.h | 20
From: Saeed Mahameed
Hi Dave, Jakub,
This series provides updates for mlx5, mostly around mlx5 software
steering
For more information please see tag log below.
Please pull and let me know if there is any problem.
Thanks,
Saeed.
---
The following changes since commit
net/mlx5e: Move params logic into its dedicated file")
Fixes: b3a131c2a160 ("net/mlx5e: Move params logic into its dedicated file")
Signed-off-by: Tariq Toukan
Reviewed-by: Aya Levin
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en/params.c | 5 +++--
registered.
Also, change mlx5e_get_devlink_port() behavior and return NULL in case
port is not registered to replicate devlink's wrapper when ndo is not
implemented.
Signed-off-by: Vladyslav Tarasiuk
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c
mlx5e_get_def_rx_moderation(u8
> cq_period_mode)
> {
also mlx5e_get_def_tx_moderation needs fixing.
Thanks for the patch,
Saeed.
> - struct dim_cq_moder moder;
> + struct dim_cq_moder moder = {};
>
> moder.cq_period_mode = cq_period_mode;
> moder.pkts = MLX5E_PARAMS_DEFAULT_RX_CQ_MODERATION_PKTS;
From: Moshe Tal
Add needed structure layouts and defines for pddr register
(Port Diagnostics Database Register) and the troublshooting page.
This will be used to get extended link state from the monitor opcode
bits.
Signed-off-by: Moshe Tal
Signed-off-by: Saeed Mahameed
---
include/linux
From: Aya Levin
Wrap 1PPS initialization in a helper for a cleaner init flow.
Signed-off-by: Aya Levin
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/lib/clock.c | 25 +--
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ethernet
From: Aya Levin
Add ts_format to 'Common Config' section of the TX/RX devlink reporters
diagnostics info. Possible values for ts_format: 'RT' or 'FRC'
which stands for: Real Time and Free Running Counters correspondingly.
Signed-off-by: Aya Levin
Signed-off-by: Sa
ned-off-by: Moshe Tal
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/en_ethtool.c | 171 ++
1 file changed, 171 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
index ef
ical.
Signed-off-by: Maxim Mikityanskiy
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en.h | 8 +-
.../ethernet/mellanox/mlx5/core/en_dcbnl.c| 15 ++-
.../ethernet/mellanox/mlx5/core/en_ethtool.c | 98 +-
.../net/ethernet/mellanox/mlx5/core/e
From: Maor Dickman
The bulk size is larger than 16K so use kvzalloc().
The bulk bitmask upper size limit is 16K so use kvcalloc().
Signed-off-by: Maor Dickman
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/fs_counters.c| 16
1 file changed, 8
ctored and simplified, where more complex flows are used to change
configuration on the fly, without recreating the channels (the logic is
rewritten in a more robust way, with a reset required by default and a
list of exceptions).
Signed-off-by: Maxim Mikityanskiy
Signed-off-by: Saeed Mahameed
--
possible failure that demands driver handling is ICOSQ being full.
By relying on the NAPI mechanism, we make sure that the entries in list
will be handled when ICOSQ completions arrive and make some room
available.
Signed-off-by: Tariq Toukan
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet
unused function parameter.
Signed-off-by: Tariq Toukan
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h | 2 +-
.../net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c | 6 --
.../net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h | 8
mlx5e_safe_switch_channels to work when the channels are closed. In this
case it will assign the new parameters and run the preactivate hook.
Signed-off-by: Maxim Mikityanskiy
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/en_main.c | 40 +--
1 file changed, 27 insertions
it's
allowed to skip it. The logic of switching channel parameters is now
completely encapsulated into mlx5e_safe_switch_channels().
Signed-off-by: Maxim Mikityanskiy
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 +-
.../ethernet/mellanox/mlx5/core
: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h | 5 +++--
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c | 3 ---
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h | 6 ++
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers
From: Tariq Toukan
Socket parameter is not used in accel_rule_init(), remove it.
Signed-off-by: Tariq Toukan
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net
From: Tariq Toukan
Maintaining an SQ state bit to indicate TLS support
has no real need, a simple and fast test [1] for the SKB is
almost equally good.
[1] !skb->sk || !tls_is_sk_tx_device_offloaded(skb->sk)
Signed-off-by: Tariq Toukan
Signed-off-by: Saeed Mahameed
---
drivers/net/et
From: Saeed Mahameed
Hi Dave, Jakub,
This series provides some updates to mlx5e driver.
For more information please see tag log below.
Please pull and let me know if there is any problem.
Thanks,
Saeed.
---
The following changes since commit 392c36e5be1dee19ffce8c8ba8f07f90f5aa3f7c:
Merge
On Thu, 2021-04-15 at 16:05 -0700, Jakub Kicinski wrote:
> On Thu, 15 Apr 2021 15:46:52 -0700 Saeed Mahameed wrote:
> > > > best practice here is to centralize all the data structures and
> > > > information definitions in one place, you define the stat id,
> > >
tats
> sfc: ef10: implement ethtool::get_fec_stats
> mlx5: implement ethtool::get_fec_stats
For the series:
Reviewed-by: Saeed Mahameed
On Thu, 2021-04-15 at 08:38 -0700, Jakub Kicinski wrote:
> On Wed, 14 Apr 2021 23:12:52 -0700 Saeed Mahameed wrote:
> > On Wed, 2021-04-14 at 13:23 -0700, Jakub Kicinski wrote:
> > > Most of the MAC statistics are included in
> > > struct rtnl_link_stats64, but some
On Thu, 2021-04-15 at 08:21 -0700, Jakub Kicinski wrote:
> On Wed, 14 Apr 2021 23:25:43 -0700 Saeed Mahameed wrote:
> > On Tue, 2021-04-13 at 20:44 -0700, Jakub Kicinski wrote:
> > > ethtool_link_ksettings *);
> > > + void(*get_fec_st
PCAM_FEATURE(mdev, ppcnt_statistical_group))
> + return;
> +
> + MLX5_SET(ppcnt_reg, in, local_port, 1);
> + MLX5_SET(ppcnt_reg, in, grp,
> MLX5_PHYSICAL_LAYER_STATISTICAL_GROUP);
> + mlx5_core_access_reg(mdev, in, sz, ppcnt_phy_statistical,
> + sz, MLX5_REG_PPCNT, 0, 0);
> +
other than that the FW might fail us here, LGTM.
Acked-by: Saeed Mahameed
On Tue, 2021-04-13 at 20:44 -0700, Jakub Kicinski wrote:
> ethtool_link_ksettings *);
> + void(*get_fec_stats)(struct net_device *dev,
> + struct ethtool_fec_stats
> *fec_stats);
why void ? some drivers need to access the FW and it could be an old
FW/device
On Wed, 2021-04-14 at 13:23 -0700, Jakub Kicinski wrote:
> Most of the MAC statistics are included in
> struct rtnl_link_stats64, but some fields
> are aggregated. Besides it's good to expose
> these clearly hardware stats separately.
>
> Signed-off-by: Jakub Kicinski
> ---
> include/linux/ethto
On Wed, 2021-04-14 at 13:23 -0700, Jakub Kicinski wrote:
> This series adds a new ethtool command to read well defined
> device statistics. There is nothing clever here, just a netlink
> API for dumping statistics defined by standards and RFCs which
> today end up in ethtool -S under infinite varia
a path")
Signed-off-by: Raed Salem
Signed-off-by: Huy Nguyen
Cc: Steffen Klassert
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/en_accel/ipsec_rxtx.c | 65 ++-
.../mellanox/mlx5/core/en_accel/ipsec_rxtx.h | 21 +-
2 files changed, 69 insertions(+), 17 deleti
From: Huy Nguyen
The inner_ipproto saves the inner IP protocol of the plain
text packet. This allows vendor's IPsec feature making offload
decision at skb's features_check and configuring hardware at
ndo_start_xmit.
For example, ConnectX6-DX IPsec device needs the plaintext's
IP protocol to supp
path")
Signed-off-by: Raed Salem
Signed-off-by: Huy Nguyen
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/en_accel/ipsec_rxtx.h | 15 +--
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 8 +---
2 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/d
From: Saeed Mahameed
This small series fixes ipsec TX offloads with vxlan overlay on top of
the offloaded ipsec packet, the driver (mlx5) was lacking such information
and the skb->encapsulation bit wasn't enough as indication to reach the
vxlan inner headers, as a solution we mark the t
From: Aya Levin
Change register setting from bit number to bit mask.
Fixes: b5ede32d3329 ("net/mlx5e: Add support for FEC modes based on 50G per
lane links")
Signed-off-by: Aya Levin
Reviewed-by: Eran Ben Elisha
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/ml
_meta support")
Signed-off-by: wenxu
Acked-by: Pablo Neira Ayuso
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_
From: Saeed Mahameed
Hi Dave, Jakub,
This series provides 3 small fixes to mlx5 driver.
Please pull and let me know if there is any problem.
Thanks,
Saeed.
---
The following changes since commit 2afeec08ab5c86ae21952151f726bfe184f6b23d:
xen-netback: Check for hotplug-status existence
crashes upon
setting a trap.
Fixes: 241dc159391f ("net/mlx5: Notify on trap action by blocking event")
Signed-off-by: Aya Levin
Reviewed-by: Moshe Shemesh
Reviewed-by: Roi Dayan
Reviewed-by: Tariq Toukan
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/dev
On Fri, 2021-04-09 at 13:33 +0800, we...@ucloud.cn wrote:
> From: wenxu
>
> In the nft_offload there is the mate flow_dissector with no
> ingress_ifindex but with ingress_iftype that only be used
> in the software. So if the mask of ingress_ifindex in meta is
> 0, this meta check should be bypass
From: Aya Levin
Allow to create an RQ which is not registered as an XDP RQ. For example:
the trap-RQ doesn't register as an XDP RQ.
Fixes: 869c5f926247 ("net/mlx5e: Generalize open RQ")
Signed-off-by: Aya Levin
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mel
From: Wenpeng Liang
There should be no spaces at the start of the line.
Signed-off-by: Wenpeng Liang
Signed-off-by: Weihang Li
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net
From: Wenpeng Liang
void function return statements are not generally useful.
Signed-off-by: Wenpeng Liang
Signed-off-by: Weihang Li
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/lag.c | 2 --
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 1 -
drivers
From: Wenpeng Liang
There should be a blank lines after declarations.
Signed-off-by: Wenpeng Liang
Signed-off-by: Weihang Li
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c| 4 ++--
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c | 1 +
2 files
ot;)
Fixes: 7dfee4b1d79e ("net/mlx5: IPsec, Refactor SA handle creation and
destruction")
Signed-off-by: Colin Ian King
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/n
From: Roi Dayan
The cmd size is 8K so use kvzalloc().
Signed-off-by: Roi Dayan
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c | 4 ++--
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c | 6 +++---
2 files changed, 5 insertions(+), 5
:
cmode runtime value true
$ devlink dev param set pci/:06:00.0 \
name esw_port_metadata value false cmode runtime
$ devlink dev eswitch set pci/:06:00.0 mode switchdev
Signed-off-by: Parav Pandit
Reviewed-by: Roi Dayan
Reviewed-by: Vu Pham
Signed-off-by: Saeed Mahameed
From: Saeed Mahameed
Hi Dave, Jakub,
This patchset includes some updates and cleanup to mlx5 driver.
For more information please see tag log below.
v1->v2: update 1st patch commit message and mlx5 documentation to
include performance numbers and applicability of the metadata settings.
Ple
infrastructure code, move the legacy code to its own legacy.c file.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/Makefile | 2 +-
.../ethernet/mellanox/mlx5/core/esw/legacy.c | 509 +
.../ethernet/mellanox/mlx5/core/esw
From: Parav Pandit
SF's hardware function id is already stored in mlx5_sf. Reuse it,
instead of querying the hw table.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c | 5 ++---
1 file changed, 2 insertions(+), 3 dele
becomes a generic action header.
Then actions are dynamically allocated with needed memory, the data
for each action is stored right after the header.
Signed-off-by: Jianbo Liu
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/steering/dr_action.c | 242 ++
.../mellanox/mlx5
From: Parav Pandit
Make cleanup sequence mirror of init sequence for cleaning up reps
and freeing vports.
Also when reps initialization fails, there is no need to perform reps
cleanup.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core
From: Parav Pandit
Convert ESW_ALLOWED macro to a helper routine so that it can be used in
other eswitch files.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/eswitch.c | 32 +--
.../net/ethernet/mellanox/mlx5/core/eswitch.h
From: Parav Pandit
With vhca events, SF state is queried through the VHCA events. Device no
longer expects SF bitmap in the query eswitch functions command.
Hence, remove it to simplify the code.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox
From: Parav Pandit
Vport number is 16-bit field in hardware. Make it u16.
Move location of vport in the structure so that it reduces a hole
in the structure.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 2
From: Parav Pandit
At many places in the code, device pointer is directly available. Make
use of it, instead of accessing it from the table.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/sf/hw_table.c| 16
1 file changed, 8
s not dependent on eswitch, make namespace init and
cleanup routines as helper routines to be invoked only when eswitch is
needed.
With this change, ingress and egress ACL namespaces are created only
when eswitch legacy/offloads mode is enabled.
Signed-off-by: Parav Pandit
Signed-off-by:
On Tue, 2021-04-13 at 13:21 -0700, Jakub Kicinski wrote:
> On Tue, 13 Apr 2021 12:29:51 -0700 Saeed Mahameed wrote:
> > Currently each packet inserted in eswitch is tagged with a internal
> > metadata to indicate source vport. Metadata tagging is not always
> > needed. Metadat
From: Aya Levin
Allow to create an RQ which is not registered as an XDP RQ. For example:
the trap-RQ doesn't register as an XDP RQ.
Fixes: 869c5f926247 ("net/mlx5e: Generalize open RQ")
Signed-off-by: Aya Levin
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mel
From: Parav Pandit
At many places in the code, device pointer is directly available. Make
use of it, instead of accessing it from the table.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/sf/hw_table.c| 16
1 file changed, 8
From: Wenpeng Liang
There should be no spaces at the start of the line.
Signed-off-by: Wenpeng Liang
Signed-off-by: Weihang Li
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net
From: Wenpeng Liang
There should be a blank lines after declarations.
Signed-off-by: Wenpeng Liang
Signed-off-by: Weihang Li
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c| 4 ++--
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c | 1 +
2 files
From: Parav Pandit
SF's hardware function id is already stored in mlx5_sf. Reuse it,
instead of querying the hw table.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c | 5 ++---
1 file changed, 2 insertions(+), 3 dele
becomes a generic action header.
Then actions are dynamically allocated with needed memory, the data
for each action is stored right after the header.
Signed-off-by: Jianbo Liu
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/steering/dr_action.c | 242 ++
.../mellanox/mlx5
From: Wenpeng Liang
void function return statements are not generally useful.
Signed-off-by: Wenpeng Liang
Signed-off-by: Weihang Li
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/lag.c | 2 --
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 1 -
drivers
ot;)
Fixes: 7dfee4b1d79e ("net/mlx5: IPsec, Refactor SA handle creation and
destruction")
Signed-off-by: Colin Ian King
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/n
From: Roi Dayan
The cmd size is 8K so use kvzalloc().
Signed-off-by: Roi Dayan
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c | 4 ++--
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c | 6 +++---
2 files changed, 5 insertions(+), 5
s not dependent on eswitch, make namespace init and
cleanup routines as helper routines to be invoked only when eswitch is
needed.
With this change, ingress and egress ACL namespaces are created only
when eswitch legacy/offloads mode is enabled.
Signed-off-by: Parav Pandit
Signed-off-by:
infrastructure code, move the legacy code to its own legacy.c file.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/Makefile | 2 +-
.../ethernet/mellanox/mlx5/core/esw/legacy.c | 509 +
.../ethernet/mellanox/mlx5/core/esw
From: Parav Pandit
Vport number is 16-bit field in hardware. Make it u16.
Move location of vport in the structure so that it reduces a hole
in the structure.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 2
From: Parav Pandit
Convert ESW_ALLOWED macro to a helper routine so that it can be used in
other eswitch files.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/eswitch.c | 32 +--
.../net/ethernet/mellanox/mlx5/core/eswitch.h
From: Parav Pandit
Make cleanup sequence mirror of init sequence for cleaning up reps
and freeing vports.
Also when reps initialization fails, there is no need to perform reps
cleanup.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core
From: Parav Pandit
With vhca events, SF state is queried through the VHCA events. Device no
longer expects SF bitmap in the query eswitch functions command.
Hence, remove it to simplify the code.
Signed-off-by: Parav Pandit
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox
Reviewed-by: Roi Dayan
Reviewed-by: Vu Pham
Signed-off-by: Saeed Mahameed
---
.../device_drivers/ethernet/mellanox/mlx5.rst | 23 +++
.../net/ethernet/mellanox/mlx5/core/devlink.c | 62 +++
.../net/ethernet/mellanox/mlx5/core/devlink.h | 1 +
.../net/ethernet/mellanox/mlx5/core
From: Saeed Mahameed
Hi Dave, Jakub,
This patchset includes some updates and cleanup to mlx5 driver.
For more information please see tag log below.
Please pull and let me know if there is any problem.
Thanks,
Saeed.
---
The following changes since commit
-l...@kernel.org/
2) Cleanup series:
https://patchwork.kernel.org/project/netdevbpf/cover/20210311070915.321814-1-sa...@kernel.org/
>From Mark, E-Switch cleanups and refactoring, and the addition
of single FDB mode needed HW bits.
>From Mikhael, Remove unused struct field
>From Saeed,
From: Chris Mi
As a pre-step to process sampled packet in this function.
Signed-off-by: Chris Mi
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/en/rep/tc.c | 59 +++
1 file changed, 33 insertions(+), 26 deletions(-)
diff --git a/drivers/net/ethernet
From: Chris Mi
Parse TC sample action and save sample parameters in flow attribute
data structure.
Signed-off-by: Chris Mi
Reviewed-by: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/en/tc_priv.h | 1 +
.../net/ethernet/mellanox/mlx5
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/Kconfig | 12 +++
.../net/ethernet/mellanox/mlx5/core/Makefile | 1 +
.../net/ethernet/mellanox/mlx5/core/en_rep.h | 1 +
.../net/ethernet/mellanox/mlx5/core/en_tc.c | 11 +++
.../ethernet
when creating the
chains object.
Signed-off-by: Chris Mi
Reviewed-by: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/Makefile | 5 ++-
.../net/ethernet/mellanox/mlx5/core/en/fs.h | 1 +
.../ethernet/mellanox/mlx5/core/en/rep/tc.c
-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/esw/sample.c | 131 ++
1 file changed, 131 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/esw/sample.c
b/drivers/net/ethernet/mellanox/mlx5/core/esw/sample.c
index 9bd996e8d28a..37e33670bb24 100644
to
userspace.
Aggregate the modify header action, restore rule and object ID to a
sample restore handle. Re-use identical sample restore handle for
the same object ID.
Signed-off-by: Chris Mi
Reviewed-by: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox
: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/en_tc.c | 30 +++
.../ethernet/mellanox/mlx5/core/esw/sample.c | 235 ++
.../ethernet/mellanox/mlx5/core/esw/sample.h | 18 ++
.../net/ethernet/mellanox/mlx5/core
usive
contexts such as chain id and sample group id.
Use the mapping object to associate an index with a restore object
as a prestep for supporting additional restore types.
Signed-off-by: Chris Mi
Reviewed-by: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox
From: Chris Mi
Mark the sampled packets with a sample restore object. Send sampled
packets using the psample api.
Signed-off-by: Chris Mi
Reviewed-by: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/en/rep/tc.c | 14
From: Chris Mi
Public api starts with mlx5 and remove mlx5 for non-public api.
Signed-off-by: Chris Mi
Signed-off-by: Saeed Mahameed
---
.../mellanox/mlx5/core/esw/vporttbl.c | 4 +--
.../net/ethernet/mellanox/mlx5/core/eswitch.h | 4 +--
.../mellanox/mlx5/core/eswitch_offloads.c
: Chris Mi
Reviewed-by: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../ethernet/mellanox/mlx5/core/esw/vporttbl.c| 15 ---
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 7 +++
.../mellanox/mlx5/core/eswitch_offloads.c | 14 ++
3
hlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl.c
b/drivers/net/ethernet/mellanox/mlx5/cor
and the sample features.
Signed-off-by: Chris Mi
Reviewed-by: Oz Shlomo
Reviewed-by: Mark Bloch
Signed-off-by: Saeed Mahameed
---
.../net/ethernet/mellanox/mlx5/core/Makefile | 2 +-
.../mellanox/mlx5/core/esw/vporttbl.c | 136 +++
.../net/ethernet/mellanox/mlx5/core/eswitch.h
From: Saeed Mahameed
Hi Dave, Jakub,
This series From Chris adds the support for TC psample offloads
to mlx5 driver.
For more information please see tag log below.
Please pull and let me know if there is any problem.
Thanks,
Saeed.
---
The following changes since commit
he Shemesh
Signed-off-by: Saeed Mahameed
---
include/linux/mlx5/mlx5_ifc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 9940070cda8f..9c68b2da14c6 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/
1 - 100 of 5535 matches
Mail list logo