Skip to content

Commit

Permalink
Fix minor compilation error with IEEE1588.
Browse files Browse the repository at this point in the history
-- Unused variable error was preventing the build.

Signed-off-by: Bes Dollma <bdollma@cisco.com>
  • Loading branch information
bdollma committed Jul 23, 2021
1 parent f216802 commit f9c3120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main_dpdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1380,12 +1380,12 @@ COLD_FUNC void CPhyEthIF::start(){

m_stats.Clear();
int i;
struct timespec tp;

for (i=0;i<10; i++ ) {
ret = rte_eth_dev_start(m_repid);
if (ret==0) {
#ifdef RTE_LIBRTE_IEEE1588
struct timespec tp;
if ( !(CGlobalInfo::m_options.preview.getLatencyIEEE1588Disable())) {
ret = rte_eth_timesync_enable(m_repid);
if (ret == 0 ) {
Expand Down

0 comments on commit f9c3120

Please sign in to comment.