Skip to content

Commit

Permalink
xsk: Remove unused xsk_buff_discard
Browse files Browse the repository at this point in the history
The previous commit removed the last usage of xsk_buff_discard in mlx5e,
so the function that is no longer used can be removed.

Signed-off-by: Maxim Mikityanskiy <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
CC: "Björn Töpel" <[email protected]>
CC: Magnus Karlsson <[email protected]>
CC: Maciej Fijalkowski <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
nvmmax authored and kuba-moo committed Sep 30, 2022
1 parent 6470d2e commit f2f1675
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/net/xdp_sock_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ static inline void xsk_buff_free(struct xdp_buff *xdp)
xp_free(xskb);
}

static inline void xsk_buff_discard(struct xdp_buff *xdp)
{
struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);

xp_release(xskb);
}

static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size)
{
xdp->data = xdp->data_hard_start + XDP_PACKET_HEADROOM;
Expand Down

0 comments on commit f2f1675

Please sign in to comment.