Skip to content

Commit

Permalink
Initialise compiler_meta__->egress_port to zero
Browse files Browse the repository at this point in the history
In some cases, the skb may have put rubbish in the skb->cb
When this happens, egress_port may be different then zero and end up
causing an accidental redirect
Fix this by initialising it to zero at the start of the entrypoint
function

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
  • Loading branch information
vbnogueira committed Jan 16, 2025
1 parent d7182c2 commit 75cef15
Show file tree
Hide file tree
Showing 58 changed files with 60 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backends/tc/ebpfCodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ void TCIngressPipelinePNA::emitGlobalMetadataInitializer(EBPF::CodeBuilder *buil
builder->emitIndent();
builder->append("compiler_meta__->recirculate = false;");
builder->newline();
builder->emitIndent();
builder->append("compiler_meta__->egress_port = 0;");
builder->newline();

// workaround to make TC protocol-independent, DO NOT REMOVE
builder->emitIndent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/calculator_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/checksum_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/digest_01_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/digest_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/hash1_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/hash_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/ipip_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/is_net_port_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/matchtype_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/meter_color_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
1 change: 1 addition & 0 deletions testdata/p4tc_samples_outputs/meter_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ int tc_ingress_func(struct __sk_buff *skb) {
struct pna_global_metadata *compiler_meta__ = (struct pna_global_metadata *) skb->cb;
compiler_meta__->drop = false;
compiler_meta__->recirculate = false;
compiler_meta__->egress_port = 0;
if (!compiler_meta__->recirculated) {
compiler_meta__->mark = 153;
struct internal_metadata *md = (struct internal_metadata *)(unsigned long)skb->data_meta;
Expand Down
Loading

0 comments on commit 75cef15

Please sign in to comment.