compile failed error: Could not determine header storage for srv6_list

116 views
Skip to first unread message

Guilherme Matos

unread,
Dec 20, 2020, 9:40:40 PM12/20/20
to open-nfp
Hi everybody,

I'm getting this error when compiling a P4 code. I think It's related to the header stack

compile failed error: Could not determine header storage for srv6_list

Below, some of my code:
================================================
header srv6list_t {
    ip6Addr_t segment_id;
}
================================================
struct headers {
    ethernet_t   ethernet;
    ipv6_t       ipv6_outer;
    srv6_t       srv6;
    srv6list_t[max_hops]  srv6_list;
    udp_t        udp;
    gtp_t        gtp;
    gtp_ext_t    gtp_ext;
    pdu_container_t    pdu_container;
    ipv6_t       ipv6_inner;
    tcp_t        tcp_inner;
    udp_t        udp_inner;
}
================================================
control MyDeparser(packet_out packet, in headers hdr) {
    apply {
        packet.emit(hdr.ethernet);
        packet.emit(hdr.ipv6_outer);
        packet.emit(hdr.srv6);
        packet.emit(hdr.srv6_list);
        packet.emit(hdr.udp);
        packet.emit(hdr.gtp);
        packet.emit(hdr.gtp_ext);
        packet.emit(hdr.pdu_container);
        packet.emit(hdr.ipv6_inner);
        packet.emit(hdr.tcp_inner);
        packet.emit(hdr.udp_inner);
    }
}

If I put the green line after the blue line, the error stops and the code compiles normally.

Does anyone know what's going on here?

Guilherme Matos

unread,
Jan 21, 2021, 10:51:34 PM1/21/21
to open-nfp
It's a friendly reminder...

VITOR HUGO DOS SANTOS DUARTE

unread,
Sep 11, 2023, 8:12:36 PM9/11/23
to open-nfp
estou tendo o mesmo problema, como você resolveu?
Reply all
Reply to author
Forward
0 new messages