[dpdk-dev] [PATCH v4 07/11] net/hinic/base: add various headers
Ferruh Yigit
ferruh.yigit at intel.com
Tue Jun 11 18:04:10 CEST 2019
On 6/6/2019 12:06 PM, Ziyang Xuan wrote:
> Add various headers that define mgmt commands, cmdq commands,
> rx data structures, tx data structures and basic defines for
> use in the code.
>
> Signed-off-by: Ziyang Xuan <xuanziyang2 at huawei.com>
<...>
> +#define PMD_DRV_LOG(level, fmt, args...) \
> + rte_log(RTE_LOG_ ## level, hinic_logtype, \
> + HINIC_DRIVER_NAME": " fmt "\n", ##args)
> +
> +#define HINIC_ASSERT_EN
> +
> +#ifdef HINIC_ASSERT_EN
> +#define HINIC_ASSERT(exp) \
> + do { \
> + if (!(exp)) { \
> + rte_panic("line%d\tassert \"" #exp "\" failed\n", \
> + __LINE__); \
> + } \
> + } while (0)
> +#else
> +#define HINIC_ASSERT(exp) do {} while (0)
> +#endif
So you are enabling asserting by default? Which can cause "rte_panic()" ?
Please make sure asserting is disabled by default, and please tie this to the
"CONFIG_RTE_ENABLE_ASSERT" config option. So it that option is disabled hinic
also should disable the assertions.
More information about the dev
mailing list