The issue was with updating checksum and setting option fields valid.
" action send(PortId_t port) {
ig_tm_md.ucast_egress_port = port;
hdr.ipv4.ihl = 6;
hdr.ipv4_option.setValid();
hdr.ipv4_option.queuelength = (bit<32>)eg_intr_md.deq_qdepth; } "
The issue was with updating checksum and setting option fields valid.
" action send(PortId_t port) {
ig_tm_md.ucast_egress_port = port;
hdr.ipv4.ihl = 6;
hdr.ipv4_option.setValid();
hdr.ipv4_option.queuelength = (bit<32>)eg_intr_md.deq_qdepth; } "