[dpdk-dev] [PATCH v1 30/42] net/txgbe: add device info get

Ferruh Yigit ferruh.yigit at intel.com
Wed Sep 9 19:54:56 CEST 2020


On 9/1/2020 12:51 PM, Jiawen Wu wrote:
> Add device information get operation.
> 
> Signed-off-by: Jiawen Wu <jiawenwu at trustnetic.com>

<...>

> +uint64_t
> +txgbe_get_rx_queue_offloads(struct rte_eth_dev *dev __rte_unused)
> +{
> +	uint64_t offloads = 0;
> +
> +	offloads |= DEV_RX_OFFLOAD_VLAN_STRIP;
>

Instead of initialize to zero and or the value, can just assign it.


More information about the dev mailing list