mirror of https://github.com/F-Stack/f-stack.git
20 lines
219 B
Plaintext
20 lines
219 B
Plaintext
|
; SPDX-License-Identifier: BSD-3-Clause
|
||
|
; Copyright(c) 2022 Intel Corporation
|
||
|
|
||
|
//
|
||
|
// Meta-data.
|
||
|
//
|
||
|
struct metadata_t {
|
||
|
bit<32> port
|
||
|
}
|
||
|
|
||
|
metadata instanceof metadata_t
|
||
|
|
||
|
//
|
||
|
// Pipeline.
|
||
|
//
|
||
|
apply {
|
||
|
rx m.port
|
||
|
tx m.port
|
||
|
}
|