mbox series

[net-next,0/3] enetc: unlock XDP_REDIRECT for XDP non-linear buffers

Message ID cover.1672672314.git.lorenzo@kernel.org (mailing list archive)
Headers show
Series enetc: unlock XDP_REDIRECT for XDP non-linear buffers | expand

Message

Lorenzo Bianconi Jan. 2, 2023, 3:18 p.m. UTC
Unlock XDP_REDIRECT for S/G XDP buffer and rely on XDP stack to properly
take care of the frames.
Rely on XDP_FLAGS_HAS_FRAGS flag to check if it really necessary to access
non-linear part of the xdp_buff/xdp_frame.

Lorenzo Bianconi (3):
  net: ethernet: enetc: unlock XDP_REDIRECT for XDP non-linear buffers
  net: ethernet: enetc: get rid of xdp_redirect_sg counter
  net: ethernet: enetc: do not always access skb_shared_info in the XDP
    path

 drivers/net/ethernet/freescale/enetc/enetc.c  | 38 +++++++++----------
 drivers/net/ethernet/freescale/enetc/enetc.h  |  1 -
 .../ethernet/freescale/enetc/enetc_ethtool.c  |  2 -
 3 files changed, 18 insertions(+), 23 deletions(-)