lkml.org 
[lkml]   [2023]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH net v1 1/2] virtio_net: Fix error unwinding of XDP initialization
    On Fri, Apr 28, 2023 at 06:37:12PM -0400, Feng Liu wrote:
    > When initializing XDP in virtnet_open(), some rq xdp initialization
    > may hit an error causing net device open failed. However, previous
    > rqs have already initialized XDP and enabled NAPI, which is not the
    > expected behavior. Need to roll back the previous rq initialization
    > to avoid leaks in error unwinding of init code.
    >
    > Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
    > Signed-off-by: Feng Liu <feliu@nvidia.com>
    > Reviewed-by: William Tu <witu@nvidia.com>
    > Reviewed-by: Parav Pandit <parav@nvidia.com>

    Reviewed-by: Simon Horman <simon.horman@corigine.com>

    \
     
     \ /
      Last update: 2023-05-01 14:44    [W:6.524 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site