-
Notifications
You must be signed in to change notification settings - Fork 1
/
sdn-bier.p4
43 lines (39 loc) · 1.36 KB
/
sdn-bier.p4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*******************************************************************************
* BAREFOOT NETWORKS CONFIDENTIAL & PROPRIETARY
*
* Copyright (c) 2018-2019 Barefoot Networks, Inc.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of
* Barefoot Networks, Inc. and its suppliers, if any. The intellectual and
* technical concepts contained herein are proprietary to Barefoot Networks,
* Inc.
* and its suppliers and may be covered by U.S. and Foreign Patents, patents in
* process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material is
* strictly forbidden unless prior written permission is obtained from
* Barefoot Networks, Inc.
*
* No warranty, explicit or implicit is provided, unless granted under a
* written agreement with Barefoot Networks, Inc.
*
*
******************************************************************************/
#include <core.p4>
#if __TARGET_TOFINO__ == 2
#include <t2na.p4>
#else
#include <tna.p4>
#endif
#include "src/ports.p4"
#include "src/headers.p4"
#include "src/ingress.p4"
#include "src/egress.p4"
#include "src/parser.p4"
Pipeline(SwitchIngressParser(),
ingress(),
SwitchIngressDeparser(),
SwitchEgressParser(),
egress(),
SwitchEgressDeparser()) pipe;
Switch(pipe) main;