learn: Allow read-only fields to be matched.
authorBen Pfaff <blp@nicira.com>
Tue, 27 Sep 2011 20:10:58 +0000 (13:10 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Oct 2011 20:43:39 +0000 (13:43 -0700)
commitdb0a4375c455bbea40aa127c954d8727013e1dc2
treea438daa72dfb89c2945ab6d90aa1907231abb3d8
parent15c819b439d9c76e51ebc99c88e55182707732bd
learn: Allow read-only fields to be matched.

nxm_dst_check() requires a writable field.  Since NX_LEARN_DST_MATCH only
matches on a field and doesn't write to a field, use nxm_src_check() for
that case instead.

Bug #7507.
Reported-by: Michael Mao <mmao@nicira.com>
lib/learn.c