misc: fix coverity warnings
Type: fix Ticket: VPP-1837 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I9ec87d2293d8f92c3e488a0f61083cf815ac496c
This commit is contained in:
Dave Barach
committed by
Matthew Smith
parent
350f6d6ef4
commit
6440b7a602
@ -487,12 +487,13 @@ dpdk_lib_init (dpdk_main_t * dm)
|
||||
|
||||
if (dm->conf->no_tx_checksum_offload == 0)
|
||||
{
|
||||
xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_TCP_CKSUM;
|
||||
xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_UDP_CKSUM;
|
||||
xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_TCP_CKSUM;
|
||||
xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_UDP_CKSUM;
|
||||
xd->flags |=
|
||||
DPDK_DEVICE_FLAG_TX_OFFLOAD |
|
||||
DPDK_DEVICE_FLAG_INTEL_PHDR_CKSUM;
|
||||
}
|
||||
break;
|
||||
|
||||
case VNET_DPDK_PMD_THUNDERX:
|
||||
xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF;
|
||||
|
@ -347,7 +347,7 @@ clib_mem_vm_ext_free (clib_mem_vm_alloc_t * a)
|
||||
uword
|
||||
clib_mem_vm_reserve (uword start, uword size, u32 log2_page_sz)
|
||||
{
|
||||
uword off, pagesize = 1 << log2_page_sz;
|
||||
uword off, pagesize = 1ULL << log2_page_sz;
|
||||
int mmap_flags = MAP_PRIVATE | MAP_ANONYMOUS;
|
||||
u8 *p;
|
||||
|
||||
|
Reference in New Issue
Block a user