]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/mlx5: Fix typo in comments
authorCai Huoqing <caihuoqing@baidu.com>
Fri, 30 Jul 2021 03:03:00 +0000 (11:03 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 11 Aug 2021 18:14:30 +0000 (11:14 -0700)
Fix typo:
*vectores  ==> vectors
*realeased  ==> released
*erros  ==> errors
*namepsace  ==> namespace
*trafic  ==> traffic
*proccessed  ==> processed
*retore  ==> restore
*Currenlty  ==> Currently
*crated  ==> created
*chane  ==> change
*cannnot  ==> cannot
*usuallly  ==> usually
*failes  ==> fails
*importent  ==> important
*reenabled  ==> re-enabled
*alocation  ==> allocation
*recived  ==> received
*tanslation  ==> translation

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
16 files changed:
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c
drivers/net/ethernet/mellanox/mlx5/core/en_common.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/events.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/health.c
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h

index 8f79f04eccd61f7ce55864ea225735ae154b5b4a..a61731cb604537fc0b2b1bea77b1b18a7b8b87c0 100644 (file)
@@ -520,7 +520,7 @@ int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv,
        e->out_dev = attr.out_dev;
        e->route_dev_ifindex = attr.route_dev->ifindex;
 
-       /* It's importent to add the neigh to the hash table before checking
+       /* It's important to add the neigh to the hash table before checking
         * the neigh validity state. So if we'll get a notification, in case the
         * neigh changes it's validity state, we would find the relevant neigh
         * in the hash.
index c06267477b27997d0bef8751045077cbf367a16b..538bc2419bd83c37de61aa88c007167b06303d00 100644 (file)
@@ -126,7 +126,7 @@ int mlx5e_open_xsk(struct mlx5e_priv *priv, struct mlx5e_params *params,
        /* Create a separate SQ, so that when the buff pool is disabled, we could
         * close this SQ safely and stop receiving CQEs. In other case, e.g., if
         * the XDPSQ was used instead, we might run into trouble when the buff pool
-        * is disabled and then reenabled, but the SQ continues receiving CQEs
+        * is disabled and then re-enabled, but the SQ continues receiving CQEs
         * from the old buff pool.
         */
        err = mlx5e_open_xdpsq(c, params, &cparam->xdp_sq, pool, &c->xsksq, true);
index c4db367d4baf6e3611dea9f77e95078543c42697..84eb7201c142e245d8e73b9c4e2cea84c0520abb 100644 (file)
@@ -33,7 +33,7 @@
 #include "en.h"
 
 /* mlx5e global resources should be placed in this file.
- * Global resources are common to all the netdevices crated on the same nic.
+ * Global resources are common to all the netdevices created on the same nic.
  */
 
 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc)
index 8f0c82448eece96160f6b40aa141ca23eecba2cc..756f806401d79c8808f9715f3097e0746cf55982 100644 (file)
@@ -146,7 +146,7 @@ struct mlx5e_neigh_hash_entry {
         */
        refcount_t refcnt;
 
-       /* Save the last reported time offloaded trafic pass over one of the
+       /* Save the last reported time offloaded traffic pass over one of the
         * neigh hash entry flows. Use it to periodically update the neigh
         * 'used' value and avoid neigh deleting by the kernel.
         */
index e5c4344a114ea1dc982962d0969f220f079cc588..d6ad7328f2988933e5bded46902e2a6b4130d80f 100644 (file)
@@ -97,7 +97,7 @@ struct mlx5e_tc_attr_to_reg_mapping mlx5e_tc_attr_to_reg_mappings[] = {
        [MARK_TO_REG] = mark_to_reg_ct,
        [LABELS_TO_REG] = labels_to_reg_ct,
        [FTEID_TO_REG] = fteid_to_reg_ct,
-       /* For NIC rules we store the retore metadata directly
+       /* For NIC rules we store the restore metadata directly
         * into reg_b that is passed to SW since we don't
         * jump between steering domains.
         */
@@ -2448,7 +2448,7 @@ static int __parse_cls_flower(struct mlx5e_priv *priv,
                        spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS_3;
                }
        }
-       /* Currenlty supported only for MPLS over UDP */
+       /* Currently supported only for MPLS over UDP */
        if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS) &&
            !netif_is_bareudp(filter_dev)) {
                NL_SET_ERR_MSG_MOD(extack,
index 7ffea2350f443103dc0f4126f8f8c7783fff7e32..2fde9f59e8b4f4d524c7363929fc926376eab880 100644 (file)
@@ -1492,7 +1492,7 @@ abort:
 /**
  * mlx5_eswitch_enable - Enable eswitch
  * @esw:       Pointer to eswitch
- * @num_vfs:   Enable eswitch swich for given number of VFs.
+ * @num_vfs:   Enable eswitch switch for given number of VFs.
  *             Caller must pass num_vfs > 0 when enabling eswitch for
  *             vf vports.
  * mlx5_eswitch_enable() returns 0 on success or error code on failure.
index d713ae24d6b6cb7f8a78e277baf766166588056d..a1ac3a654962e445448bbba95cce1e67e81857c6 100644 (file)
@@ -27,7 +27,7 @@ static int pcie_core(struct notifier_block *, unsigned long, void *);
 static int forward_event(struct notifier_block *, unsigned long, void *);
 
 static struct mlx5_nb events_nbs_ref[] = {
-       /* Events to be proccessed by mlx5_core */
+       /* Events to be processed by mlx5_core */
        {.nb.notifier_call = any_notifier,  .event_type = MLX5_EVENT_TYPE_NOTIFY_ANY },
        {.nb.notifier_call = temp_warn,     .event_type = MLX5_EVENT_TYPE_TEMP_WARN_EVENT },
        {.nb.notifier_call = port_module,   .event_type = MLX5_EVENT_TYPE_PORT_MODULE_EVENT },
index 0bba92cf5dc001e35fcb0f3d7203f4229113271c..8ec148010d627a2aebb5ae9d60a29e535c2ee29c 100644 (file)
@@ -1516,7 +1516,7 @@ static int mlx5_fpga_esp_modify_xfrm(struct mlx5_accel_esp_xfrm *xfrm,
        mutex_lock(&fpga_xfrm->lock);
 
        if (!fpga_xfrm->sa_ctx)
-               /* Unbounded xfrm, chane only sw attrs */
+               /* Unbounded xfrm, change only sw attrs */
                goto change_sw_xfrm_attrs;
 
        /* copy original hw sa */
index 8481027e493cb31481b60087619beeb97619318a..fee51050ed6451ef44fdc22a9503674f87ab227d 100644 (file)
@@ -2493,7 +2493,7 @@ static void set_prio_attrs_in_prio(struct fs_prio *prio, int acc_level)
                acc_level_ns = set_prio_attrs_in_ns(ns, acc_level);
 
                /* If this a prio with chains, and we can jump from one chain
-                * (namepsace) to another, so we accumulate the levels
+                * (namespace) to another, so we accumulate the levels
                 */
                if (prio->node.type == FS_TYPE_PRIO_CHAINS)
                        acc_level = acc_level_ns;
index 9abeb80ffa316c2dfeadf74be9fa5ed755f9a905..4a7de1259004e14ed61ee67a1a974e34d06c722a 100644 (file)
@@ -170,7 +170,7 @@ static bool reset_fw_if_needed(struct mlx5_core_dev *dev)
 
        /* The reset only needs to be issued by one PF. The health buffer is
         * shared between all functions, and will be cleared during a reset.
-        * Check again to avoid a redundant 2nd reset. If the fatal erros was
+        * Check again to avoid a redundant 2nd reset. If the fatal errors was
         * PCI related a reset won't help.
         */
        fatal_error = mlx5_health_check_fatal_sensors(dev);
index ce696d52349312b6cdcd00bfee1839ef88db6775..ffac8a0e7a2321659976e9dd1714f87617f8662e 100644 (file)
@@ -749,7 +749,7 @@ static int mlx5_pps_event(struct notifier_block *nb,
                } else {
                        ptp_event.type = PTP_CLOCK_EXTTS;
                }
-               /* TODOL clock->ptp can be NULL if ptp_clock_register failes */
+               /* TODOL clock->ptp can be NULL if ptp_clock_register fails */
                ptp_clock_event(clock->ptp, &ptp_event);
                break;
        case PTP_PF_PEROUT:
index 38084400ee8fab37d700f8536021851c75ed3fae..e3b0a131c3e15ac511498dea37ec62c663b3b62b 100644 (file)
@@ -40,7 +40,7 @@
 
 struct mlx5_vxlan {
        struct mlx5_core_dev            *mdev;
-       /* max_num_ports is usuallly 4, 16 buckets is more than enough */
+       /* max_num_ports is usually 4, 16 buckets is more than enough */
        DECLARE_HASHTABLE(htable, 4);
        struct mutex                    sync_lock; /* sync add/del port HW operations */
 };
index b25f764daa0889a1f848c6e109a9ae1cbe02378c..9fb75d79bf089945083fc89c56f5cea96c359088 100644 (file)
@@ -18,7 +18,7 @@
 
 #define MLX5_SFS_PER_CTRL_IRQ 64
 #define MLX5_IRQ_CTRL_SF_MAX 8
-/* min num of vectores for SFs to be enabled */
+/* min num of vectors for SFs to be enabled */
 #define MLX5_IRQ_VEC_COMP_BASE_SF 2
 
 #define MLX5_EQ_SHARE_IRQ_MAX_COMP (8)
@@ -597,7 +597,7 @@ void mlx5_irq_table_destroy(struct mlx5_core_dev *dev)
                return;
 
        /* There are cases where IRQs still will be in used when we reaching
-        * to here. Hence, making sure all the irqs are realeased.
+        * to here. Hence, making sure all the irqs are released.
         */
        irq_pools_destroy(table);
        pci_free_irq_vectors(dev->pdev);
index 720195c4be7cc29c0c5635f423b318fb2adfa0ad..13891fdc607e8c785d5a69267b307d354d0e0e60 100644 (file)
@@ -476,7 +476,7 @@ static void mlx5_sf_table_disable(struct mlx5_sf_table *table)
                return;
 
        /* Balances with refcount_set; drop the reference so that new user cmd cannot start
-        * and new vhca event handler cannnot run.
+        * and new vhca event handler cannot run.
         */
        mlx5_sf_table_put(table);
        wait_for_completion(&table->disable_complete);
index 0025913505ab565efdbae7db4d7f743248c4ab97..1e9d55dc1a9c72fa9ac98c8ed30ef38cee08753e 100644 (file)
@@ -1038,7 +1038,7 @@ enum {
 struct mlx5_mkey_seg {
        /* This is a two bit field occupying bits 31-30.
         * bit 31 is always 0,
-        * bit 30 is zero for regular MRs and 1 (e.g free) for UMRs that do not have tanslation
+        * bit 30 is zero for regular MRs and 1 (e.g free) for UMRs that do not have translation
         */
        u8              status;
        u8              pcie_control;
index af4dd6e9f97f7e04c00a23ab094dce6b7f683610..524051d1b2e301c3108b5fcae2cdc0966228527f 100644 (file)
@@ -581,7 +581,7 @@ struct mlx5_priv {
        /* end: qp staff */
 
        /* start: alloc staff */
-       /* protect buffer alocation according to numa node */
+       /* protect buffer allocation according to numa node */
        struct mutex            alloc_mutex;
        int                     numa_node;
 
@@ -1111,7 +1111,7 @@ static inline u8 mlx5_mkey_variant(u32 mkey)
 }
 
 /* Async-atomic event notifier used by mlx5 core to forward FW
- * evetns recived from event queue to mlx5 consumers.
+ * evetns received from event queue to mlx5 consumers.
  * Optimise event queue dipatching.
  */
 int mlx5_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb);