提交 6634292b 编写于 作者: M Michael Chan 提交者: David S. Miller

[BNX2]: Fix minor loopback problem.

Use the configured MAC address instead of the permanent MAC address
for loopback frames.

Update version to 1.5.2.
Signed-off-by: NMichael Chan <mchan@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6a13add1
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
#define DRV_MODULE_NAME "bnx2" #define DRV_MODULE_NAME "bnx2"
#define PFX DRV_MODULE_NAME ": " #define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "1.5.1" #define DRV_MODULE_VERSION "1.5.2"
#define DRV_MODULE_RELDATE "November 15, 2006" #define DRV_MODULE_RELDATE "December 13, 2006"
#define RUN_AT(x) (jiffies + (x)) #define RUN_AT(x) (jiffies + (x))
...@@ -4005,7 +4005,7 @@ bnx2_run_loopback(struct bnx2 *bp, int loopback_mode) ...@@ -4005,7 +4005,7 @@ bnx2_run_loopback(struct bnx2 *bp, int loopback_mode)
if (!skb) if (!skb)
return -ENOMEM; return -ENOMEM;
packet = skb_put(skb, pkt_size); packet = skb_put(skb, pkt_size);
memcpy(packet, bp->mac_addr, 6); memcpy(packet, bp->dev->dev_addr, 6);
memset(packet + 6, 0x0, 8); memset(packet + 6, 0x0, 8);
for (i = 14; i < pkt_size; i++) for (i = 14; i < pkt_size; i++)
packet[i] = (unsigned char) (i & 0xff); packet[i] = (unsigned char) (i & 0xff);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册