Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove priority field from ternary table's action #4879

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions backends/tc/ebpfCodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,12 +896,6 @@ void EBPFTablePNA::emitValueStructStructure(EBPF::CodeBuilder *builder) {
builder->append("is_default_hit_act:1;");
builder->newline();

if (isTernaryTable()) {
builder->emitIndent();
builder->append("__u32 priority;");
builder->newline();
}

builder->emitIndent();
builder->append("union ");
builder->blockStart();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ struct __attribute__((__packed__)) MainControlImpl_set_ct_options_value {
u32 hit:1,
is_default_miss_act:1,
is_default_hit_act:1;
__u32 priority;
union {
struct {
} _NoAction;
Expand Down
1 change: 0 additions & 1 deletion testdata/p4tc_samples_outputs/matchtype_control_blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ struct __attribute__((__packed__)) MainControlImpl_ipv4_tbl_2_value {
u32 hit:1,
is_default_miss_act:1,
is_default_hit_act:1;
__u32 priority;
union {
struct {
} _NoAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ struct __attribute__((__packed__)) MainControlImpl_ipv4_tbl_2_value {
u32 hit:1,
is_default_miss_act:1,
is_default_hit_act:1;
__u32 priority;
union {
struct {
} _NoAction;
Expand Down Expand Up @@ -76,7 +75,6 @@ struct __attribute__((__packed__)) MainControlImpl_ipv4_tbl_3_value {
u32 hit:1,
is_default_miss_act:1,
is_default_hit_act:1;
__u32 priority;
union {
struct {
} _NoAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ struct __attribute__((__packed__)) MainControlImpl_set_ct_options_value {
u32 hit:1,
is_default_miss_act:1,
is_default_hit_act:1;
__u32 priority;
union {
struct {
} _NoAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ struct __attribute__((__packed__)) MainControlImpl_set_ct_options_value {
u32 hit:1,
is_default_miss_act:1,
is_default_hit_act:1;
__u32 priority;
union {
struct {
} _NoAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ struct __attribute__((__packed__)) ingress_nh_table_value {
u32 hit:1,
is_default_miss_act:1,
is_default_hit_act:1;
__u32 priority;
union {
struct {
} _NoAction;
Expand Down
Loading