Remove historical artifacts from vnet/buffer.h

Change-Id: I7f50074a4ed5b62bef4584190eb849d90e90e592
Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
Dave Barach
2016-04-27 14:13:25 -04:00
committed by John Lo
parent ae65f5b6a8
commit 2a00d171a0

View File

@ -49,19 +49,13 @@
#define IP_BUFFER_L4_CHECKSUM_COMPUTED (1 << LOG2_IP_BUFFER_L4_CHECKSUM_COMPUTED) #define IP_BUFFER_L4_CHECKSUM_COMPUTED (1 << LOG2_IP_BUFFER_L4_CHECKSUM_COMPUTED)
#define IP_BUFFER_L4_CHECKSUM_CORRECT (1 << LOG2_IP_BUFFER_L4_CHECKSUM_CORRECT) #define IP_BUFFER_L4_CHECKSUM_CORRECT (1 << LOG2_IP_BUFFER_L4_CHECKSUM_CORRECT)
#define LOG2_HGSHM_BUFFER_USER_INDEX_VALID LOG2_VLIB_BUFFER_FLAG_USER(3)
#define VNET_HGSHM_BUFFER_USER_INDEX_VALID (1 << LOG2_HGSHM_BUFFER_USER_INDEX_VALID)
#define foreach_buffer_opaque_union_subtype \ #define foreach_buffer_opaque_union_subtype \
_(ethernet) \ _(ethernet) \
_(ip) \ _(ip) \
_(mcast) \ _(mcast) \
_(lb) \
_(dlb) \
_(swt) \ _(swt) \
_(l2) \ _(l2) \
_(l2t) \ _(l2t) \
_(hgshm) \
_(gre) \ _(gre) \
_(l2_classify) \ _(l2_classify) \
_(io_handoff) \ _(io_handoff) \
@ -140,20 +134,6 @@ typedef struct {
u32 original_free_list_index; u32 original_free_list_index;
} mcast; } mcast;
/* ipv6 shallow-pkt-inspection load-balancer, only valid there */
struct {
u8 lb_disable;
u8 user_to_network;
u8 was_injected;
u32 bucket_id;
} lb;
/* ipv4 DPI load-balancer, only valid there */
struct {
u8 lb_disable;
u8 user_to_network;
u32 session_index;
} dlb;
/* ip4-in-ip6 softwire termination, only valid there */ /* ip4-in-ip6 softwire termination, only valid there */
struct { struct {
u8 swt_disable; u8 swt_disable;
@ -175,12 +155,6 @@ typedef struct {
u32 session_index; u32 session_index;
} l2t; } l2t;
/* hgshm, valid if packet sent through iface */
struct {
u32 pad[8 -VLIB_N_RX_TX -1]; /* to end of opaque */
u32 user_index; /* client id borrowing buffer */
} hgshm;
struct { struct {
u32 src, dst; u32 src, dst;
} gre; } gre;