]> err.no Git - linux-2.6/commitdiff
[PATCH] aoe [5/8]: allow network interface migration on packet retransmit
authorEd L. Cashin <ecashin@coraid.com>
Thu, 19 Jan 2006 18:46:25 +0000 (13:46 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 24 Mar 2006 06:01:56 +0000 (22:01 -0800)
Retransmit to the current network interface for an AoE device.

Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com>
drivers/block/aoe/aoecmd.c

index 34b8c8c13f9adb167045c2b2102c9a31c70de593..22bebf87945c7aaa268614394551db5f370734b5 100644 (file)
@@ -286,6 +286,8 @@ rexmit(struct aoedev *d, struct frame *f)
        h = (struct aoe_hdr *) f->data;
        f->tag = n;
        h->tag = cpu_to_be32(n);
+       memcpy(h->dst, d->addr, sizeof h->dst);
+       memcpy(h->src, d->ifp->dev_addr, sizeof h->src);
 
        skb = skb_prepare(d, f);
        if (skb) {