diff options
author | Zhiyong Yang <zhiyong.yang@intel.com> | 2020-06-10 13:23:50 +0000 |
---|---|---|
committer | BenoƮt Ganne <bganne@cisco.com> | 2020-06-15 16:09:58 +0000 |
commit | 47ea4c35feda9cdb8e24d863e1dc3418fababb7b (patch) | |
tree | d762a2ad8e6f8c69045cd63110b7a6270da9db02 /src/vcl/vcl_locked.c | |
parent | c16fe4689055242c64c71d83e41908a8fb6c2726 (diff) |
vxlan: remove judgement with always true
if ((A | B) == false) it means both A and B are false, so for
the following code
if (PREDICT_FALSE (!good_udp1))
{
if ((flags1 & VNET_BUFFER_F_L4_CHECKSUM_COMPUTED) == 0)
{
...
}
}
if ((flags1 & VNET_BUFFER_F_L4_CHECKSUM_COMPUTED) == 0) is always
true if the code run it. Remove it.
Type: improvement
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Change-Id: I6bd1e9340c7a00089fc1c9ae49773add832d309e
Diffstat (limited to 'src/vcl/vcl_locked.c')
0 files changed, 0 insertions, 0 deletions