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

Warning "Direct counter not used; ignoring" #632

Closed
vgurevich opened this issue May 15, 2017 · 2 comments
Closed

Warning "Direct counter not used; ignoring" #632

vgurevich opened this issue May 15, 2017 · 2 comments

Comments

@vgurevich
Copy link

While compiling the file testdata/p4_14_samples_outputs/counter.p4 the compiler produces the following message:

testdata/p4_14_samples_outputs/counter.p4(49): warning: my_direct_counter: Direct counter not used; ignoring
    @name("my_direct_counter") direct_counter(CounterType.bytes) my_direct_counter;
                                                                 ^^^^^^^^^^^^^^^^^

I do not believe this message is correct. This counter (my_direct_counter) is used in two actions (m_action_0 and _nop_0) and these actions are referenced in m_table that is, in turn, applied in control ingress.

I also saw this message appearing while compiling my own code, so it seems to be not limited to this file.

@jafingerhut
Copy link
Contributor

Probably a duplicate of #461

@mihaibudiu
Copy link
Contributor

This is a duplicate of #461, already assigned to @ChrisDodd.
I will close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants