Skip to content
Commit faaa3d56 authored by Ong Boon Leong's avatar Ong Boon Leong Committed by Yongxin Liu
Browse files

net: stmmac: Refactor __stmmac_xdp_run_prog for XDP ZC



commit bba71cac upstream.

Prepare stmmac_xdp_run_prog() for AF_XDP zero-copy support which will be
added by upcoming patches by splitting out the XDP verdict processing
into __stmmac_xdp_run_prog() and it callable for XDP ZC path which does
not need to verify bpf_prog is not NULL.

The stmmac_xdp_run_prog() is used for regular XDP Rx path which requires
bpf_prog to be verified.

Signed-off-by: default avatarOng Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarYongxin Liu <yongxin.liu@windriver.com>
parent e1a74d57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment