commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=b3565f1c13561e1a1f0b4a4c6cc855f1c75c9bc3
branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk

The new netpoll callback rx_hook() removes last sk_buff parameter.
Don't do the mac address copy in rx_hook any more.
A all 1 mac address works well when sending udp packet by netpoll_send_udp.

Signed-off-by: Sonic Zhang <[email protected]>
---
 drivers/net/kgdboe.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/net/kgdboe.c b/drivers/net/kgdboe.c
index 1f7f53f..c3f5d82 100644
--- a/drivers/net/kgdboe.c
+++ b/drivers/net/kgdboe.c
@@ -41,7 +41,6 @@ static atomic_t in_count;
 /* 0 = unconfigured, 1 = netpoll options parsed, 2 = fully configured. */
 static int configured;
 static struct kgdb_io local_kgdb_io_ops;
-static int use_dynamic_mac;
 
 MODULE_DESCRIPTION("KGDB driver for network interfaces");
 MODULE_LICENSE("GPL");
@@ -51,20 +50,12 @@ static struct kparam_string kps = {
 	.maxlen = MAX_CONFIG_LEN,
 };
 
-static void rx_hook(struct netpoll *np, int port, char *msg, int len,
-		    struct sk_buff *skb)
+static void rx_hook(struct netpoll *np, int port, char *msg, int len)
 {
 	int i;
 
 	np->remote_port = port;
 
-	/* Copy the MAC address if we need to. */
-	if (use_dynamic_mac) {
-		memcpy(np->remote_mac, eth_hdr(skb)->h_source,
-				sizeof(np->remote_mac));
-		use_dynamic_mac = 0;
-	}
-
 	/*
 	 * This could be GDB trying to attach.  But it could also be GDB
 	 * finishing up a session, with kgdb_connected=0 but GDB sending
@@ -164,8 +155,6 @@ static int option_setup(char *opt)
 	strcpy(opt_scratch, opt);
 	configured = !netpoll_parse_options(&np, opt_scratch);
 
-	use_dynamic_mac = 1;
-
 	return 0;
 }
 __setup("kgdboe=", option_setup);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to