[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
|
#+END_CENTER
|
||||||
**** TODO Netpfga: analysing wireguard
|
**** TODO Netpfga: analysing wireshark
|
||||||
- Content changes
|
- Content / payload changes
|
||||||
|
|
||||||
|
|
||||||
** The NetPFGA saga
|
** The NetPFGA saga
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
#define Parsed_packet headers
|
#define Parsed_packet headers
|
||||||
#define user_metadata_t metadata
|
#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
|
// digest_data, MUST be 256 bits -- not using it
|
||||||
struct digest_data_t {
|
struct digest_data_t {
|
||||||
bit<256> unused;
|
bit<256> unused;
|
||||||
|
@ -25,7 +28,7 @@ parser RealParser(
|
||||||
#include "parsers.p4"
|
#include "parsers.p4"
|
||||||
}
|
}
|
||||||
|
|
||||||
@Xilinx_MaxPacketRegion(1024)
|
@Xilinx_MaxPacketRegion(MAX_NETPFGA_PACKET_SIZE_BITS)
|
||||||
parser TopParser(
|
parser TopParser(
|
||||||
packet_in b,
|
packet_in b,
|
||||||
out Parsed_packet p,
|
out Parsed_packet p,
|
||||||
|
@ -99,7 +102,7 @@ control RealDeParser(
|
||||||
#include "deparser.p4"
|
#include "deparser.p4"
|
||||||
}
|
}
|
||||||
|
|
||||||
@Xilinx_MaxPacketRegion(1024)
|
@Xilinx_MaxPacketRegion(MAX_NETPFGA_PACKET_SIZE_BITS)
|
||||||
control TopDeparser(
|
control TopDeparser(
|
||||||
packet_out b,
|
packet_out b,
|
||||||
in Parsed_packet p,
|
in Parsed_packet p,
|
||||||
|
|
Loading…
Reference in a new issue