Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vnet: af_packet_set_l4_cksum_offload device class check
[vpp.git]
/
src
/
vnet
/
devices
/
af_packet
/
cli.c
diff --git
a/src/vnet/devices/af_packet/cli.c
b/src/vnet/devices/af_packet/cli.c
index
29c0e06
..
faa0728
100644
(file)
--- a/
src/vnet/devices/af_packet/cli.c
+++ b/
src/vnet/devices/af_packet/cli.c
@@
-225,7
+225,8
@@
af_packet_set_l4_cksum_offload_command_fn (vlib_main_t * vm,
}
}
- af_packet_set_l4_cksum_offload (vm, sw_if_index, set);
+ if (af_packet_set_l4_cksum_offload (vm, sw_if_index, set) < 0)
+ error = clib_error_return (0, "not an af_packet interface");
done:
unformat_free (line_input);