[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM6PR07MB4923FF466A042976872087889EDA0@DM6PR07MB4923.namprd07.prod.outlook.com>
Date: Wed, 21 Nov 2018 04:43:43 +0000
From: "Goutham, Sunil" <Sunil.Goutham@...ium.com>
To: Lorenzo Bianconi <lorenzo.bianconi@...hat.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: thunderx: nicvf_xdp_setup error code path
> -----Original Message-----
> From: Lorenzo Bianconi <lorenzo.bianconi@...hat.com>
> Sent: 20 November 2018 23:27
> To: netdev@...r.kernel.org
> Cc: Goutham, Sunil <Sunil.Goutham@...ium.com>
> Subject: net: thunderx: nicvf_xdp_setup error code path
>
> External Email
>
> Hi all,
>
> looking at thunderx XDP support I noticed that nic->xdp_prog pointer in
> nicvf_xdp_setup is not actually set to NULL if bpf_prog_add fails but it
> is initialized with bpf_prog_add error code. xdp_prog pointer value is used in
> the driver to verify if XDP is currently enabled.
> Moreover nicvf_xdp_setup does not report to the userspace any error code in
> case of failure.
> I wrote the following patch to fix the reported issues. Please note I just
> compiled it, not actually tested since I have no thunderx nic at the moment.
>
> @Sunil: could you please give it a whirl? If it is ok I will post a formal
> patch, thanks
>
> Regards,
> Lorenzo
>
Thanks for fixing, changes look good to me,
Sunil.
Powered by blists - more mailing lists