net/enic: expand local Tx mbuf flags variable to 64-bits
authorJohn Daley <johndale@cisco.com>
Fri, 3 Jun 2016 00:22:56 +0000 (17:22 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 15 Jun 2016 15:13:56 +0000 (17:13 +0200)
commit486cd8919f9e97587cab1d5b5a20ed9c348ceea6
treeae28e8e8397fa9afc4affbca5d62a6440e6ac0ce
parent1a4b563fa810fd08e5e8c51117270402c10d1d88
net/enic: expand local Tx mbuf flags variable to 64-bits

The offload flags variable (ol_flags) in rte_mbuf structure is 64-bits,
so local copy of it must be 64-bits too. Moreover bit comparison between
16-bits variable and 64-bits value make no sense. This breaks Tx vlan
IP and L4 offloads.

Coverity issue: 13218
Fixes: fefed3d1e62c ("enic: new driver")

Suggested-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
Signed-off-by: John Daley <johndale@cisco.com>
Acked-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
drivers/net/enic/enic_rxtx.c