Re: [dpdk-dev] [PATCH] ethdev: move non null judgment of ops function pointer ahead

2020-01-16 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit On 2020/1/17 5:08, Ferruh Yigit wrote: On 1/16/2020 12:27 PM, Wei Hu (Xavier) wrote: From: "Wei Hu (Xavier)" This patch moves the following judgement statement to the first half of the function named rte_eth_dev_set_vlan_offload, so we can avoid changing the content of dev->d

Re: [dpdk-dev] [PATCH] ethdev: move non null judgment of ops function pointer ahead

2020-01-16 Thread Ferruh Yigit
On 1/16/2020 12:27 PM, Wei Hu (Xavier) wrote: > From: "Wei Hu (Xavier)" > > This patch moves the following judgement statement to the first half of > the function named rte_eth_dev_set_vlan_offload, so we can avoid changing > the content of dev->data->dev_conf.rxmode.offloads even when the pointe

[dpdk-dev] [PATCH] ethdev: move non null judgment of ops function pointer ahead

2020-01-16 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" This patch moves the following judgement statement to the first half of the function named rte_eth_dev_set_vlan_offload, so we can avoid changing the content of dev->data->dev_conf.rxmode.offloads even when the pointer named dev->dev_ops->vlan_offload_set is NULL: RTE_FUNC