Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
PPPoE usses a midchain adjacency stack on an interface-tx DPO
[vpp.git]
/
src
/
vnet
/
dpo
/
interface_rx_dpo.h
diff --git
a/src/vnet/dpo/interface_dpo.h
b/src/vnet/dpo/interface_rx_dpo.h
similarity index 62%
rename from
src/vnet/dpo/interface_dpo.h
rename to
src/vnet/dpo/interface_rx_dpo.h
index
1538dfb
..
edecce0
100644
(file)
--- a/
src/vnet/dpo/interface_dpo.h
+++ b/
src/vnet/dpo/interface_rx_dpo.h
@@
-12,17
+12,19
@@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-/**
- * @brief
- * The data-path object representing interfaceing the packet, i.e. it's for-us
- */
-#ifndef __INTERFACE_DPO_H__
-#define __INTERFACE_DPO_H__
+#ifndef __INTERFACE_
RX_
DPO_H__
+#define __INTERFACE_
RX_
DPO_H__
#include <vnet/dpo/dpo.h>
#include <vnet/dpo/dpo.h>
-typedef struct interface_dpo_t_
+/**
+ * @brief
+ * The data-path object representing a change of receive interface.
+ * If a packet encounters an object of this type in the data-path, it's
+ * RX interface is changed.
+ */
+typedef struct interface_rx_dpo_t_
{
/**
* The Software interface index that the packets will be given
{
/**
* The Software interface index that the packets will be given
@@
-45,23
+47,23
@@
typedef struct interface_dpo_t_
* number of locks.
*/
u16 ido_locks;
* number of locks.
*/
u16 ido_locks;
-} interface_dpo_t;
+} interface_
rx_
dpo_t;
-extern void interface_dpo_add_or_lock (dpo_proto_t proto,
- u32 sw_if_index,
- dpo_id_t *dpo);
+extern void interface_
rx_
dpo_add_or_lock (dpo_proto_t proto,
+
u32 sw_if_index,
+
dpo_id_t *dpo);
-extern void interface_dpo_module_init(void);
+extern void interface_
rx_
dpo_module_init(void);
/**
* @brief pool of all interface DPOs
*/
/**
* @brief pool of all interface DPOs
*/
-interface_
dpo_t *interface
_dpo_pool;
+interface_
rx_dpo_t *interface_rx
_dpo_pool;
-static inline interface_dpo_t *
-interface_dpo_get (index_t index)
+static inline interface_
rx_
dpo_t *
+interface_
rx_
dpo_get (index_t index)
{
{
- return (pool_elt_at_index(interface_dpo_pool, index));
+ return (pool_elt_at_index(interface_
rx_
dpo_pool, index));
}
#endif
}
#endif