net/ena: remove endian swap functions
authorStanislaw Kardach <kda@semihalf.com>
Tue, 11 May 2021 06:45:49 +0000 (08:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 13:00:44 +0000 (15:00 +0200)
swap*_*_le() functions are not used anywhere and besides there are rte
alternatives already present.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")
Cc: stable@dpdk.org
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Shay Agroskin <shayagr@amazon.com>
drivers/net/ena/ena_platform.h

index d3e40e0..748928b 100644 (file)
@@ -6,18 +6,6 @@
 #ifndef __ENA_PLATFORM_H__
 #define __ENA_PLATFORM_H__
 
-#define swap16_to_le(x)                (x)
-
-#define swap32_to_le(x)                (x)
-
-#define swap64_to_le(x)                (x)
-
-#define swap16_from_le(x)       (x)
-
-#define swap32_from_le(x)      (x)
-
-#define swap64_from_le(x)      (x)
-
 #define ena_assert_msg(cond, msg)              \
        do {                                    \
                if (unlikely(!(cond))) {        \