[dpdk-dev] [PATCH v4 1/5] compress/zlib: add ZLIB PMD

Verma, Shally Shally.Verma at cavium.com
Tue Jul 24 09:20:02 CEST 2018



>-----Original Message-----
>From: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>
>Sent: 24 July 2018 03:29
>To: Verma, Shally <Shally.Verma at cavium.com>
>Cc: dev at dpdk.org; Athreya, Narayana Prasad <NarayanaPrasad.Athreya at cavium.com>; Challa, Mahipal
><Mahipal.Challa at cavium.com>; Gupta, Ashish <Ashish.Gupta at cavium.com>; Sahu, Sunila <Sunila.Sahu at cavium.com>
>Subject: RE: [PATCH v4 1/5] compress/zlib: add ZLIB PMD
>
...
>
>> +++ b/drivers/compress/zlib/zlib_pmd.c
>
>...
>
>> +static int
>> +zlib_probe(struct rte_vdev_device *vdev) {
>> +     struct rte_compressdev_pmd_init_params init_params = {
>> +             "",
>> +             rte_socket_id()
>> +     };
>> +     const char *name;
>> +     const char *input_args;
>> +
>> +     name = rte_vdev_device_name(vdev);
>> +
>> +     if (name == NULL)
>> +             return -EINVAL;
>> +     input_args = rte_vdev_device_args(vdev);
>> +     rte_compressdev_pmd_parse_input_args(&init_params, input_args);
>
>Need to check the return value of this function.
Ack.

Thanks
Shally



More information about the dev mailing list