[Intel-wired-lan] [PATCH v6 2/9] igc: Refactor __igc_xdp_run_prog()
Dvora Fuxbrumer
dvorax.fuxbrumer at linux.intel.com
Thu May 20 06:56:17 UTC 2021
On 23/04/2021 09:25, Jithu Joseph wrote:
> From: Andre Guedes <andre.guedes at intel.com>
>
> Refactor __igc_xdp_run_prog() helper from igc_xdp_run_prog(),
> preparing the code for AF_XDP zero-copy support which is added
> by upcoming patches.
>
> The existing igc_xdp_run_prog() caters to regular XDP rx path
> which has to verify if bpf_prog is not NULL. Zero-copy
> path assumes that bpf_prog is not NULL and hence this check is
> not required. Therefore it makes sense to refactor the common
> code into a helper function, to avoid code duplication.
>
> Signed-off-by: Andre Guedes <andre.guedes at intel.com>
> Signed-off-by: Vedang Patel <vedang.patel at intel.com>
> Signed-off-by: Jithu Joseph <jithu.joseph at intel.com>
> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc_main.c | 56 +++++++++++------------
> 1 file changed, 28 insertions(+), 28 deletions(-)
>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer at linux.intel.com>
More information about the Intel-wired-lan
mailing list