[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1400147197-22445-2-git-send-email-liuhangbin@gmail.com>
Date: Thu, 15 May 2014 17:46:36 +0800
From: Hangbin Liu <liuhangbin@...il.com>
To: David Miller <davem@...emloft.net>
Cc: Francesco Fondelli <francesco.fondelli@...il.com>,
netdev@...r.kernel.org, Hangbin Liu <liuhangbin@...il.com>
Subject: [PATCH net 2/3] pktgen: give user result when disable vlan/svlan
Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
---
net/core/pktgen.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index dcf367f..1809bdf 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -1573,8 +1573,7 @@ static ssize_t pktgen_if_write(struct file *file,
pkt_dev->vlan_id = 0xffff; /* turn off VLAN/SVLAN */
pkt_dev->svlan_id = 0xffff;
- if (debug)
- pr_debug("VLAN/SVLAN turned off\n");
+ sprintf(pg_result, "OK: VLAN/SVLAN turned off");
}
return count;
}
@@ -1629,8 +1628,7 @@ static ssize_t pktgen_if_write(struct file *file,
} else {
pkt_dev->svlan_id = 0xffff;
- if (debug)
- pr_debug("SVLAN turned off\n");
+ sprintf(pg_result, "OK: SVLAN turned off");
}
return count;
}
--
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists