diff options
author | Florin Coras <fcoras@cisco.com> | 2019-03-06 10:44:38 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-03-07 00:47:42 +0000 |
commit | f940f8a40fc41d66a9ab5ea15c574120c49eb92b (patch) | |
tree | aa36c02d567a60d62e6255f872dc736aff2a7515 /src/vnet/session/transport.h | |
parent | fe97da3203c64461f752e854faa97c69b8d225f4 (diff) |
session: use transport custom tx for app transports
Change-Id: I675f7090fa6b2ffdfb4ee748df858bfb7e39ce5a
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/transport.h')
-rw-r--r-- | src/vnet/session/transport.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/session/transport.h b/src/vnet/session/transport.h index 8500e9d2445..e446a3934d1 100644 --- a/src/vnet/session/transport.h +++ b/src/vnet/session/transport.h @@ -45,6 +45,7 @@ typedef struct _transport_proto_vft u32 (*tx_fifo_offset) (transport_connection_t * tc); void (*update_time) (f64 time_now, u8 thread_index); void (*flush_data) (transport_connection_t *tconn); + int (*custom_tx) (void *session); /* * Connection retrieval @@ -104,6 +105,12 @@ transport_get_half_open (transport_proto_t tp, u32 conn_index) return tp_vfts[tp].get_half_open (conn_index); } +static inline int +transport_custom_tx (transport_proto_t tp, void *s) +{ + return tp_vfts[tp].custom_tx (s); +} + void transport_register_protocol (transport_proto_t transport_proto, const transport_proto_vft_t * vft, fib_protocol_t fib_proto, u32 output_node); |