OpenCloudOS-Kernel/drivers/net/ethernet/amazon/ena
Sameeh Jubran 3921a81c31 net: ena: xdp: update napi budget for DROP and ABORTED
This patch fixes two issues with XDP:

1. If the XDP verdict is XDP_ABORTED we break the loop, which results in
   us handling one buffer per napi cycle instead of the total budget
   (usually 64). To overcome this simply change the xdp_verdict check to
   != XDP_PASS. When the verdict is XDP_PASS, the skb is not expected to
   be NULL.

2. Update the residual budget for XDP_DROP and XDP_ABORTED, since
   packets are handled in these cases.

Fixes: 548c4940b9 ("net: ena: Implement XDP_TX action")
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-04 15:43:01 -07:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ena_admin_defs.h net: ena: cosmetic: fix spacing issues 2020-05-22 14:12:48 -07:00
ena_com.c net: ena: reduce driver load time 2020-05-22 14:12:48 -07:00
ena_com.h net: ena: reduce driver load time 2020-05-22 14:12:48 -07:00
ena_common_defs.h net: ena: cosmetic: fix spacing issues 2020-05-22 14:12:48 -07:00
ena_eth_com.c net: ena: cosmetic: minor code changes 2020-05-22 14:12:48 -07:00
ena_eth_com.h net: ena: rename ena_com_free_desc to make API more uniform 2020-05-22 14:12:48 -07:00
ena_eth_io_defs.h net: ena: cosmetic: fix spacing issues 2020-05-22 14:12:48 -07:00
ena_ethtool.c net: ena: cosmetic: remove unnecessary code 2020-05-22 14:12:48 -07:00
ena_netdev.c net: ena: xdp: update napi budget for DROP and ABORTED 2020-06-04 15:43:01 -07:00
ena_netdev.h net: ena: reduce driver load time 2020-05-22 14:12:48 -07:00
ena_pci_id_tbl.h
ena_regs_defs.h net: ena: cosmetic: fix spacing issues 2020-05-22 14:12:48 -07:00