net: bonding: add some required blank lines
authorYufeng Mo <moyufeng@huawei.com>
Thu, 20 May 2021 06:18:32 +0000 (14:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 May 2021 22:43:24 +0000 (15:43 -0700)
Add some blank lines after declarations as required.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_procfs.c
drivers/net/bonding/bond_sysfs.c

index 3455f2cc13f2776078675cf89282fd5436621c02..c63e0d1faa63e2510e5ac4b68ba736718201f9e9 100644 (file)
@@ -104,6 +104,7 @@ static void __tlb_clear_slave(struct bonding *bond, struct slave *slave,
                index = SLAVE_TLB_INFO(slave).head;
                while (index != TLB_NULL_INDEX) {
                        u32 next_index = tx_hash_table[index].next;
+
                        tlb_init_table_entry(&tx_hash_table[index], save_load);
                        index = next_index;
                }
@@ -628,6 +629,7 @@ static struct slave *rlb_choose_channel(struct sk_buff *skb,
 
                if (!client_info->assigned) {
                        u32 prev_tbl_head = bond_info->rx_hashtbl_used_head;
+
                        bond_info->rx_hashtbl_used_head = hash_index;
                        client_info->used_next = prev_tbl_head;
                        if (prev_tbl_head != RLB_NULL_INDEX) {
@@ -830,6 +832,7 @@ static void rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp)
        while (index != RLB_NULL_INDEX) {
                struct rlb_client_info *entry = &(bond_info->rx_hashtbl[index]);
                u32 next_index = entry->src_next;
+
                if (entry->ip_src == arp->ip_src &&
                    !ether_addr_equal_64bits(arp->mac_src, entry->mac_src))
                                rlb_delete_table_entry(bond, index);
index 20bbda1b36e1e71968ce2498bce098529b7e00cb..e786a9c42bfd754a77951914616874d50e7fd60b 100644 (file)
@@ -2272,6 +2272,7 @@ static int bond_release_and_destroy(struct net_device *bond_dev,
 static void bond_info_query(struct net_device *bond_dev, struct ifbond *info)
 {
        struct bonding *bond = netdev_priv(bond_dev);
+
        bond_fill_ifbond(bond, info);
 }
 
@@ -4849,6 +4850,7 @@ static const struct device_type bond_type = {
 static void bond_destructor(struct net_device *bond_dev)
 {
        struct bonding *bond = netdev_priv(bond_dev);
+
        if (bond->wq)
                destroy_workqueue(bond->wq);
 }
index 56d34be5e79773e4a073f8f5fc84459eb9d1afd2..0fb1da361bb18a4a9030c1ead42d312cce72ca79 100644 (file)
@@ -112,6 +112,7 @@ static void bond_info_show_master(struct seq_file *seq)
        /* ARP information */
        if (bond->params.arp_interval > 0) {
                int printed = 0;
+
                seq_printf(seq, "ARP Polling Interval (ms): %d\n",
                                bond->params.arp_interval);
 
index 2d615a93685e8d4b4fdbcfa423a3d143bba71e72..5f9e9a2402261933ea8351fd1cf81d7263f588e1 100644 (file)
@@ -385,6 +385,7 @@ static ssize_t bonding_show_num_peer_notif(struct device *d,
                                           char *buf)
 {
        struct bonding *bond = to_bond(d);
+
        return sprintf(buf, "%d\n", bond->params.num_peer_notif);
 }
 static DEVICE_ATTR(num_grat_arp, 0644,
@@ -496,6 +497,7 @@ static ssize_t bonding_show_ad_aggregator(struct device *d,
 
        if (BOND_MODE(bond) == BOND_MODE_8023AD) {
                struct ad_info ad_info;
+
                count = sprintf(buf, "%d\n",
                                bond_3ad_get_active_agg_info(bond, &ad_info)
                                ?  0 : ad_info.aggregator_id);
@@ -516,6 +518,7 @@ static ssize_t bonding_show_ad_num_ports(struct device *d,
 
        if (BOND_MODE(bond) == BOND_MODE_8023AD) {
                struct ad_info ad_info;
+
                count = sprintf(buf, "%d\n",
                                bond_3ad_get_active_agg_info(bond, &ad_info)
                                ?  0 : ad_info.ports);
@@ -536,6 +539,7 @@ static ssize_t bonding_show_ad_actor_key(struct device *d,
 
        if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) {
                struct ad_info ad_info;
+
                count = sprintf(buf, "%d\n",
                                bond_3ad_get_active_agg_info(bond, &ad_info)
                                ?  0 : ad_info.actor_key);
@@ -556,6 +560,7 @@ static ssize_t bonding_show_ad_partner_key(struct device *d,
 
        if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) {
                struct ad_info ad_info;
+
                count = sprintf(buf, "%d\n",
                                bond_3ad_get_active_agg_info(bond, &ad_info)
                                ?  0 : ad_info.partner_key);
@@ -576,6 +581,7 @@ static ssize_t bonding_show_ad_partner_mac(struct device *d,
 
        if (BOND_MODE(bond) == BOND_MODE_8023AD && capable(CAP_NET_ADMIN)) {
                struct ad_info ad_info;
+
                if (!bond_3ad_get_active_agg_info(bond, &ad_info))
                        count = sprintf(buf, "%pM\n", ad_info.partner_system);
        }
@@ -660,6 +666,7 @@ static ssize_t bonding_show_tlb_dynamic_lb(struct device *d,
                                           char *buf)
 {
        struct bonding *bond = to_bond(d);
+
        return sprintf(buf, "%d\n", bond->params.tlb_dynamic_lb);
 }
 static DEVICE_ATTR(tlb_dynamic_lb, 0644,