[netfpga] Remove duplicate definition
This commit is contained in:
parent
df73b417c6
commit
44749cc359
1 changed files with 15 additions and 15 deletions
|
@ -13,27 +13,27 @@ nico@nsg-System:~$ find . -name sume_switch.p4
|
|||
./master-thesis/support/semester-thesis-1/project/SSS_example_2_SS/bitsnpices/sume_switch.p4
|
||||
nico@nsg-System:~$
|
||||
|
||||
/******************** INFO ONLY *************************/
|
||||
|
||||
// one-hot encoded: {DMA, NF3, DMA, NF2, DMA, NF1, DMA, NF0}
|
||||
typedef bit<8> port_t;
|
||||
// typedef bit<8> port_t;
|
||||
|
||||
/* standard sume switch metadata */
|
||||
struct sume_metadata_t {
|
||||
bit<16> dma_q_size; // measured in 32-byte words
|
||||
bit<16> nf3_q_size; // measured in 32-byte words
|
||||
bit<16> nf2_q_size; // measured in 32-byte words
|
||||
bit<16> nf1_q_size; // measured in 32-byte words
|
||||
bit<16> nf0_q_size; // measured in 32-byte words
|
||||
bit<8> send_dig_to_cpu; // send digest_data to CPU
|
||||
bit<8> drop;
|
||||
port_t dst_port; // one-hot encoded: {DMA, NF3, DMA, NF2, DMA, NF1, DMA, NF0}
|
||||
port_t src_port; // one-hot encoded: {DMA, NF3, DMA, NF2, DMA, NF1, DMA, NF0}
|
||||
bit<16> pkt_len; // unsigned int
|
||||
}
|
||||
// struct sume_metadata_t {
|
||||
// bit<16> dma_q_size; // measured in 32-byte words
|
||||
// bit<16> nf3_q_size; // measured in 32-byte words
|
||||
// bit<16> nf2_q_size; // measured in 32-byte words
|
||||
// bit<16> nf1_q_size; // measured in 32-byte words
|
||||
// bit<16> nf0_q_size; // measured in 32-byte words
|
||||
// bit<8> send_dig_to_cpu; // send digest_data to CPU
|
||||
// bit<8> drop;
|
||||
// port_t dst_port; // one-hot encoded: {DMA, NF3, DMA, NF2, DMA, NF1, DMA, NF0}
|
||||
// port_t src_port; // one-hot encoded: {DMA, NF3, DMA, NF2, DMA, NF1, DMA, NF0}
|
||||
// bit<16> pkt_len; // unsigned int
|
||||
// }
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/********************************************************************************
|
||||
* Header
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue