From: Jesper Dangaard Brouer Date: Thu, 21 May 2015 10:16:56 +0000 (+0200) Subject: pktgen: make /proc/net/pktgen/pgctrl report fail on invalid input X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~234^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4020726479ff799318a5aa188b81d79df86a0ea3;p=pandora-kernel.git pktgen: make /proc/net/pktgen/pgctrl report fail on invalid input Giving /proc/net/pktgen/pgctrl an invalid command just returns shell success and prints a warning in dmesg. This is not very useful for shell scripting, as it can only detect the error by parsing dmesg. Instead return -EINVAL when the command is unknown, as this provides userspace shell scripting a way of detecting this. Also bump version tag to 2.75, because (1) reading /proc/net/pktgen/pgctrl output this version number which would allow to detect this small semantic change, and (2) because the pktgen version tag have not been updated since 2010. Signed-off-by: Jesper Dangaard Brouer Signed-off-by: David S. Miller --- Reading git-diff-tree failed