File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,7 +217,8 @@ check_all_ports_link_status(void)
217217 for (i = 0 ; i < nb_ports ; i ++ ) {
218218 uint16_t portid = ff_global_cfg .dpdk .portid_list [i ];
219219 memset (& link , 0 , sizeof (link ));
220- rte_eth_link_get_nowait (portid , & link );
220+ if (rte_eth_link_get_nowait (portid , & link ) < 0 )
221+ link .link_status = 0 ;
221222
222223 /* print link status if flag set */
223224 if (print_flag == 1 ) {
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ IMACROS_FILTER+= __CYGWIN__ __CYGWIN32__
109109IMACROS_FILTER+ = __FreeBSD__
110110IMACROS_FILTER+ = __linux __linux__ __gnu__linux__ linux
111111IMACROS_FILTER+ = _WIN32 _WIN64
112+ IMACROS_FILTER+ = __STDC_EMBED_EMPTY__ __STDC_EMBED_FOUND__ __STDC_EMBED_NOT_FOUND__
112113
113114SPACE = $(eval ) $(eval )
114115IMACROS_FILTER_EXPR: = $(subst ${SPACE},|,$(strip ${IMACROS_FILTER}) )
You can’t perform that action at this time.
0 commit comments