Skip to content

Commit

Permalink
Fix iavf on ubuntu 20
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed May 24, 2024
1 parent 5d297a9 commit 8f0dec3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/intel/iavf/iavf-4.9.5-zc/src/iavf_txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2286,7 +2286,11 @@ static int iavf_clean_rx_irq(struct iavf_ring *rx_ring, int budget)
}

if (xdp_xmit & IAVF_XDP_REDIR)
xdp_do_flush(); //xdp_do_flush_map();
#ifdef HAVE_XDP_DO_FLUSH_MAP
xdp_do_flush_map();
#else
xdp_do_flush();
#endif

if (xdp_xmit & IAVF_XDP_TX) {
struct iavf_ring *xdp_ring =
Expand Down
1 change: 1 addition & 0 deletions drivers/intel/iavf/iavf-4.9.5-zc/src/kcompat-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function gen-ethtool() {
function gen-filter() {
fh='include/linux/filter.h'
gen NEED_NO_NETDEV_PROG_XDP_WARN_ACTION if fun bpf_warn_invalid_xdp_action lacks 'struct net_device \\*' in "$fh"
gen HAVE_XDP_DO_FLUSH_MAP if fun xdp_do_flush_map in "$fh"
gen NEED_XDP_DO_FLUSH if fun xdp_do_flush absent in "$fh"
}

Expand Down

0 comments on commit 8f0dec3

Please sign in to comment.