From: John Daley Date: Fri, 3 Jun 2016 00:22:56 +0000 (-0700) Subject: net/enic: expand local Tx mbuf flags variable to 64-bits X-Git-Tag: spdx-start~6536 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=486cd8919f9e97587cab1d5b5a20ed9c348ceea6;p=dpdk.git 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 Signed-off-by: John Daley Acked-by: Piotr Azarewicz --- diff --git a/drivers/net/enic/enic_rxtx.c b/drivers/net/enic/enic_rxtx.c index b9713252af..08ab630c14 100644 --- a/drivers/net/enic/enic_rxtx.c +++ b/drivers/net/enic/enic_rxtx.c @@ -384,7 +384,7 @@ uint16_t enic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, struct vnic_wq *wq = (struct vnic_wq *)tx_queue; struct enic *enic = vnic_dev_priv(wq->vdev); unsigned short vlan_id; - unsigned short ol_flags; + uint64_t ol_flags; unsigned int wq_desc_avail; int head_idx; struct vnic_wq_buf *buf;