44 else if (
unformat (line_input,
"enable"))
46 else if (
unformat (line_input,
"disable"))
55 if (sw_if_index == ~0)
64 case VNET_API_ERROR_INVALID_VALUE:
67 case VNET_API_ERROR_FEATURE_DISABLED:
81 .path =
"set interface feature gso",
82 .short_help =
"set interface feature gso <intfc> [enable | disable]",
static clib_error_t * set_interface_feature_gso_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vnet_main_t * vnet_get_main(void)
int vnet_sw_interface_gso_enable_disable(u32 sw_if_index, u8 enable)
unformat_function_t unformat_vnet_sw_interface
#define clib_error_return(e, args...)
#define VLIB_CLI_COMMAND(x,...)
vl_api_interface_index_t sw_if_index