lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <bb4b0a9c7649ea3db2d78673b092de5daed3a930.1522479607.git.joe@perches.com> Date: Sat, 31 Mar 2018 00:05:20 -0700 From: Joe Perches <joe@...ches.com> To: linux-kernel@...r.kernel.org Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org Subject: [PATCH 05/12] net: atm: Use ether_broadcast_addr Use the new global instead of a local static to reduce object code size a tiny bit. Signed-off-by: Joe Perches <joe@...ches.com> --- net/atm/lec.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/net/atm/lec.c b/net/atm/lec.c index 01d5d20a6eb1..ec47b45bd836 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c @@ -116,8 +116,6 @@ static struct lane2_ops lane2_ops = { .associate_indicator = NULL /* spec 3.1.5 */ }; -static unsigned char bus_mac[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; - /* Device structures */ static struct net_device *dev_lec[MAX_LEC_ITF]; @@ -1726,7 +1724,7 @@ static struct atm_vcc *lec_arp_resolve(struct lec_priv *priv, case 1: return priv->mcast_vcc; case 2: /* LANE2 wants arp for multicast addresses */ - if (ether_addr_equal(mac_to_find, bus_mac)) + if (ether_addr_equal(mac_to_find, ether_broadcast_addr)) return priv->mcast_vcc; break; default: @@ -1954,7 +1952,7 @@ lec_vcc_added(struct lec_priv *priv, const struct atmlec_ioc *ioc_data, if (ioc_data->receive == 2) { pr_debug("LEC_ARP: Attaching mcast forward\n"); #if 0 - entry = lec_arp_find(priv, bus_mac); + entry = lec_arp_find(priv, ether_broadcast_addr); if (!entry) { pr_info("LEC_ARP: Multicast entry not found!\n"); goto out; @@ -1963,7 +1961,7 @@ lec_vcc_added(struct lec_priv *priv, const struct atmlec_ioc *ioc_data, entry->recv_vcc = vcc; entry->old_recv_push = old_push; #endif - entry = make_entry(priv, bus_mac); + entry = make_entry(priv, ether_broadcast_addr); if (entry == NULL) goto out; del_timer(&entry->timer); @@ -1988,7 +1986,7 @@ lec_vcc_added(struct lec_priv *priv, const struct atmlec_ioc *ioc_data, ioc_data->atm_addr[14], ioc_data->atm_addr[15], ioc_data->atm_addr[16], ioc_data->atm_addr[17], ioc_data->atm_addr[18], ioc_data->atm_addr[19]); - entry = make_entry(priv, bus_mac); + entry = make_entry(priv, ether_broadcast_addr); if (entry == NULL) goto out; memcpy(entry->atm_addr, ioc_data->atm_addr, ATM_ESA_LEN); @@ -2071,7 +2069,7 @@ lec_vcc_added(struct lec_priv *priv, const struct atmlec_ioc *ioc_data, * Not found, snatch address from first data packet that arrives * from this vcc */ - entry = make_entry(priv, bus_mac); + entry = make_entry(priv, ether_broadcast_addr); if (!entry) goto out; entry->vcc = vcc; -- 2.15.0
Powered by blists - more mailing lists