[netfpga] Raise parser size to 1500 bytes
This commit is contained in:
parent
53a4530ce0
commit
fc8b5f2c7b
2 changed files with 7 additions and 4 deletions
|
@ -8836,8 +8836,8 @@ printf %0500d\\n 42 | socat - UDP:10.0.0.66:2345
|
|||
|
||||
|
||||
#+END_CENTER
|
||||
**** TODO Netpfga: analysing wireguard
|
||||
- Content changes
|
||||
**** TODO Netpfga: analysing wireshark
|
||||
- Content / payload changes
|
||||
|
||||
|
||||
** The NetPFGA saga
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
#define Parsed_packet headers
|
||||
#define user_metadata_t metadata
|
||||
|
||||
// 1500 mtu * 8 = 12000
|
||||
#define MAX_NETPFGA_PACKET_SIZE_BITS 12000
|
||||
|
||||
// digest_data, MUST be 256 bits -- not using it
|
||||
struct digest_data_t {
|
||||
bit<256> unused;
|
||||
|
@ -25,7 +28,7 @@ parser RealParser(
|
|||
#include "parsers.p4"
|
||||
}
|
||||
|
||||
@Xilinx_MaxPacketRegion(1024)
|
||||
@Xilinx_MaxPacketRegion(MAX_NETPFGA_PACKET_SIZE_BITS)
|
||||
parser TopParser(
|
||||
packet_in b,
|
||||
out Parsed_packet p,
|
||||
|
@ -99,7 +102,7 @@ control RealDeParser(
|
|||
#include "deparser.p4"
|
||||
}
|
||||
|
||||
@Xilinx_MaxPacketRegion(1024)
|
||||
@Xilinx_MaxPacketRegion(MAX_NETPFGA_PACKET_SIZE_BITS)
|
||||
control TopDeparser(
|
||||
packet_out b,
|
||||
in Parsed_packet p,
|
||||
|
|
Loading…
Reference in a new issue