mlx5-for-upstream-2021-02-10
Misc cleanups and trivial fixes for net-next 1) spelling mistakes 2) error path checks fixes 3) unused includes and struct fields cleanup 4) build error when MLX5_ESWITCH=no -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEGhZs6bAKwk/OTgTpSD+KveBX+j4FAmAkttMACgkQSD+KveBX +j5yPQgAimEyMsVpEZ5K2Bhs5R08Gvm0+K3n7pSiU3nWAtivbVXAswuGSRvNhqvL NqR70IbuBZtFradeDoFf73Mo98v0ocaUP4LFiXBKQcR1ybk/ILdxL1St/t2Kwt5m T0kaQbZI3WPKCf66z419REzwiuGJIrIrBlVOnL/ka+MFSw7VRqR+zN5r29HxJlOA W0OEc7/3I7zCsJXmWeTWNXqR/Q+p1JxnJywNRoBDi89tl3xnhvo389VoCZcieMOr VzNmvA7wHeyK+h/T7b1+iMTXjYAJ+g5ftypMMhackmFQIUaykSBYBEbVjpPWLHjI yKzsvQTk/CvRDJNSRnGrn5S3sMDjkQ== =q+9G -----END PGP SIGNATURE----- Merge tag 'mlx5-for-upstream-2021-02-10' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux Saeed Mahameed says: ==================== mlx5-for-upstream-2021-02-10 Misc cleanups and trivial fixes for net-next 1) spelling mistakes 2) error path checks fixes 3) unused includes and struct fields cleanup 4) build error when MLX5_ESWITCH=no ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
9f1b0df7b2
@ -13,12 +13,12 @@ Contents
|
||||
- `Devlink info`_
|
||||
- `Devlink parameters`_
|
||||
- `mlx5 subfunction`_
|
||||
- `mlx5 port function`_
|
||||
- `mlx5 function attributes`_
|
||||
- `Devlink health reporters`_
|
||||
- `mlx5 tracepoints`_
|
||||
|
||||
Enabling the driver and kconfig options
|
||||
================================================
|
||||
=======================================
|
||||
|
||||
| mlx5 core is modular and most of the major mlx5 core driver features can be selected (compiled in/out)
|
||||
| at build time via kernel Kconfig flags.
|
||||
|
@ -149,14 +149,14 @@ config MLX5_IPSEC
|
||||
IPsec support for the Connect-X family.
|
||||
|
||||
config MLX5_EN_IPSEC
|
||||
bool "IPSec XFRM cryptography-offload accelaration"
|
||||
bool "IPSec XFRM cryptography-offload acceleration"
|
||||
depends on MLX5_CORE_EN
|
||||
depends on XFRM_OFFLOAD
|
||||
depends on INET_ESP_OFFLOAD || INET6_ESP_OFFLOAD
|
||||
depends on MLX5_FPGA_IPSEC || MLX5_IPSEC
|
||||
default n
|
||||
help
|
||||
Build support for IPsec cryptography-offload accelaration in the NIC.
|
||||
Build support for IPsec cryptography-offload acceleration in the NIC.
|
||||
Note: Support for hardware with this capability needs to be selected
|
||||
for this option to become available.
|
||||
|
||||
@ -192,7 +192,7 @@ config MLX5_TLS
|
||||
config MLX5_EN_TLS
|
||||
bool
|
||||
help
|
||||
Build support for TLS cryptography-offload accelaration in the NIC.
|
||||
Build support for TLS cryptography-offload acceleration in the NIC.
|
||||
Note: Support for hardware with this capability needs to be selected
|
||||
for this option to become available.
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "en.h"
|
||||
#include "en_rep.h"
|
||||
|
||||
#ifdef CONFIG_MLX5_ESWITCH
|
||||
|
||||
enum {
|
||||
MLX5E_TC_TUNNEL_TYPE_UNKNOWN,
|
||||
MLX5E_TC_TUNNEL_TYPE_VXLAN,
|
||||
@ -99,4 +101,6 @@ int mlx5e_tc_tun_parse_udp_ports(struct mlx5e_priv *priv,
|
||||
void *headers_c,
|
||||
void *headers_v);
|
||||
|
||||
#endif /* CONFIG_MLX5_ESWITCH */
|
||||
|
||||
#endif //__MLX5_EN_TC_TUNNEL_H__
|
||||
|
@ -223,7 +223,7 @@ static int blocking_event(struct notifier_block *nb, unsigned long event, void *
|
||||
err = mlx5e_handle_trap_event(priv, data);
|
||||
break;
|
||||
default:
|
||||
netdev_warn(priv->netdev, "Sync event: Unknouwn event %ld\n", event);
|
||||
netdev_warn(priv->netdev, "Sync event: Unknown event %ld\n", event);
|
||||
err = -EINVAL;
|
||||
}
|
||||
return err;
|
||||
@ -5647,7 +5647,7 @@ int mlx5e_netdev_change_profile(struct mlx5e_priv *priv,
|
||||
/* sanity */
|
||||
if (new_max_nch != priv->max_nch) {
|
||||
netdev_warn(priv->netdev,
|
||||
"%s: Replacing profile with different max channles\n",
|
||||
"%s: Replacing profile with different max channels\n",
|
||||
__func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -30,7 +30,6 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <generated/utsrelease.h>
|
||||
#include <linux/mlx5/fs.h>
|
||||
#include <net/switchdev.h>
|
||||
#include <net/pkt_cls.h>
|
||||
|
@ -4750,10 +4750,12 @@ int mlx5e_tc_esw_init(struct rhashtable *tc_ht)
|
||||
lockdep_set_class(&tc_ht->mutex, &tc_ht_lock_key);
|
||||
|
||||
uplink_priv->encap = mlx5e_tc_tun_init(priv);
|
||||
if (IS_ERR(uplink_priv->encap))
|
||||
if (IS_ERR(uplink_priv->encap)) {
|
||||
err = PTR_ERR(uplink_priv->encap);
|
||||
goto err_register_fib_notifier;
|
||||
}
|
||||
|
||||
return err;
|
||||
return 0;
|
||||
|
||||
err_register_fib_notifier:
|
||||
rhashtable_destroy(tc_ht);
|
||||
|
@ -216,7 +216,7 @@ static int mlx5_esw_indir_table_rule_get(struct mlx5_eswitch *esw,
|
||||
flow_act.flags = FLOW_ACT_IGNORE_FLOW_LEVEL | FLOW_ACT_NO_APPEND;
|
||||
dest.type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE;
|
||||
dest.ft = mlx5_chains_get_table(chains, 0, 1, 0);
|
||||
if (!dest.ft) {
|
||||
if (IS_ERR(dest.ft)) {
|
||||
err = PTR_ERR(dest.ft);
|
||||
goto err_table;
|
||||
}
|
||||
|
@ -572,7 +572,7 @@ static void del_hw_fte(struct fs_node *node)
|
||||
mlx5_core_warn(dev,
|
||||
"flow steering can't delete fte in index %d of flow group id %d\n",
|
||||
fte->index, fg->id);
|
||||
node->active = 0;
|
||||
node->active = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,6 +37,7 @@ static int mlx5_sf_dev_probe(struct auxiliary_device *adev, const struct auxilia
|
||||
mdev->iseg = ioremap(mdev->iseg_base, sizeof(*mdev->iseg));
|
||||
if (!mdev->iseg) {
|
||||
mlx5_core_warn(mdev, "remap error\n");
|
||||
err = -ENOMEM;
|
||||
goto remap_err;
|
||||
}
|
||||
|
||||
|
@ -588,7 +588,6 @@ struct mlx5_priv {
|
||||
/* end: alloc staff */
|
||||
struct dentry *dbg_root;
|
||||
|
||||
struct list_head dev_list;
|
||||
struct list_head ctx_list;
|
||||
spinlock_t ctx_lock;
|
||||
struct mlx5_adev **adev;
|
||||
|
Loading…
Reference in New Issue
Block a user