aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krawczyk <mk@semihalf.com>2022-01-21 18:53:40 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2022-01-21 18:57:04 +0000
commit41160c140e31c8ee0d7de4b2f7b9857e6cad57d0 (patch)
tree68493eaba3a354d187e939b2c8fd1492ad6a2912
parent32e1beb19c7e8366ff6ad10d17769c6d0bdcc20a (diff)
downloadsrc-41160c140e31c8ee0d7de4b2f7b9857e6cad57d0.tar.gz
src-41160c140e31c8ee0d7de4b2f7b9857e6cad57d0.zip
ena-com: remove CSUM_OFFLOAD from the plat file
CSUM_OFFLOAD is a constant which is used only by the core driver code. Because of that it shouldn't be defined in the platform file, as it's not the platform specific code which is used only by the ena_com layer. Submitted by: Dawid Gorecki <dgr@semihalf.com> Submitted by: Michal Krawczyk <mk@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon, Inc.
-rw-r--r--ena_plat.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/ena_plat.h b/ena_plat.h
index 274f795950c0..f92a3754ff8c 100644
--- a/ena_plat.h
+++ b/ena_plat.h
@@ -366,7 +366,6 @@ ena_reg_read32(struct ena_bus *bus, bus_size_t offset)
#define time_after(a,b) ((long)((unsigned long)(b) - (unsigned long)(a)) < 0)
#define VLAN_HLEN sizeof(struct ether_vlan_header)
-#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP)
#define prefetch(x) (void)(x)
#define prefetchw(x) (void)(x)