Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/af_xdp: ensure socket is deleted on Rx queue setup error
[ upstream commit b26431a ] The Rx queue setup can fail for many reasons eg. failure to setup the custom program, failure to allocate or reserve fill queue buffers, failure to configure busy polling etc. When a failure like one of these occurs, if the xsk is already set up it should be deleted before returning. This commit ensures this happens. Fixes: d8a2107 ("net/af_xdp: support unaligned umem chunks") Fixes: 288a85a ("net/af_xdp: enable custom XDP program loading") Fixes: 055a393 ("net/af_xdp: prefer busy polling") Fixes: 01fa83c ("net/af_xdp: workaround custom program loading") Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
- Loading branch information