p4-dev@lists.p4.org

list for questions/discussion of p4 programs and tools

View all threads

Re: XOR operation in P4_16

NS
Nik Sultana
Wed, Apr 21, 2021 2:44 PM

(Looping in p4-dev -- best to 'cc all' in case somebody's seen the same problem)

On Wed, 21 Apr 2021, Francisco Machado wrote:

Yes, BMv2. I am using the repository p4-learning
https://github.com/nsg-ethz/p4-learning and running different code
instead of the examples/tutorials.

Mininet just returns " P4 switch s1 did not start correctly. Check the
switch log file.", while the log only says " Unknown hash algorithm: xor16."

That does seem to come from BMv2.
In case you're running up against an incomplete implementation of these
features, have you tried using other values in HashAlgorithm, such as
crc32 or identity, to see if they go through?

(Looping in p4-dev -- best to 'cc all' in case somebody's seen the same problem) On Wed, 21 Apr 2021, Francisco Machado wrote: > Yes, BMv2. I am using the repository p4-learning > <https://github.com/nsg-ethz/p4-learning> and running different code > instead of the examples/tutorials. > > Mininet just returns " P4 switch s1 did not start correctly. Check the > switch log file.", while the log only says " Unknown hash algorithm: xor16." That does seem to come from BMv2. In case you're running up against an incomplete implementation of these features, have you tried using other values in HashAlgorithm, such as crc32 or identity, to see if they go through?
FM
Francisco Machado
Wed, Apr 21, 2021 8:13 PM

Yes. All other HashAlgorithms are working.

Nik Sultana nsultana@seas.upenn.edu escreveu no dia quarta, 21/04/2021
à(s) 15:44:

(Looping in p4-dev -- best to 'cc all' in case somebody's seen the same
problem)

On Wed, 21 Apr 2021, Francisco Machado wrote:

Yes, BMv2. I am using the repository p4-learning
https://github.com/nsg-ethz/p4-learning and running different code
instead of the examples/tutorials.

Mininet just returns " P4 switch s1 did not start correctly. Check the
switch log file.", while the log only says " Unknown hash algorithm:

xor16."

That does seem to come from BMv2.
In case you're running up against an incomplete implementation of these
features, have you tried using other values in HashAlgorithm, such as
crc32 or identity, to see if they go through?

Yes. All other HashAlgorithms are working. Nik Sultana <nsultana@seas.upenn.edu> escreveu no dia quarta, 21/04/2021 à(s) 15:44: > (Looping in p4-dev -- best to 'cc all' in case somebody's seen the same > problem) > > On Wed, 21 Apr 2021, Francisco Machado wrote: > > Yes, BMv2. I am using the repository p4-learning > > <https://github.com/nsg-ethz/p4-learning> and running different code > > instead of the examples/tutorials. > > > > Mininet just returns " P4 switch s1 did not start correctly. Check the > > switch log file.", while the log only says " Unknown hash algorithm: > xor16." > > That does seem to come from BMv2. > In case you're running up against an incomplete implementation of these > features, have you tried using other values in HashAlgorithm, such as > crc32 or identity, to see if they go through? >
NS
Nik Sultana
Wed, Apr 21, 2021 8:17 PM

On Wed, 21 Apr 2021, Francisco Machado wrote:

Yes. All other HashAlgorithms are working.

Thanks for checking. I haven't encountered this behaviour -- if you
don't receive a reply from somebody else on the list I'd suggest you
create an Issue at https://github.com/p4lang/behavioral-model (after
checking that an existing issue doesn't already cover this) and one of
the developers is likely to pick it up.

Nik Sultana nsultana@seas.upenn.edu escreveu no dia quarta, 21/04/2021
à(s) 15:44:

(Looping in p4-dev -- best to 'cc all' in case somebody's seen the same
problem)

On Wed, 21 Apr 2021, Francisco Machado wrote:

Yes, BMv2. I am using the repository p4-learning
https://github.com/nsg-ethz/p4-learning and running different code
instead of the examples/tutorials.

Mininet just returns " P4 switch s1 did not start correctly. Check the
switch log file.", while the log only says " Unknown hash algorithm:
xor16."

That does seem to come from BMv2.
In case you're running up against an incomplete implementation of these
features, have you tried using other values in HashAlgorithm, such as
crc32 or identity, to see if they go through?

On Wed, 21 Apr 2021, Francisco Machado wrote: > Yes. All other HashAlgorithms are working. Thanks for checking. I haven't encountered this behaviour -- if you don't receive a reply from somebody else on the list I'd suggest you create an Issue at https://github.com/p4lang/behavioral-model (after checking that an existing issue doesn't already cover this) and one of the developers is likely to pick it up. > > Nik Sultana <nsultana@seas.upenn.edu> escreveu no dia quarta, 21/04/2021 > à(s) 15:44: > > > (Looping in p4-dev -- best to 'cc all' in case somebody's seen the same > > problem) > > > > On Wed, 21 Apr 2021, Francisco Machado wrote: > > > Yes, BMv2. I am using the repository p4-learning > > > <https://github.com/nsg-ethz/p4-learning> and running different code > > > instead of the examples/tutorials. > > > > > > Mininet just returns " P4 switch s1 did not start correctly. Check the > > > switch log file.", while the log only says " Unknown hash algorithm: > > xor16." > > > > That does seem to come from BMv2. > > In case you're running up against an incomplete implementation of these > > features, have you tried using other values in HashAlgorithm, such as > > crc32 or identity, to see if they go through?
FM
Francisco Machado
Thu, Apr 22, 2021 5:02 PM

I am going to open an issue and will report here if any solution comes up.
Thanks for the help.

Nik Sultana nsultana@seas.upenn.edu escreveu no dia quarta, 21/04/2021
à(s) 21:17:

On Wed, 21 Apr 2021, Francisco Machado wrote:

Yes. All other HashAlgorithms are working.

Thanks for checking. I haven't encountered this behaviour -- if you
don't receive a reply from somebody else on the list I'd suggest you
create an Issue at https://github.com/p4lang/behavioral-model (after
checking that an existing issue doesn't already cover this) and one of
the developers is likely to pick it up.

Nik Sultana nsultana@seas.upenn.edu escreveu no dia quarta, 21/04/2021
à(s) 15:44:

(Looping in p4-dev -- best to 'cc all' in case somebody's seen the same
problem)

On Wed, 21 Apr 2021, Francisco Machado wrote:

Yes, BMv2. I am using the repository p4-learning
https://github.com/nsg-ethz/p4-learning and running different code
instead of the examples/tutorials.

Mininet just returns " P4 switch s1 did not start correctly. Check

the

switch log file.", while the log only says " Unknown hash algorithm:

xor16."

That does seem to come from BMv2.
In case you're running up against an incomplete implementation of these
features, have you tried using other values in HashAlgorithm, such as
crc32 or identity, to see if they go through?

I am going to open an issue and will report here if any solution comes up. Thanks for the help. Nik Sultana <nsultana@seas.upenn.edu> escreveu no dia quarta, 21/04/2021 à(s) 21:17: > On Wed, 21 Apr 2021, Francisco Machado wrote: > > > Yes. All other HashAlgorithms are working. > > Thanks for checking. I haven't encountered this behaviour -- if you > don't receive a reply from somebody else on the list I'd suggest you > create an Issue at https://github.com/p4lang/behavioral-model (after > checking that an existing issue doesn't already cover this) and one of > the developers is likely to pick it up. > > > > > Nik Sultana <nsultana@seas.upenn.edu> escreveu no dia quarta, 21/04/2021 > > à(s) 15:44: > > > > > (Looping in p4-dev -- best to 'cc all' in case somebody's seen the same > > > problem) > > > > > > On Wed, 21 Apr 2021, Francisco Machado wrote: > > > > Yes, BMv2. I am using the repository p4-learning > > > > <https://github.com/nsg-ethz/p4-learning> and running different code > > > > instead of the examples/tutorials. > > > > > > > > Mininet just returns " P4 switch s1 did not start correctly. Check > the > > > > switch log file.", while the log only says " Unknown hash algorithm: > > > xor16." > > > > > > That does seem to come from BMv2. > > > In case you're running up against an incomplete implementation of these > > > features, have you tried using other values in HashAlgorithm, such as > > > crc32 or identity, to see if they go through? >