]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/tm.c
net/nfp: fix possible bad shif operation
[dpdk.git] / app / test-pmd / tm.c
index da1adda98a74ed3941f8739d314d144162288b79..dd837cb8c37bcfd8a3af1edc941714d013340c3d 100644 (file)
@@ -335,7 +335,7 @@ set_tm_hiearchy_nodes_shaper_rate(portid_t port_id, struct tm_hierarchy *h)
        memset(&link_params, 0, sizeof(link_params));
 
        rte_eth_link_get(port_id, &link_params);
-       tm_port_rate = link_params.link_speed * BYTES_IN_MBPS;
+       tm_port_rate = (uint64_t)link_params.link_speed * BYTES_IN_MBPS;
 
        if (tm_port_rate > UINT32_MAX)
                tm_port_rate = UINT32_MAX;