summaryrefslogtreecommitdiff
path: root/src/xdp/include/linux/err.h
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-12 19:57:28 +0200
committerChristian Breunig <christian@breunig.cc>2023-06-12 19:57:28 +0200
commitfcb5d0fdafeebe49f42799b1d0d056c4b67bcc16 (patch)
tree28a5a272cc66cd5c6b4bc1132b4db5a455ca3214 /src/xdp/include/linux/err.h
parentf9fa1e99e042846a8089ae2b4bc41dd8f3e3eb7c (diff)
downloadvyos-1x-fcb5d0fdafeebe49f42799b1d0d056c4b67bcc16.tar.gz
vyos-1x-fcb5d0fdafeebe49f42799b1d0d056c4b67bcc16.zip
T5286: drop XDP support for ethernet and bonding interfaces
... this is a step towards a new and better implementation that will utilize VPP.
Diffstat (limited to 'src/xdp/include/linux/err.h')
-rw-r--r--src/xdp/include/linux/err.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/xdp/include/linux/err.h b/src/xdp/include/linux/err.h
deleted file mode 100644
index a3db4cf5e..000000000
--- a/src/xdp/include/linux/err.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
-
-#ifndef __LINUX_ERR_H
-#define __LINUX_ERR_H
-
-#include <linux/types.h>
-#include <asm/errno.h>
-
-#define MAX_ERRNO 4095
-
-#define IS_ERR_VALUE(x) ((x) >= (unsigned long)-MAX_ERRNO)
-
-static inline void * ERR_PTR(long error_)
-{
- return (void *) error_;
-}
-
-static inline long PTR_ERR(const void *ptr)
-{
- return (long) ptr;
-}
-
-static inline bool IS_ERR(const void *ptr)
-{
- return IS_ERR_VALUE((unsigned long)ptr);
-}
-
-static inline bool IS_ERR_OR_NULL(const void *ptr)
-{
- return (!ptr) || IS_ERR_VALUE((unsigned long)ptr);
-}
-
-#endif