blob: 926ce634fd04202ee6f4f6adde2c6ab123030d24 [file] [log] [blame]
Mohsin Kazmi29467b52019-10-08 19:42:38 +02001/*
2 * Copyright (c) 2019 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef included_gso_h
17#define included_gso_h
18
19#include <vnet/vnet.h>
Mohsin Kazmid9e7ac32021-10-15 22:45:51 +000020#include <vnet/gso/hdr_offset_parser.h>
Mohsin Kazmi29467b52019-10-08 19:42:38 +020021
22typedef struct
23{
24 vlib_main_t *vlib_main;
25 vnet_main_t *vnet_main;
26 u16 msg_id_base;
27} gso_main_t;
28
29extern gso_main_t gso_main;
30
31int vnet_sw_interface_gso_enable_disable (u32 sw_if_index, u8 enable);
Mohsin Kazmid9e7ac32021-10-15 22:45:51 +000032u32 gso_segment_buffer (vlib_main_t *vm, vnet_interface_per_thread_data_t *ptd,
33 u32 bi, vlib_buffer_t *b, generic_header_offset_t *gho,
34 u32 n_bytes_b, u8 is_l2, u8 is_ip6);
Mohsin Kazmi29467b52019-10-08 19:42:38 +020035
Mohsin Kazmi29467b52019-10-08 19:42:38 +020036#endif /* included_gso_h */
37
38/*
39 * fd.io coding-style-patch-verification: ON
40 *
41 * Local Variables:
42 * eval: (c-set-style "gnu")
43 * End:
44 */