X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Finterface.h;h=5c418593a42531156433f0979361a2d25f5d136d;hb=6a7cff7ec234af8529ff72a530076e191cc8d759;hp=174e5347ad22e9127dd74f342d03a867ee8bd584;hpb=be30fea370ed7cfe6a4a1b154a944411ec3eabd0;p=vpp.git diff --git a/src/vnet/interface.h b/src/vnet/interface.h index 174e5347ad2..5c418593a42 100644 --- a/src/vnet/interface.h +++ b/src/vnet/interface.h @@ -475,6 +475,9 @@ typedef enum vnet_hw_interface_flags_t_ /* tx checksum offload */ VNET_HW_INTERFACE_FLAG_SUPPORTS_TX_L4_CKSUM_OFFLOAD = (1 << 17), + + /* gso */ + VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO = (1 << 18), } vnet_hw_interface_flags_t; #define VNET_HW_INTERFACE_FLAG_DUPLEX_SHIFT 1 @@ -789,6 +792,12 @@ typedef struct u32 tx_node_index; } vnet_hw_interface_nodes_t; +typedef struct +{ + u32 *split_buffers; + u32 padding[14]; +} vnet_interface_per_thread_data_t; + typedef struct { /* Hardware interfaces. */ @@ -827,6 +836,12 @@ typedef struct u32 pcap_pkts_to_capture; uword *pcap_drop_filter_hash; + /* per-thread data */ + vnet_interface_per_thread_data_t *per_thread_data; + + /* enable GSO processing in packet path if this count is > 0 */ + u32 gso_interface_count; + /* feature_arc_index */ u8 output_feature_arc_index; } vnet_interface_main_t;