]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
eth: fbnic: realign whitespace
authorJakub Kicinski <kuba@kernel.org>
Tue, 24 Jun 2025 14:28:32 +0000 (07:28 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 26 Jun 2025 12:56:14 +0000 (14:56 +0200)
Relign various whitespace things. Some of it is spaces which should
be tabs and some is making sure the values are actually correctly
aligned to "columns" with 8 space tabs. Whitespace changes only.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250624142834.3275164-4-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/fbnic_csr.h
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
drivers/net/ethernet/meta/fbnic/fbnic_fw.h
drivers/net/ethernet/meta/fbnic/fbnic_netdev.h

index 1d8ff0cbe607e62cac164116fae8dec9ee0952de..9c89d53786680b161532e49278a9c4a95a12f7b1 100644 (file)
@@ -493,7 +493,7 @@ enum {
 
 #define FBNIC_PTP_ADD_VAL_NS           0x04806         /* 0x12018 */
 #define FBNIC_PTP_ADD_VAL_NS_MASK              CSR_GENMASK(15, 0)
-#define FBNIC_PTP_ADD_VAL_SUBNS                0x04807 /* 0x1201c */
+#define FBNIC_PTP_ADD_VAL_SUBNS                0x04807         /* 0x1201c */
 
 #define FBNIC_PTP_CTR_VAL_HI           0x04808         /* 0x12020 */
 #define FBNIC_PTP_CTR_VAL_LO           0x04809         /* 0x12024 */
@@ -816,16 +816,12 @@ enum {
 #define FBNIC_CSR_START_MAC_STAT       0x11a00
 #define FBNIC_MAC_STAT_RX_BYTE_COUNT_L 0x11a08         /* 0x46820 */
 #define FBNIC_MAC_STAT_RX_BYTE_COUNT_H 0x11a09         /* 0x46824 */
-#define FBNIC_MAC_STAT_RX_ALIGN_ERROR_L \
-                                       0x11a0a         /* 0x46828 */
-#define FBNIC_MAC_STAT_RX_ALIGN_ERROR_H \
-                                       0x11a0b         /* 0x4682c */
+#define FBNIC_MAC_STAT_RX_ALIGN_ERROR_L        0x11a0a         /* 0x46828 */
+#define FBNIC_MAC_STAT_RX_ALIGN_ERROR_H        0x11a0b         /* 0x4682c */
 #define FBNIC_MAC_STAT_RX_TOOLONG_L    0x11a0e         /* 0x46838 */
 #define FBNIC_MAC_STAT_RX_TOOLONG_H    0x11a0f         /* 0x4683c */
-#define FBNIC_MAC_STAT_RX_RECEIVED_OK_L        \
-                                       0x11a12         /* 0x46848 */
-#define FBNIC_MAC_STAT_RX_RECEIVED_OK_H        \
-                                       0x11a13         /* 0x4684c */
+#define FBNIC_MAC_STAT_RX_RECEIVED_OK_L        0x11a12         /* 0x46848 */
+#define FBNIC_MAC_STAT_RX_RECEIVED_OK_H        0x11a13         /* 0x4684c */
 #define FBNIC_MAC_STAT_RX_PACKET_BAD_FCS_L \
                                        0x11a14         /* 0x46850 */
 #define FBNIC_MAC_STAT_RX_PACKET_BAD_FCS_H \
@@ -882,10 +878,8 @@ enum {
                                        0x11a42         /* 0x46908 */
 #define FBNIC_MAC_STAT_TX_TRANSMITTED_OK_H \
                                        0x11a43         /* 0x4690c */
-#define FBNIC_MAC_STAT_TX_IFOUTERRORS_L \
-                                       0x11a46         /* 0x46918 */
-#define FBNIC_MAC_STAT_TX_IFOUTERRORS_H \
-                                       0x11a47         /* 0x4691c */
+#define FBNIC_MAC_STAT_TX_IFOUTERRORS_L        0x11a46         /* 0x46918 */
+#define FBNIC_MAC_STAT_TX_IFOUTERRORS_H        0x11a47         /* 0x4691c */
 #define FBNIC_MAC_STAT_TX_MULTICAST_L  0x11a4a         /* 0x46928 */
 #define FBNIC_MAC_STAT_TX_MULTICAST_H  0x11a4b         /* 0x4692c */
 #define FBNIC_MAC_STAT_TX_BROADCAST_L  0x11a4c         /* 0x46930 */
@@ -969,7 +963,7 @@ enum {
                                        0x3107e         /* 0xc41f8 */
 #define FBNIC_PUL_USER_OB_RD_DBG_CNT_NP_CRED_63_32 \
                                        0x3107f         /* 0xc41fc */
-#define FBNIC_CSR_END_PUL_USER 0x310ea /* CSR section delimiter */
+#define FBNIC_CSR_END_PUL_USER         0x310ea /* CSR section delimiter */
 
 /* Queue Registers
  *
index 7fe9983d3c0e51efc109677f26fd188adab82dce..588da02d6e22ea9011c88bc39ce45f4fe4da8d5b 100644 (file)
@@ -1676,43 +1676,42 @@ fbnic_get_rmon_stats(struct net_device *netdev,
 }
 
 static const struct ethtool_ops fbnic_ethtool_ops = {
-       .supported_coalesce_params      =
-                                 ETHTOOL_COALESCE_USECS |
-                                 ETHTOOL_COALESCE_RX_MAX_FRAMES,
-       .rxfh_max_num_contexts  = FBNIC_RPC_RSS_TBL_COUNT,
-       .get_drvinfo            = fbnic_get_drvinfo,
-       .get_regs_len           = fbnic_get_regs_len,
-       .get_regs               = fbnic_get_regs,
-       .get_link               = ethtool_op_get_link,
-       .get_coalesce           = fbnic_get_coalesce,
-       .set_coalesce           = fbnic_set_coalesce,
-       .get_ringparam          = fbnic_get_ringparam,
-       .set_ringparam          = fbnic_set_ringparam,
-       .get_pauseparam         = fbnic_phylink_get_pauseparam,
-       .set_pauseparam         = fbnic_phylink_set_pauseparam,
-       .get_strings            = fbnic_get_strings,
-       .get_ethtool_stats      = fbnic_get_ethtool_stats,
-       .get_sset_count         = fbnic_get_sset_count,
-       .get_rxnfc              = fbnic_get_rxnfc,
-       .set_rxnfc              = fbnic_set_rxnfc,
-       .get_rxfh_key_size      = fbnic_get_rxfh_key_size,
-       .get_rxfh_indir_size    = fbnic_get_rxfh_indir_size,
-       .get_rxfh               = fbnic_get_rxfh,
-       .set_rxfh               = fbnic_set_rxfh,
-       .get_rxfh_fields        = fbnic_get_rss_hash_opts,
-       .set_rxfh_fields        = fbnic_set_rss_hash_opts,
-       .create_rxfh_context    = fbnic_create_rxfh_context,
-       .modify_rxfh_context    = fbnic_modify_rxfh_context,
-       .remove_rxfh_context    = fbnic_remove_rxfh_context,
-       .get_channels           = fbnic_get_channels,
-       .set_channels           = fbnic_set_channels,
-       .get_ts_info            = fbnic_get_ts_info,
-       .get_ts_stats           = fbnic_get_ts_stats,
-       .get_link_ksettings     = fbnic_phylink_ethtool_ksettings_get,
-       .get_fecparam           = fbnic_phylink_get_fecparam,
-       .get_eth_mac_stats      = fbnic_get_eth_mac_stats,
-       .get_eth_ctrl_stats     = fbnic_get_eth_ctrl_stats,
-       .get_rmon_stats         = fbnic_get_rmon_stats,
+       .supported_coalesce_params      = ETHTOOL_COALESCE_USECS |
+                                         ETHTOOL_COALESCE_RX_MAX_FRAMES,
+       .rxfh_max_num_contexts          = FBNIC_RPC_RSS_TBL_COUNT,
+       .get_drvinfo                    = fbnic_get_drvinfo,
+       .get_regs_len                   = fbnic_get_regs_len,
+       .get_regs                       = fbnic_get_regs,
+       .get_link                       = ethtool_op_get_link,
+       .get_coalesce                   = fbnic_get_coalesce,
+       .set_coalesce                   = fbnic_set_coalesce,
+       .get_ringparam                  = fbnic_get_ringparam,
+       .set_ringparam                  = fbnic_set_ringparam,
+       .get_pauseparam                 = fbnic_phylink_get_pauseparam,
+       .set_pauseparam                 = fbnic_phylink_set_pauseparam,
+       .get_strings                    = fbnic_get_strings,
+       .get_ethtool_stats              = fbnic_get_ethtool_stats,
+       .get_sset_count                 = fbnic_get_sset_count,
+       .get_rxnfc                      = fbnic_get_rxnfc,
+       .set_rxnfc                      = fbnic_set_rxnfc,
+       .get_rxfh_key_size              = fbnic_get_rxfh_key_size,
+       .get_rxfh_indir_size            = fbnic_get_rxfh_indir_size,
+       .get_rxfh                       = fbnic_get_rxfh,
+       .set_rxfh                       = fbnic_set_rxfh,
+       .get_rxfh_fields                = fbnic_get_rss_hash_opts,
+       .set_rxfh_fields                = fbnic_set_rss_hash_opts,
+       .create_rxfh_context            = fbnic_create_rxfh_context,
+       .modify_rxfh_context            = fbnic_modify_rxfh_context,
+       .remove_rxfh_context            = fbnic_remove_rxfh_context,
+       .get_channels                   = fbnic_get_channels,
+       .set_channels                   = fbnic_set_channels,
+       .get_ts_info                    = fbnic_get_ts_info,
+       .get_ts_stats                   = fbnic_get_ts_stats,
+       .get_link_ksettings             = fbnic_phylink_ethtool_ksettings_get,
+       .get_fecparam                   = fbnic_phylink_get_fecparam,
+       .get_eth_mac_stats              = fbnic_get_eth_mac_stats,
+       .get_eth_ctrl_stats             = fbnic_get_eth_ctrl_stats,
+       .get_rmon_stats                 = fbnic_get_rmon_stats,
 };
 
 void fbnic_set_ethtool_ops(struct net_device *dev)
index 01756aba29fbe2c6913b1efc73f00bed29953798..ab58572c27aab2f02e8273cbcce297282216b260 100644 (file)
@@ -376,11 +376,11 @@ fbnic_fw_get_cmpl_by_type(struct fbnic_dev *fbd, u32 msg_type)
  *
  * Return:
  *   One the following values:
- *     -EOPNOTSUPP: Is not ASIC so mailbox is not supported
- *     -ENODEV: Device I/O error
- *     -ENOMEM: Failed to allocate message
- *     -EBUSY: No space in mailbox
- *     -ENOSPC: DMA mapping failed
+ *     -EOPNOTSUPP: Is not ASIC so mailbox is not supported
+ *     -ENODEV: Device I/O error
+ *     -ENOMEM: Failed to allocate message
+ *     -EBUSY: No space in mailbox
+ *     -ENOSPC: DMA mapping failed
  *
  * This function sends a single TLV header indicating the host wants to take
  * some action. However there are no other side effects which means that any
index 08bf87c5ddf668516d0dd8432cc08e0dcda33928..f3ed65cf976aad5b8e3e9f4742009b94ad1be15f 100644 (file)
@@ -19,10 +19,10 @@ struct fbnic_fw_mbx {
 };
 
 // FW_VER_MAX_SIZE must match ETHTOOL_FWVERS_LEN
-#define FBNIC_FW_VER_MAX_SIZE                  32
+#define FBNIC_FW_VER_MAX_SIZE                  32
 // Formatted version is in the format XX.YY.ZZ_RRR_COMMIT
 #define FBNIC_FW_CAP_RESP_COMMIT_MAX_SIZE      (FBNIC_FW_VER_MAX_SIZE - 13)
-#define FBNIC_FW_LOG_MAX_SIZE                  256
+#define FBNIC_FW_LOG_MAX_SIZE                  256
 
 struct fbnic_fw_ver {
        u32 version;
index 805a31cd94b5ed4bdae349c144ffda842310642c..ab8b8b0f9f64ed2683f9c0b5d383d9cdb342d33e 100644 (file)
@@ -81,6 +81,7 @@ int fbnic_netdev_register(struct net_device *netdev);
 void fbnic_netdev_unregister(struct net_device *netdev);
 void fbnic_reset_queues(struct fbnic_net *fbn,
                        unsigned int tx, unsigned int rx);
+
 void fbnic_set_ethtool_ops(struct net_device *dev);
 
 int fbnic_ptp_setup(struct fbnic_dev *fbd);