Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ip: Path MTU
[vpp.git]
/
src
/
vnet
/
dpo
/
dpo.h
diff --git
a/src/vnet/dpo/dpo.h
b/src/vnet/dpo/dpo.h
index
ee4990d
..
e9976c2
100644
(file)
--- a/
src/vnet/dpo/dpo.h
+++ b/
src/vnet/dpo/dpo.h
@@
-24,6
+24,8
@@
* instances.
*/
* instances.
*/
+// clang-format off
+
#ifndef __DPO_H__
#define __DPO_H__
#ifndef __DPO_H__
#define __DPO_H__
@@
-361,6
+363,16
@@
extern void dpo_stack_from_node(u32 child_node,
*/
extern u32 dpo_get_urpf(const dpo_id_t *dpo);
*/
extern u32 dpo_get_urpf(const dpo_id_t *dpo);
+/**
+ * Get the MTU DPO
+ *
+ * @param dpo
+ * The DPO from which to get the MTU
+ *
+ * @return MTU (0xffff if something more usefull was unavailable)
+ */
+extern u16 dpo_get_mtu(const dpo_id_t *dpo);
+
/**
* @brief A lock function registered for a DPO type
*/
/**
* @brief A lock function registered for a DPO type
*/
@@
-388,6
+400,11
@@
typedef u32* (*dpo_get_next_node_t)(const dpo_id_t *dpo);
*/
typedef u32 (*dpo_get_urpf_t)(const dpo_id_t *dpo);
*/
typedef u32 (*dpo_get_urpf_t)(const dpo_id_t *dpo);
+/**
+ * @brief Given a DPO instance return the MTU
+ */
+typedef u16 (*dpo_get_mtu_t)(const dpo_id_t *dpo);
+
/**
* @brief Called during FIB interposition when the originally
* registered DPO is used to 'clone' an instance for interposition
/**
* @brief Called during FIB interposition when the originally
* registered DPO is used to 'clone' an instance for interposition
@@
-432,6
+449,10
@@
typedef struct dpo_vft_t_
* Get uRPF interface
*/
dpo_get_urpf_t dv_get_urpf;
* Get uRPF interface
*/
dpo_get_urpf_t dv_get_urpf;
+ /**
+ * Get MTU
+ */
+ dpo_get_mtu_t dv_get_mtu;
/**
* Signal on an interposed child that the parent has changed
*/
/**
* Signal on an interposed child that the parent has changed
*/
@@
-548,3
+569,5
@@
do { \
if ((YESNO)) vlib_worker_thread_barrier_release((VM));
#endif
if ((YESNO)) vlib_worker_thread_barrier_release((VM));
#endif
+
+// clang-format on