[dpdk-dev] [EXT] Re: [PATCH v4] net/octeontx2: add set supported types op
Pavan Nikhilesh Bhagavatula
pbhagavatula at marvell.com
Fri Nov 15 15:02:42 CET 2019
>On 11/7/2019 2:52 AM, pbhagavatula at marvell.com wrote:
>> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
>>
>> Add support to set supported ptypes for octeontx2.
>>
>> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
>
><...>
>
>> @@ -62,6 +62,21 @@ otx2_nix_supported_ptypes_get(struct
>rte_eth_dev *eth_dev)
>> return NULL;
>> }
>>
>> +int
>> +otx2_nix_ptypes_set(struct rte_eth_dev *eth_dev, uint32_t
>ptype_mask)
>> +{
>> + struct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);
>> +
>> + if (ptype_mask)
>> + dev->rx_offload_flags |= NIX_RX_OFFLOAD_PTYPE_F;
>> + else
>> + dev->rx_offload_flags &=
>~NIX_RX_OFFLOAD_PTYPE_F;
>> +
>> + otx2_eth_set_rx_function(eth_dev);
>> +
>> + return 0;
>
>Aren't you using 'ptype_mask' value? Is it just used to enable/disable?
Yes, currently it's just to enable/disable. Later we plan to resize our internal array.
More information about the dev
mailing list