diff options
author | Jakub Grajciar <Jakub.Grajciar@pantheon.tech> | 2017-11-14 13:45:04 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-11-14 16:13:40 +0000 |
commit | 64ae77890c996d03458f0efe084ebb3f69f7e9ff (patch) | |
tree | 77d13f07a1ac9af571a3b6837e26649d0f0e2fc9 /src/vnet/devices/af_packet/cli.c | |
parent | fa600c9169c0d7104af7a9be12a0471a8a8c8262 (diff) |
vnet: af_packet_set_l4_cksum_offload device class check
Change-Id: Ie07b71977c46d2f1e030799a08cc5af0fdc397aa
Signed-off-by: Jakub Grajciar <Jakub.Grajciar@pantheon.tech>
Diffstat (limited to 'src/vnet/devices/af_packet/cli.c')
-rw-r--r-- | src/vnet/devices/af_packet/cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/devices/af_packet/cli.c b/src/vnet/devices/af_packet/cli.c index 29c0e060a91..faa07287418 100644 --- 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); |