P4ELTE / t4p4s

Retargetable compiler for the P4 language
http://p4.elte.hu/
Apache License 2.0
119 stars 42 forks source link

Broadcast and drop port are the same #37

Closed manuel-simon closed 3 years ago

manuel-simon commented 3 years ago

Hi,

it seems that the special ports for dropping and broadcasting packets have the same value.

src/hardware_dep/dpdk/includes/dpdk_nicon.h 14:#define T4P4S_BROADCAST_PORT 100

src/hardware_dep/dpdk/includes/dpdk_model_v1model.h 20:#define EGRESS_DROP_VALUE 100

Therefore, it is not possible to broadcast a packet in the v1model. What would be a suitable value for the broadcasting port?

kitlei-robert commented 3 years ago

Fixed: the two values are different now.