[P4-dev] generate_digest

yun chen tingyun0313 at gmail.com
Thu Dec 8 11:24:46 EST 2016


hello,

I'm trying to add some item in generate_digest and learn_client.
But after I add in the generate_digest.p4 like below

field_list mac_learn_digest {
    ethernet.srcAddr;
    ethernet.etherType;
    standard_metadata.ingress_port;
}

and learn_client.cpp

typedef struct {
  char src_addr[6];
  uint16_t etherType;
  uint16_t ingress_port;
} __attribute__((packed)) sample_t;

it will core dump and show

terminate called after throwing an instance of 'bm_runtime::standard::
InvalidTableOperation'
  what():  Default TException.


I don't know how to fix it, what should I do?

Yun Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20161209/0de3b836/attachment-0002.html>


More information about the P4-dev mailing list