[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <k6ng19$fvd$1@ger.gmane.org>
Date: Tue, 30 Oct 2012 03:03:05 +0000 (UTC)
From: Cong Wang <xiyou.wangcong@...il.com>
To: linux-kernel@...r.kernel.org
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] bonding: fix bond 6 mode change MAC of arp reply from
vif to cause Domu's network unreachable intermittently
On Tue, 30 Oct 2012 at 02:47 GMT, Zheng Li <zheng.x.li@...cle.com> wrote:
> + struct slave *tmp_slave = NULL;
> + int i = 0, found_mac = 0;
> + bond_for_each_slave(bond, tmp_slave, i) {
> + if (ether_addr_equal_64bits(arp->mac_src,
> + tmp_slave->dev->dev_addr)) {
> + found_mac = 1;
> + break;
> + }
> + }
> + if (found_mac)
> + memcpy(arp->mac_src, tx_slave->dev->dev_addr,
> + ETH_ALEN);
A nitpick: found_mac can be a bool.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists