summaryrefslogtreecommitdiffstats
path: root/samples/bpf
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2015-05-21 12:16:56 +0200
committerDavid S. Miller <davem@davemloft.net>2015-05-22 23:59:16 -0400
commit4020726479ff799318a5aa188b81d79df86a0ea3 (patch)
treedd8a0a338ffebf50049f9da4b57af53af17c8ff2 /samples/bpf
parent2a1ddf27e8189e1d68336c55dd2f305b224ae8f1 (diff)
downloadblackbird-op-linux-4020726479ff799318a5aa188b81d79df86a0ea3.tar.gz
blackbird-op-linux-4020726479ff799318a5aa188b81d79df86a0ea3.zip
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 <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud