[dpdk-dev] [PATCH] test/event_crypto: add check for adapter failure

Jerin Jacob jerinjacobk at gmail.com
Mon Sep 30 15:27:36 CEST 2019


On Fri, Sep 27, 2019 at 3:40 PM Gujjar, Abhinandan S
<abhinandan.gujjar at intel.com> wrote:
>
> Acked-by: abhinandan.gujjar at intel.com


Changed to  Acked-by: Abhinandan Gujjar <abhinandan.gujjar at intel.com>
and Applied to dpdk-next-eventdev/master. Thanks.



>
> > -----Original Message-----
> > From: Hemant Agrawal <hemant.agrawal at nxp.com>
> > Sent: Friday, September 27, 2019 1:46 PM
> > To: dev at dpdk.org; Gujjar, Abhinandan S <abhinandan.gujjar at intel.com>
> > Cc: Hemant Agrawal <hemant.agrawal at nxp.com>
> > Subject: [PATCH] test/event_crypto: add check for adapter failure
> >
> > Return err if the adapter creation is failed.
> >
> > Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> > ---
> >  app/test/test_event_crypto_adapter.c | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/app/test/test_event_crypto_adapter.c
> > b/app/test/test_event_crypto_adapter.c
> > index 83f3214ca..275729ba6 100644
> > --- a/app/test/test_event_crypto_adapter.c
> > +++ b/app/test/test_event_crypto_adapter.c
> > @@ -814,7 +814,8 @@ test_crypto_adapter_conf_op_forward_mode(void)
> >       enum rte_event_crypto_adapter_mode mode;
> >
> >       mode = RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD;
> > -     test_crypto_adapter_conf(mode);
> > +     TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode),
> > +                             "Failed to config crypto adapter");
> >
> >       return TEST_SUCCESS;
> >  }
> > @@ -825,7 +826,9 @@ test_crypto_adapter_conf_op_new_mode(void)
> >       enum rte_event_crypto_adapter_mode mode;
> >
> >       mode = RTE_EVENT_CRYPTO_ADAPTER_OP_NEW;
> > -     test_crypto_adapter_conf(mode);
> > +     TEST_ASSERT_SUCCESS(test_crypto_adapter_conf(mode),
> > +                             "Failed to config crypto adapter");
> > +
> >       return TEST_SUCCESS;
> >  }
> >
> > --
> > 2.17.1
>


More information about the dev mailing list